cz.proto.FieldSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: table_common.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.FieldSchema}
*/
public final class FieldSchema extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.FieldSchema)
FieldSchemaOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldSchema.newBuilder() to construct.
private FieldSchema(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldSchema() {
name_ = "";
comment_ = "";
transform_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FieldSchema();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FieldSchema(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
cz.proto.DataType.Builder subBuilder = null;
if (type_ != null) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(cz.proto.DataType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
break;
}
case 32: {
bitField0_ |= 0x00000001;
virtual_ = input.readBool();
break;
}
case 40: {
bitField0_ |= 0x00000002;
hidden_ = input.readBool();
break;
}
case 48: {
bitField0_ |= 0x00000004;
unOutput_ = input.readBool();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
comment_ = s;
break;
}
case 66: {
cz.proto.Expression.ScalarExpression.Builder subBuilder = null;
if (expr_ != null) {
subBuilder = expr_.toBuilder();
}
expr_ = input.readMessage(cz.proto.Expression.ScalarExpression.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expr_);
expr_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
transform_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableCommon.internal_static_cz_proto_FieldSchema_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_FieldSchema_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FieldSchema.class, cz.proto.FieldSchema.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private cz.proto.DataType type_;
/**
* .cz.proto.DataType type = 3;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return type_ != null;
}
/**
* .cz.proto.DataType type = 3;
* @return The type.
*/
@java.lang.Override
public cz.proto.DataType getType() {
return type_ == null ? cz.proto.DataType.getDefaultInstance() : type_;
}
/**
* .cz.proto.DataType type = 3;
*/
@java.lang.Override
public cz.proto.DataTypeOrBuilder getTypeOrBuilder() {
return getType();
}
public static final int VIRTUAL_FIELD_NUMBER = 4;
private boolean virtual_;
/**
* optional bool virtual = 4;
* @return Whether the virtual field is set.
*/
@java.lang.Override
public boolean hasVirtual() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bool virtual = 4;
* @return The virtual.
*/
@java.lang.Override
public boolean getVirtual() {
return virtual_;
}
public static final int HIDDEN_FIELD_NUMBER = 5;
private boolean hidden_;
/**
* optional bool hidden = 5;
* @return Whether the hidden field is set.
*/
@java.lang.Override
public boolean hasHidden() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool hidden = 5;
* @return The hidden.
*/
@java.lang.Override
public boolean getHidden() {
return hidden_;
}
public static final int UN_OUTPUT_FIELD_NUMBER = 6;
private boolean unOutput_;
/**
* optional bool un_output = 6;
* @return Whether the unOutput field is set.
*/
@java.lang.Override
public boolean hasUnOutput() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bool un_output = 6;
* @return The unOutput.
*/
@java.lang.Override
public boolean getUnOutput() {
return unOutput_;
}
public static final int COMMENT_FIELD_NUMBER = 7;
private volatile java.lang.Object comment_;
/**
* string comment = 7;
* @return The comment.
*/
@java.lang.Override
public java.lang.String getComment() {
java.lang.Object ref = comment_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
comment_ = s;
return s;
}
}
/**
* string comment = 7;
* @return The bytes for comment.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPR_FIELD_NUMBER = 8;
private cz.proto.Expression.ScalarExpression expr_;
/**
* .cz.proto.ScalarExpression expr = 8;
* @return Whether the expr field is set.
*/
@java.lang.Override
public boolean hasExpr() {
return expr_ != null;
}
/**
* .cz.proto.ScalarExpression expr = 8;
* @return The expr.
*/
@java.lang.Override
public cz.proto.Expression.ScalarExpression getExpr() {
return expr_ == null ? cz.proto.Expression.ScalarExpression.getDefaultInstance() : expr_;
}
/**
* .cz.proto.ScalarExpression expr = 8;
*/
@java.lang.Override
public cz.proto.Expression.ScalarExpressionOrBuilder getExprOrBuilder() {
return getExpr();
}
public static final int TRANSFORM_FIELD_NUMBER = 9;
private volatile java.lang.Object transform_;
/**
* optional string transform = 9;
* @return Whether the transform field is set.
*/
@java.lang.Override
public boolean hasTransform() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string transform = 9;
* @return The transform.
*/
@java.lang.Override
public java.lang.String getTransform() {
java.lang.Object ref = transform_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transform_ = s;
return s;
}
}
/**
* optional string transform = 9;
* @return The bytes for transform.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransformBytes() {
java.lang.Object ref = transform_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transform_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (type_ != null) {
output.writeMessage(3, getType());
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(4, virtual_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(5, hidden_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(6, unOutput_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, comment_);
}
if (expr_ != null) {
output.writeMessage(8, getExpr());
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, transform_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (type_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getType());
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, virtual_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, hidden_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, unOutput_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, comment_);
}
if (expr_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getExpr());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, transform_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.proto.FieldSchema)) {
return super.equals(obj);
}
cz.proto.FieldSchema other = (cz.proto.FieldSchema) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (hasVirtual() != other.hasVirtual()) return false;
if (hasVirtual()) {
if (getVirtual()
!= other.getVirtual()) return false;
}
if (hasHidden() != other.hasHidden()) return false;
if (hasHidden()) {
if (getHidden()
!= other.getHidden()) return false;
}
if (hasUnOutput() != other.hasUnOutput()) return false;
if (hasUnOutput()) {
if (getUnOutput()
!= other.getUnOutput()) return false;
}
if (!getComment()
.equals(other.getComment())) return false;
if (hasExpr() != other.hasExpr()) return false;
if (hasExpr()) {
if (!getExpr()
.equals(other.getExpr())) return false;
}
if (hasTransform() != other.hasTransform()) return false;
if (hasTransform()) {
if (!getTransform()
.equals(other.getTransform())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasVirtual()) {
hash = (37 * hash) + VIRTUAL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getVirtual());
}
if (hasHidden()) {
hash = (37 * hash) + HIDDEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHidden());
}
if (hasUnOutput()) {
hash = (37 * hash) + UN_OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUnOutput());
}
hash = (37 * hash) + COMMENT_FIELD_NUMBER;
hash = (53 * hash) + getComment().hashCode();
if (hasExpr()) {
hash = (37 * hash) + EXPR_FIELD_NUMBER;
hash = (53 * hash) + getExpr().hashCode();
}
if (hasTransform()) {
hash = (37 * hash) + TRANSFORM_FIELD_NUMBER;
hash = (53 * hash) + getTransform().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.FieldSchema parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FieldSchema parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FieldSchema parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FieldSchema parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FieldSchema parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FieldSchema parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FieldSchema parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FieldSchema parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.FieldSchema parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.FieldSchema parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.FieldSchema parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FieldSchema parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cz.proto.FieldSchema prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cz.proto.FieldSchema}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.FieldSchema)
cz.proto.FieldSchemaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableCommon.internal_static_cz_proto_FieldSchema_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_FieldSchema_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FieldSchema.class, cz.proto.FieldSchema.Builder.class);
}
// Construct using cz.proto.FieldSchema.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (typeBuilder_ == null) {
type_ = null;
} else {
type_ = null;
typeBuilder_ = null;
}
virtual_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
hidden_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
unOutput_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
comment_ = "";
if (exprBuilder_ == null) {
expr_ = null;
} else {
expr_ = null;
exprBuilder_ = null;
}
transform_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.TableCommon.internal_static_cz_proto_FieldSchema_descriptor;
}
@java.lang.Override
public cz.proto.FieldSchema getDefaultInstanceForType() {
return cz.proto.FieldSchema.getDefaultInstance();
}
@java.lang.Override
public cz.proto.FieldSchema build() {
cz.proto.FieldSchema result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.FieldSchema buildPartial() {
cz.proto.FieldSchema result = new cz.proto.FieldSchema(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.name_ = name_;
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
if (((from_bitField0_ & 0x00000001) != 0)) {
result.virtual_ = virtual_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.hidden_ = hidden_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.unOutput_ = unOutput_;
to_bitField0_ |= 0x00000004;
}
result.comment_ = comment_;
if (exprBuilder_ == null) {
result.expr_ = expr_;
} else {
result.expr_ = exprBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.transform_ = transform_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.proto.FieldSchema) {
return mergeFrom((cz.proto.FieldSchema)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.FieldSchema other) {
if (other == cz.proto.FieldSchema.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasType()) {
mergeType(other.getType());
}
if (other.hasVirtual()) {
setVirtual(other.getVirtual());
}
if (other.hasHidden()) {
setHidden(other.getHidden());
}
if (other.hasUnOutput()) {
setUnOutput(other.getUnOutput());
}
if (!other.getComment().isEmpty()) {
comment_ = other.comment_;
onChanged();
}
if (other.hasExpr()) {
mergeExpr(other.getExpr());
}
if (other.hasTransform()) {
bitField0_ |= 0x00000008;
transform_ = other.transform_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cz.proto.FieldSchema parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.FieldSchema) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private cz.proto.DataType type_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder> typeBuilder_;
/**
* .cz.proto.DataType type = 3;
* @return Whether the type field is set.
*/
public boolean hasType() {
return typeBuilder_ != null || type_ != null;
}
/**
* .cz.proto.DataType type = 3;
* @return The type.
*/
public cz.proto.DataType getType() {
if (typeBuilder_ == null) {
return type_ == null ? cz.proto.DataType.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
* .cz.proto.DataType type = 3;
*/
public Builder setType(cz.proto.DataType value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.DataType type = 3;
*/
public Builder setType(
cz.proto.DataType.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.DataType type = 3;
*/
public Builder mergeType(cz.proto.DataType value) {
if (typeBuilder_ == null) {
if (type_ != null) {
type_ =
cz.proto.DataType.newBuilder(type_).mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
typeBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.DataType type = 3;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
/**
* .cz.proto.DataType type = 3;
*/
public cz.proto.DataType.Builder getTypeBuilder() {
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
* .cz.proto.DataType type = 3;
*/
public cz.proto.DataTypeOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
cz.proto.DataType.getDefaultInstance() : type_;
}
}
/**
* .cz.proto.DataType type = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataType, cz.proto.DataType.Builder, cz.proto.DataTypeOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
private boolean virtual_ ;
/**
* optional bool virtual = 4;
* @return Whether the virtual field is set.
*/
@java.lang.Override
public boolean hasVirtual() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bool virtual = 4;
* @return The virtual.
*/
@java.lang.Override
public boolean getVirtual() {
return virtual_;
}
/**
* optional bool virtual = 4;
* @param value The virtual to set.
* @return This builder for chaining.
*/
public Builder setVirtual(boolean value) {
bitField0_ |= 0x00000001;
virtual_ = value;
onChanged();
return this;
}
/**
* optional bool virtual = 4;
* @return This builder for chaining.
*/
public Builder clearVirtual() {
bitField0_ = (bitField0_ & ~0x00000001);
virtual_ = false;
onChanged();
return this;
}
private boolean hidden_ ;
/**
* optional bool hidden = 5;
* @return Whether the hidden field is set.
*/
@java.lang.Override
public boolean hasHidden() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool hidden = 5;
* @return The hidden.
*/
@java.lang.Override
public boolean getHidden() {
return hidden_;
}
/**
* optional bool hidden = 5;
* @param value The hidden to set.
* @return This builder for chaining.
*/
public Builder setHidden(boolean value) {
bitField0_ |= 0x00000002;
hidden_ = value;
onChanged();
return this;
}
/**
* optional bool hidden = 5;
* @return This builder for chaining.
*/
public Builder clearHidden() {
bitField0_ = (bitField0_ & ~0x00000002);
hidden_ = false;
onChanged();
return this;
}
private boolean unOutput_ ;
/**
* optional bool un_output = 6;
* @return Whether the unOutput field is set.
*/
@java.lang.Override
public boolean hasUnOutput() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bool un_output = 6;
* @return The unOutput.
*/
@java.lang.Override
public boolean getUnOutput() {
return unOutput_;
}
/**
* optional bool un_output = 6;
* @param value The unOutput to set.
* @return This builder for chaining.
*/
public Builder setUnOutput(boolean value) {
bitField0_ |= 0x00000004;
unOutput_ = value;
onChanged();
return this;
}
/**
* optional bool un_output = 6;
* @return This builder for chaining.
*/
public Builder clearUnOutput() {
bitField0_ = (bitField0_ & ~0x00000004);
unOutput_ = false;
onChanged();
return this;
}
private java.lang.Object comment_ = "";
/**
* string comment = 7;
* @return The comment.
*/
public java.lang.String getComment() {
java.lang.Object ref = comment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
comment_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string comment = 7;
* @return The bytes for comment.
*/
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string comment = 7;
* @param value The comment to set.
* @return This builder for chaining.
*/
public Builder setComment(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
comment_ = value;
onChanged();
return this;
}
/**
* string comment = 7;
* @return This builder for chaining.
*/
public Builder clearComment() {
comment_ = getDefaultInstance().getComment();
onChanged();
return this;
}
/**
* string comment = 7;
* @param value The bytes for comment to set.
* @return This builder for chaining.
*/
public Builder setCommentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
comment_ = value;
onChanged();
return this;
}
private cz.proto.Expression.ScalarExpression expr_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder> exprBuilder_;
/**
* .cz.proto.ScalarExpression expr = 8;
* @return Whether the expr field is set.
*/
public boolean hasExpr() {
return exprBuilder_ != null || expr_ != null;
}
/**
* .cz.proto.ScalarExpression expr = 8;
* @return The expr.
*/
public cz.proto.Expression.ScalarExpression getExpr() {
if (exprBuilder_ == null) {
return expr_ == null ? cz.proto.Expression.ScalarExpression.getDefaultInstance() : expr_;
} else {
return exprBuilder_.getMessage();
}
}
/**
* .cz.proto.ScalarExpression expr = 8;
*/
public Builder setExpr(cz.proto.Expression.ScalarExpression value) {
if (exprBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
expr_ = value;
onChanged();
} else {
exprBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.ScalarExpression expr = 8;
*/
public Builder setExpr(
cz.proto.Expression.ScalarExpression.Builder builderForValue) {
if (exprBuilder_ == null) {
expr_ = builderForValue.build();
onChanged();
} else {
exprBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.ScalarExpression expr = 8;
*/
public Builder mergeExpr(cz.proto.Expression.ScalarExpression value) {
if (exprBuilder_ == null) {
if (expr_ != null) {
expr_ =
cz.proto.Expression.ScalarExpression.newBuilder(expr_).mergeFrom(value).buildPartial();
} else {
expr_ = value;
}
onChanged();
} else {
exprBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.ScalarExpression expr = 8;
*/
public Builder clearExpr() {
if (exprBuilder_ == null) {
expr_ = null;
onChanged();
} else {
expr_ = null;
exprBuilder_ = null;
}
return this;
}
/**
* .cz.proto.ScalarExpression expr = 8;
*/
public cz.proto.Expression.ScalarExpression.Builder getExprBuilder() {
onChanged();
return getExprFieldBuilder().getBuilder();
}
/**
* .cz.proto.ScalarExpression expr = 8;
*/
public cz.proto.Expression.ScalarExpressionOrBuilder getExprOrBuilder() {
if (exprBuilder_ != null) {
return exprBuilder_.getMessageOrBuilder();
} else {
return expr_ == null ?
cz.proto.Expression.ScalarExpression.getDefaultInstance() : expr_;
}
}
/**
* .cz.proto.ScalarExpression expr = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder>
getExprFieldBuilder() {
if (exprBuilder_ == null) {
exprBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder>(
getExpr(),
getParentForChildren(),
isClean());
expr_ = null;
}
return exprBuilder_;
}
private java.lang.Object transform_ = "";
/**
* optional string transform = 9;
* @return Whether the transform field is set.
*/
public boolean hasTransform() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string transform = 9;
* @return The transform.
*/
public java.lang.String getTransform() {
java.lang.Object ref = transform_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
transform_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string transform = 9;
* @return The bytes for transform.
*/
public com.google.protobuf.ByteString
getTransformBytes() {
java.lang.Object ref = transform_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transform_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string transform = 9;
* @param value The transform to set.
* @return This builder for chaining.
*/
public Builder setTransform(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
transform_ = value;
onChanged();
return this;
}
/**
* optional string transform = 9;
* @return This builder for chaining.
*/
public Builder clearTransform() {
bitField0_ = (bitField0_ & ~0x00000008);
transform_ = getDefaultInstance().getTransform();
onChanged();
return this;
}
/**
* optional string transform = 9;
* @param value The bytes for transform to set.
* @return This builder for chaining.
*/
public Builder setTransformBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000008;
transform_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cz.proto.FieldSchema)
}
// @@protoc_insertion_point(class_scope:cz.proto.FieldSchema)
private static final cz.proto.FieldSchema DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.FieldSchema();
}
public static cz.proto.FieldSchema getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldSchema parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldSchema(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cz.proto.FieldSchema getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy