cz.proto.FieldSpec 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.FieldSpec}
*/
public final class FieldSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.FieldSpec)
FieldSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use FieldSpec.newBuilder() to construct.
private FieldSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FieldSpec() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FieldSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FieldSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 8: {
specId_ = input.readUInt32();
break;
}
case 82: {
cz.proto.ClusterInfo.Builder subBuilder = null;
if (specCase_ == 10) {
subBuilder = ((cz.proto.ClusterInfo) spec_).toBuilder();
}
spec_ =
input.readMessage(cz.proto.ClusterInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.ClusterInfo) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 10;
break;
}
case 90: {
cz.proto.SortOrder.Builder subBuilder = null;
if (specCase_ == 11) {
subBuilder = ((cz.proto.SortOrder) spec_).toBuilder();
}
spec_ =
input.readMessage(cz.proto.SortOrder.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.SortOrder) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 11;
break;
}
case 98: {
cz.proto.UniqueKey.Builder subBuilder = null;
if (specCase_ == 12) {
subBuilder = ((cz.proto.UniqueKey) spec_).toBuilder();
}
spec_ =
input.readMessage(cz.proto.UniqueKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.UniqueKey) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 12;
break;
}
case 106: {
cz.proto.PrimaryKey.Builder subBuilder = null;
if (specCase_ == 13) {
subBuilder = ((cz.proto.PrimaryKey) spec_).toBuilder();
}
spec_ =
input.readMessage(cz.proto.PrimaryKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.PrimaryKey) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 13;
break;
}
case 114: {
cz.proto.Index.Builder subBuilder = null;
if (specCase_ == 14) {
subBuilder = ((cz.proto.Index) spec_).toBuilder();
}
spec_ =
input.readMessage(cz.proto.Index.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.Index) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 14;
break;
}
case 122: {
cz.proto.ForeignKey.Builder subBuilder = null;
if (specCase_ == 15) {
subBuilder = ((cz.proto.ForeignKey) spec_).toBuilder();
}
spec_ =
input.readMessage(cz.proto.ForeignKey.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((cz.proto.ForeignKey) spec_);
spec_ = subBuilder.buildPartial();
}
specCase_ = 15;
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_FieldSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_FieldSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FieldSpec.class, cz.proto.FieldSpec.Builder.class);
}
private int specCase_ = 0;
private java.lang.Object spec_;
public enum SpecCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CLUSTER_INFO(10),
SORT_ORDER(11),
UNIQUE_KEY(12),
PRIMARY_KEY(13),
INDEX(14),
FOREIGN_KEY(15),
SPEC_NOT_SET(0);
private final int value;
private SpecCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SpecCase valueOf(int value) {
return forNumber(value);
}
public static SpecCase forNumber(int value) {
switch (value) {
case 10: return CLUSTER_INFO;
case 11: return SORT_ORDER;
case 12: return UNIQUE_KEY;
case 13: return PRIMARY_KEY;
case 14: return INDEX;
case 15: return FOREIGN_KEY;
case 0: return SPEC_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SpecCase
getSpecCase() {
return SpecCase.forNumber(
specCase_);
}
public static final int SPEC_ID_FIELD_NUMBER = 1;
private int specId_;
/**
*
* field spec version
*
*
* uint32 spec_id = 1;
* @return The specId.
*/
@java.lang.Override
public int getSpecId() {
return specId_;
}
public static final int CLUSTER_INFO_FIELD_NUMBER = 10;
/**
* .cz.proto.ClusterInfo cluster_info = 10;
* @return Whether the clusterInfo field is set.
*/
@java.lang.Override
public boolean hasClusterInfo() {
return specCase_ == 10;
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
* @return The clusterInfo.
*/
@java.lang.Override
public cz.proto.ClusterInfo getClusterInfo() {
if (specCase_ == 10) {
return (cz.proto.ClusterInfo) spec_;
}
return cz.proto.ClusterInfo.getDefaultInstance();
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
*/
@java.lang.Override
public cz.proto.ClusterInfoOrBuilder getClusterInfoOrBuilder() {
if (specCase_ == 10) {
return (cz.proto.ClusterInfo) spec_;
}
return cz.proto.ClusterInfo.getDefaultInstance();
}
public static final int SORT_ORDER_FIELD_NUMBER = 11;
/**
* .cz.proto.SortOrder sort_order = 11;
* @return Whether the sortOrder field is set.
*/
@java.lang.Override
public boolean hasSortOrder() {
return specCase_ == 11;
}
/**
* .cz.proto.SortOrder sort_order = 11;
* @return The sortOrder.
*/
@java.lang.Override
public cz.proto.SortOrder getSortOrder() {
if (specCase_ == 11) {
return (cz.proto.SortOrder) spec_;
}
return cz.proto.SortOrder.getDefaultInstance();
}
/**
* .cz.proto.SortOrder sort_order = 11;
*/
@java.lang.Override
public cz.proto.SortOrderOrBuilder getSortOrderOrBuilder() {
if (specCase_ == 11) {
return (cz.proto.SortOrder) spec_;
}
return cz.proto.SortOrder.getDefaultInstance();
}
public static final int UNIQUE_KEY_FIELD_NUMBER = 12;
/**
* .cz.proto.UniqueKey unique_key = 12;
* @return Whether the uniqueKey field is set.
*/
@java.lang.Override
public boolean hasUniqueKey() {
return specCase_ == 12;
}
/**
* .cz.proto.UniqueKey unique_key = 12;
* @return The uniqueKey.
*/
@java.lang.Override
public cz.proto.UniqueKey getUniqueKey() {
if (specCase_ == 12) {
return (cz.proto.UniqueKey) spec_;
}
return cz.proto.UniqueKey.getDefaultInstance();
}
/**
* .cz.proto.UniqueKey unique_key = 12;
*/
@java.lang.Override
public cz.proto.UniqueKeyOrBuilder getUniqueKeyOrBuilder() {
if (specCase_ == 12) {
return (cz.proto.UniqueKey) spec_;
}
return cz.proto.UniqueKey.getDefaultInstance();
}
public static final int PRIMARY_KEY_FIELD_NUMBER = 13;
/**
* .cz.proto.PrimaryKey primary_key = 13;
* @return Whether the primaryKey field is set.
*/
@java.lang.Override
public boolean hasPrimaryKey() {
return specCase_ == 13;
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
* @return The primaryKey.
*/
@java.lang.Override
public cz.proto.PrimaryKey getPrimaryKey() {
if (specCase_ == 13) {
return (cz.proto.PrimaryKey) spec_;
}
return cz.proto.PrimaryKey.getDefaultInstance();
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
*/
@java.lang.Override
public cz.proto.PrimaryKeyOrBuilder getPrimaryKeyOrBuilder() {
if (specCase_ == 13) {
return (cz.proto.PrimaryKey) spec_;
}
return cz.proto.PrimaryKey.getDefaultInstance();
}
public static final int INDEX_FIELD_NUMBER = 14;
/**
* .cz.proto.Index index = 14;
* @return Whether the index field is set.
*/
@java.lang.Override
public boolean hasIndex() {
return specCase_ == 14;
}
/**
* .cz.proto.Index index = 14;
* @return The index.
*/
@java.lang.Override
public cz.proto.Index getIndex() {
if (specCase_ == 14) {
return (cz.proto.Index) spec_;
}
return cz.proto.Index.getDefaultInstance();
}
/**
* .cz.proto.Index index = 14;
*/
@java.lang.Override
public cz.proto.IndexOrBuilder getIndexOrBuilder() {
if (specCase_ == 14) {
return (cz.proto.Index) spec_;
}
return cz.proto.Index.getDefaultInstance();
}
public static final int FOREIGN_KEY_FIELD_NUMBER = 15;
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
* @return Whether the foreignKey field is set.
*/
@java.lang.Override
public boolean hasForeignKey() {
return specCase_ == 15;
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
* @return The foreignKey.
*/
@java.lang.Override
public cz.proto.ForeignKey getForeignKey() {
if (specCase_ == 15) {
return (cz.proto.ForeignKey) spec_;
}
return cz.proto.ForeignKey.getDefaultInstance();
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
*/
@java.lang.Override
public cz.proto.ForeignKeyOrBuilder getForeignKeyOrBuilder() {
if (specCase_ == 15) {
return (cz.proto.ForeignKey) spec_;
}
return cz.proto.ForeignKey.getDefaultInstance();
}
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 (specId_ != 0) {
output.writeUInt32(1, specId_);
}
if (specCase_ == 10) {
output.writeMessage(10, (cz.proto.ClusterInfo) spec_);
}
if (specCase_ == 11) {
output.writeMessage(11, (cz.proto.SortOrder) spec_);
}
if (specCase_ == 12) {
output.writeMessage(12, (cz.proto.UniqueKey) spec_);
}
if (specCase_ == 13) {
output.writeMessage(13, (cz.proto.PrimaryKey) spec_);
}
if (specCase_ == 14) {
output.writeMessage(14, (cz.proto.Index) spec_);
}
if (specCase_ == 15) {
output.writeMessage(15, (cz.proto.ForeignKey) spec_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (specId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, specId_);
}
if (specCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (cz.proto.ClusterInfo) spec_);
}
if (specCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (cz.proto.SortOrder) spec_);
}
if (specCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (cz.proto.UniqueKey) spec_);
}
if (specCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (cz.proto.PrimaryKey) spec_);
}
if (specCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (cz.proto.Index) spec_);
}
if (specCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (cz.proto.ForeignKey) spec_);
}
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.FieldSpec)) {
return super.equals(obj);
}
cz.proto.FieldSpec other = (cz.proto.FieldSpec) obj;
if (getSpecId()
!= other.getSpecId()) return false;
if (!getSpecCase().equals(other.getSpecCase())) return false;
switch (specCase_) {
case 10:
if (!getClusterInfo()
.equals(other.getClusterInfo())) return false;
break;
case 11:
if (!getSortOrder()
.equals(other.getSortOrder())) return false;
break;
case 12:
if (!getUniqueKey()
.equals(other.getUniqueKey())) return false;
break;
case 13:
if (!getPrimaryKey()
.equals(other.getPrimaryKey())) return false;
break;
case 14:
if (!getIndex()
.equals(other.getIndex())) return false;
break;
case 15:
if (!getForeignKey()
.equals(other.getForeignKey())) return false;
break;
case 0:
default:
}
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) + SPEC_ID_FIELD_NUMBER;
hash = (53 * hash) + getSpecId();
switch (specCase_) {
case 10:
hash = (37 * hash) + CLUSTER_INFO_FIELD_NUMBER;
hash = (53 * hash) + getClusterInfo().hashCode();
break;
case 11:
hash = (37 * hash) + SORT_ORDER_FIELD_NUMBER;
hash = (53 * hash) + getSortOrder().hashCode();
break;
case 12:
hash = (37 * hash) + UNIQUE_KEY_FIELD_NUMBER;
hash = (53 * hash) + getUniqueKey().hashCode();
break;
case 13:
hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER;
hash = (53 * hash) + getPrimaryKey().hashCode();
break;
case 14:
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex().hashCode();
break;
case 15:
hash = (37 * hash) + FOREIGN_KEY_FIELD_NUMBER;
hash = (53 * hash) + getForeignKey().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.FieldSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FieldSpec parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FieldSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FieldSpec 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.FieldSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.FieldSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.FieldSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FieldSpec 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.FieldSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.FieldSpec 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.FieldSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.FieldSpec 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.FieldSpec 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.FieldSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.FieldSpec)
cz.proto.FieldSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableCommon.internal_static_cz_proto_FieldSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableCommon.internal_static_cz_proto_FieldSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.FieldSpec.class, cz.proto.FieldSpec.Builder.class);
}
// Construct using cz.proto.FieldSpec.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();
specId_ = 0;
specCase_ = 0;
spec_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.TableCommon.internal_static_cz_proto_FieldSpec_descriptor;
}
@java.lang.Override
public cz.proto.FieldSpec getDefaultInstanceForType() {
return cz.proto.FieldSpec.getDefaultInstance();
}
@java.lang.Override
public cz.proto.FieldSpec build() {
cz.proto.FieldSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.FieldSpec buildPartial() {
cz.proto.FieldSpec result = new cz.proto.FieldSpec(this);
result.specId_ = specId_;
if (specCase_ == 10) {
if (clusterInfoBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = clusterInfoBuilder_.build();
}
}
if (specCase_ == 11) {
if (sortOrderBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = sortOrderBuilder_.build();
}
}
if (specCase_ == 12) {
if (uniqueKeyBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = uniqueKeyBuilder_.build();
}
}
if (specCase_ == 13) {
if (primaryKeyBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = primaryKeyBuilder_.build();
}
}
if (specCase_ == 14) {
if (indexBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = indexBuilder_.build();
}
}
if (specCase_ == 15) {
if (foreignKeyBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = foreignKeyBuilder_.build();
}
}
result.specCase_ = specCase_;
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.FieldSpec) {
return mergeFrom((cz.proto.FieldSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.FieldSpec other) {
if (other == cz.proto.FieldSpec.getDefaultInstance()) return this;
if (other.getSpecId() != 0) {
setSpecId(other.getSpecId());
}
switch (other.getSpecCase()) {
case CLUSTER_INFO: {
mergeClusterInfo(other.getClusterInfo());
break;
}
case SORT_ORDER: {
mergeSortOrder(other.getSortOrder());
break;
}
case UNIQUE_KEY: {
mergeUniqueKey(other.getUniqueKey());
break;
}
case PRIMARY_KEY: {
mergePrimaryKey(other.getPrimaryKey());
break;
}
case INDEX: {
mergeIndex(other.getIndex());
break;
}
case FOREIGN_KEY: {
mergeForeignKey(other.getForeignKey());
break;
}
case SPEC_NOT_SET: {
break;
}
}
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.FieldSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.FieldSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int specCase_ = 0;
private java.lang.Object spec_;
public SpecCase
getSpecCase() {
return SpecCase.forNumber(
specCase_);
}
public Builder clearSpec() {
specCase_ = 0;
spec_ = null;
onChanged();
return this;
}
private int specId_ ;
/**
*
* field spec version
*
*
* uint32 spec_id = 1;
* @return The specId.
*/
@java.lang.Override
public int getSpecId() {
return specId_;
}
/**
*
* field spec version
*
*
* uint32 spec_id = 1;
* @param value The specId to set.
* @return This builder for chaining.
*/
public Builder setSpecId(int value) {
specId_ = value;
onChanged();
return this;
}
/**
*
* field spec version
*
*
* uint32 spec_id = 1;
* @return This builder for chaining.
*/
public Builder clearSpecId() {
specId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ClusterInfo, cz.proto.ClusterInfo.Builder, cz.proto.ClusterInfoOrBuilder> clusterInfoBuilder_;
/**
* .cz.proto.ClusterInfo cluster_info = 10;
* @return Whether the clusterInfo field is set.
*/
@java.lang.Override
public boolean hasClusterInfo() {
return specCase_ == 10;
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
* @return The clusterInfo.
*/
@java.lang.Override
public cz.proto.ClusterInfo getClusterInfo() {
if (clusterInfoBuilder_ == null) {
if (specCase_ == 10) {
return (cz.proto.ClusterInfo) spec_;
}
return cz.proto.ClusterInfo.getDefaultInstance();
} else {
if (specCase_ == 10) {
return clusterInfoBuilder_.getMessage();
}
return cz.proto.ClusterInfo.getDefaultInstance();
}
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
*/
public Builder setClusterInfo(cz.proto.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
clusterInfoBuilder_.setMessage(value);
}
specCase_ = 10;
return this;
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
*/
public Builder setClusterInfo(
cz.proto.ClusterInfo.Builder builderForValue) {
if (clusterInfoBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
clusterInfoBuilder_.setMessage(builderForValue.build());
}
specCase_ = 10;
return this;
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
*/
public Builder mergeClusterInfo(cz.proto.ClusterInfo value) {
if (clusterInfoBuilder_ == null) {
if (specCase_ == 10 &&
spec_ != cz.proto.ClusterInfo.getDefaultInstance()) {
spec_ = cz.proto.ClusterInfo.newBuilder((cz.proto.ClusterInfo) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 10) {
clusterInfoBuilder_.mergeFrom(value);
}
clusterInfoBuilder_.setMessage(value);
}
specCase_ = 10;
return this;
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
*/
public Builder clearClusterInfo() {
if (clusterInfoBuilder_ == null) {
if (specCase_ == 10) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 10) {
specCase_ = 0;
spec_ = null;
}
clusterInfoBuilder_.clear();
}
return this;
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
*/
public cz.proto.ClusterInfo.Builder getClusterInfoBuilder() {
return getClusterInfoFieldBuilder().getBuilder();
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
*/
@java.lang.Override
public cz.proto.ClusterInfoOrBuilder getClusterInfoOrBuilder() {
if ((specCase_ == 10) && (clusterInfoBuilder_ != null)) {
return clusterInfoBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 10) {
return (cz.proto.ClusterInfo) spec_;
}
return cz.proto.ClusterInfo.getDefaultInstance();
}
}
/**
* .cz.proto.ClusterInfo cluster_info = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ClusterInfo, cz.proto.ClusterInfo.Builder, cz.proto.ClusterInfoOrBuilder>
getClusterInfoFieldBuilder() {
if (clusterInfoBuilder_ == null) {
if (!(specCase_ == 10)) {
spec_ = cz.proto.ClusterInfo.getDefaultInstance();
}
clusterInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ClusterInfo, cz.proto.ClusterInfo.Builder, cz.proto.ClusterInfoOrBuilder>(
(cz.proto.ClusterInfo) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 10;
onChanged();;
return clusterInfoBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.SortOrder, cz.proto.SortOrder.Builder, cz.proto.SortOrderOrBuilder> sortOrderBuilder_;
/**
* .cz.proto.SortOrder sort_order = 11;
* @return Whether the sortOrder field is set.
*/
@java.lang.Override
public boolean hasSortOrder() {
return specCase_ == 11;
}
/**
* .cz.proto.SortOrder sort_order = 11;
* @return The sortOrder.
*/
@java.lang.Override
public cz.proto.SortOrder getSortOrder() {
if (sortOrderBuilder_ == null) {
if (specCase_ == 11) {
return (cz.proto.SortOrder) spec_;
}
return cz.proto.SortOrder.getDefaultInstance();
} else {
if (specCase_ == 11) {
return sortOrderBuilder_.getMessage();
}
return cz.proto.SortOrder.getDefaultInstance();
}
}
/**
* .cz.proto.SortOrder sort_order = 11;
*/
public Builder setSortOrder(cz.proto.SortOrder value) {
if (sortOrderBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
sortOrderBuilder_.setMessage(value);
}
specCase_ = 11;
return this;
}
/**
* .cz.proto.SortOrder sort_order = 11;
*/
public Builder setSortOrder(
cz.proto.SortOrder.Builder builderForValue) {
if (sortOrderBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
sortOrderBuilder_.setMessage(builderForValue.build());
}
specCase_ = 11;
return this;
}
/**
* .cz.proto.SortOrder sort_order = 11;
*/
public Builder mergeSortOrder(cz.proto.SortOrder value) {
if (sortOrderBuilder_ == null) {
if (specCase_ == 11 &&
spec_ != cz.proto.SortOrder.getDefaultInstance()) {
spec_ = cz.proto.SortOrder.newBuilder((cz.proto.SortOrder) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 11) {
sortOrderBuilder_.mergeFrom(value);
}
sortOrderBuilder_.setMessage(value);
}
specCase_ = 11;
return this;
}
/**
* .cz.proto.SortOrder sort_order = 11;
*/
public Builder clearSortOrder() {
if (sortOrderBuilder_ == null) {
if (specCase_ == 11) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 11) {
specCase_ = 0;
spec_ = null;
}
sortOrderBuilder_.clear();
}
return this;
}
/**
* .cz.proto.SortOrder sort_order = 11;
*/
public cz.proto.SortOrder.Builder getSortOrderBuilder() {
return getSortOrderFieldBuilder().getBuilder();
}
/**
* .cz.proto.SortOrder sort_order = 11;
*/
@java.lang.Override
public cz.proto.SortOrderOrBuilder getSortOrderOrBuilder() {
if ((specCase_ == 11) && (sortOrderBuilder_ != null)) {
return sortOrderBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 11) {
return (cz.proto.SortOrder) spec_;
}
return cz.proto.SortOrder.getDefaultInstance();
}
}
/**
* .cz.proto.SortOrder sort_order = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.SortOrder, cz.proto.SortOrder.Builder, cz.proto.SortOrderOrBuilder>
getSortOrderFieldBuilder() {
if (sortOrderBuilder_ == null) {
if (!(specCase_ == 11)) {
spec_ = cz.proto.SortOrder.getDefaultInstance();
}
sortOrderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.SortOrder, cz.proto.SortOrder.Builder, cz.proto.SortOrderOrBuilder>(
(cz.proto.SortOrder) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 11;
onChanged();;
return sortOrderBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.UniqueKey, cz.proto.UniqueKey.Builder, cz.proto.UniqueKeyOrBuilder> uniqueKeyBuilder_;
/**
* .cz.proto.UniqueKey unique_key = 12;
* @return Whether the uniqueKey field is set.
*/
@java.lang.Override
public boolean hasUniqueKey() {
return specCase_ == 12;
}
/**
* .cz.proto.UniqueKey unique_key = 12;
* @return The uniqueKey.
*/
@java.lang.Override
public cz.proto.UniqueKey getUniqueKey() {
if (uniqueKeyBuilder_ == null) {
if (specCase_ == 12) {
return (cz.proto.UniqueKey) spec_;
}
return cz.proto.UniqueKey.getDefaultInstance();
} else {
if (specCase_ == 12) {
return uniqueKeyBuilder_.getMessage();
}
return cz.proto.UniqueKey.getDefaultInstance();
}
}
/**
* .cz.proto.UniqueKey unique_key = 12;
*/
public Builder setUniqueKey(cz.proto.UniqueKey value) {
if (uniqueKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
uniqueKeyBuilder_.setMessage(value);
}
specCase_ = 12;
return this;
}
/**
* .cz.proto.UniqueKey unique_key = 12;
*/
public Builder setUniqueKey(
cz.proto.UniqueKey.Builder builderForValue) {
if (uniqueKeyBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
uniqueKeyBuilder_.setMessage(builderForValue.build());
}
specCase_ = 12;
return this;
}
/**
* .cz.proto.UniqueKey unique_key = 12;
*/
public Builder mergeUniqueKey(cz.proto.UniqueKey value) {
if (uniqueKeyBuilder_ == null) {
if (specCase_ == 12 &&
spec_ != cz.proto.UniqueKey.getDefaultInstance()) {
spec_ = cz.proto.UniqueKey.newBuilder((cz.proto.UniqueKey) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 12) {
uniqueKeyBuilder_.mergeFrom(value);
}
uniqueKeyBuilder_.setMessage(value);
}
specCase_ = 12;
return this;
}
/**
* .cz.proto.UniqueKey unique_key = 12;
*/
public Builder clearUniqueKey() {
if (uniqueKeyBuilder_ == null) {
if (specCase_ == 12) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 12) {
specCase_ = 0;
spec_ = null;
}
uniqueKeyBuilder_.clear();
}
return this;
}
/**
* .cz.proto.UniqueKey unique_key = 12;
*/
public cz.proto.UniqueKey.Builder getUniqueKeyBuilder() {
return getUniqueKeyFieldBuilder().getBuilder();
}
/**
* .cz.proto.UniqueKey unique_key = 12;
*/
@java.lang.Override
public cz.proto.UniqueKeyOrBuilder getUniqueKeyOrBuilder() {
if ((specCase_ == 12) && (uniqueKeyBuilder_ != null)) {
return uniqueKeyBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 12) {
return (cz.proto.UniqueKey) spec_;
}
return cz.proto.UniqueKey.getDefaultInstance();
}
}
/**
* .cz.proto.UniqueKey unique_key = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.UniqueKey, cz.proto.UniqueKey.Builder, cz.proto.UniqueKeyOrBuilder>
getUniqueKeyFieldBuilder() {
if (uniqueKeyBuilder_ == null) {
if (!(specCase_ == 12)) {
spec_ = cz.proto.UniqueKey.getDefaultInstance();
}
uniqueKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.UniqueKey, cz.proto.UniqueKey.Builder, cz.proto.UniqueKeyOrBuilder>(
(cz.proto.UniqueKey) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 12;
onChanged();;
return uniqueKeyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.PrimaryKey, cz.proto.PrimaryKey.Builder, cz.proto.PrimaryKeyOrBuilder> primaryKeyBuilder_;
/**
* .cz.proto.PrimaryKey primary_key = 13;
* @return Whether the primaryKey field is set.
*/
@java.lang.Override
public boolean hasPrimaryKey() {
return specCase_ == 13;
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
* @return The primaryKey.
*/
@java.lang.Override
public cz.proto.PrimaryKey getPrimaryKey() {
if (primaryKeyBuilder_ == null) {
if (specCase_ == 13) {
return (cz.proto.PrimaryKey) spec_;
}
return cz.proto.PrimaryKey.getDefaultInstance();
} else {
if (specCase_ == 13) {
return primaryKeyBuilder_.getMessage();
}
return cz.proto.PrimaryKey.getDefaultInstance();
}
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
*/
public Builder setPrimaryKey(cz.proto.PrimaryKey value) {
if (primaryKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
primaryKeyBuilder_.setMessage(value);
}
specCase_ = 13;
return this;
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
*/
public Builder setPrimaryKey(
cz.proto.PrimaryKey.Builder builderForValue) {
if (primaryKeyBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
primaryKeyBuilder_.setMessage(builderForValue.build());
}
specCase_ = 13;
return this;
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
*/
public Builder mergePrimaryKey(cz.proto.PrimaryKey value) {
if (primaryKeyBuilder_ == null) {
if (specCase_ == 13 &&
spec_ != cz.proto.PrimaryKey.getDefaultInstance()) {
spec_ = cz.proto.PrimaryKey.newBuilder((cz.proto.PrimaryKey) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 13) {
primaryKeyBuilder_.mergeFrom(value);
}
primaryKeyBuilder_.setMessage(value);
}
specCase_ = 13;
return this;
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
*/
public Builder clearPrimaryKey() {
if (primaryKeyBuilder_ == null) {
if (specCase_ == 13) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 13) {
specCase_ = 0;
spec_ = null;
}
primaryKeyBuilder_.clear();
}
return this;
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
*/
public cz.proto.PrimaryKey.Builder getPrimaryKeyBuilder() {
return getPrimaryKeyFieldBuilder().getBuilder();
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
*/
@java.lang.Override
public cz.proto.PrimaryKeyOrBuilder getPrimaryKeyOrBuilder() {
if ((specCase_ == 13) && (primaryKeyBuilder_ != null)) {
return primaryKeyBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 13) {
return (cz.proto.PrimaryKey) spec_;
}
return cz.proto.PrimaryKey.getDefaultInstance();
}
}
/**
* .cz.proto.PrimaryKey primary_key = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.PrimaryKey, cz.proto.PrimaryKey.Builder, cz.proto.PrimaryKeyOrBuilder>
getPrimaryKeyFieldBuilder() {
if (primaryKeyBuilder_ == null) {
if (!(specCase_ == 13)) {
spec_ = cz.proto.PrimaryKey.getDefaultInstance();
}
primaryKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.PrimaryKey, cz.proto.PrimaryKey.Builder, cz.proto.PrimaryKeyOrBuilder>(
(cz.proto.PrimaryKey) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 13;
onChanged();;
return primaryKeyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Index, cz.proto.Index.Builder, cz.proto.IndexOrBuilder> indexBuilder_;
/**
* .cz.proto.Index index = 14;
* @return Whether the index field is set.
*/
@java.lang.Override
public boolean hasIndex() {
return specCase_ == 14;
}
/**
* .cz.proto.Index index = 14;
* @return The index.
*/
@java.lang.Override
public cz.proto.Index getIndex() {
if (indexBuilder_ == null) {
if (specCase_ == 14) {
return (cz.proto.Index) spec_;
}
return cz.proto.Index.getDefaultInstance();
} else {
if (specCase_ == 14) {
return indexBuilder_.getMessage();
}
return cz.proto.Index.getDefaultInstance();
}
}
/**
* .cz.proto.Index index = 14;
*/
public Builder setIndex(cz.proto.Index value) {
if (indexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
indexBuilder_.setMessage(value);
}
specCase_ = 14;
return this;
}
/**
* .cz.proto.Index index = 14;
*/
public Builder setIndex(
cz.proto.Index.Builder builderForValue) {
if (indexBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
indexBuilder_.setMessage(builderForValue.build());
}
specCase_ = 14;
return this;
}
/**
* .cz.proto.Index index = 14;
*/
public Builder mergeIndex(cz.proto.Index value) {
if (indexBuilder_ == null) {
if (specCase_ == 14 &&
spec_ != cz.proto.Index.getDefaultInstance()) {
spec_ = cz.proto.Index.newBuilder((cz.proto.Index) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 14) {
indexBuilder_.mergeFrom(value);
}
indexBuilder_.setMessage(value);
}
specCase_ = 14;
return this;
}
/**
* .cz.proto.Index index = 14;
*/
public Builder clearIndex() {
if (indexBuilder_ == null) {
if (specCase_ == 14) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 14) {
specCase_ = 0;
spec_ = null;
}
indexBuilder_.clear();
}
return this;
}
/**
* .cz.proto.Index index = 14;
*/
public cz.proto.Index.Builder getIndexBuilder() {
return getIndexFieldBuilder().getBuilder();
}
/**
* .cz.proto.Index index = 14;
*/
@java.lang.Override
public cz.proto.IndexOrBuilder getIndexOrBuilder() {
if ((specCase_ == 14) && (indexBuilder_ != null)) {
return indexBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 14) {
return (cz.proto.Index) spec_;
}
return cz.proto.Index.getDefaultInstance();
}
}
/**
* .cz.proto.Index index = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Index, cz.proto.Index.Builder, cz.proto.IndexOrBuilder>
getIndexFieldBuilder() {
if (indexBuilder_ == null) {
if (!(specCase_ == 14)) {
spec_ = cz.proto.Index.getDefaultInstance();
}
indexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.Index, cz.proto.Index.Builder, cz.proto.IndexOrBuilder>(
(cz.proto.Index) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 14;
onChanged();;
return indexBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ForeignKey, cz.proto.ForeignKey.Builder, cz.proto.ForeignKeyOrBuilder> foreignKeyBuilder_;
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
* @return Whether the foreignKey field is set.
*/
@java.lang.Override
public boolean hasForeignKey() {
return specCase_ == 15;
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
* @return The foreignKey.
*/
@java.lang.Override
public cz.proto.ForeignKey getForeignKey() {
if (foreignKeyBuilder_ == null) {
if (specCase_ == 15) {
return (cz.proto.ForeignKey) spec_;
}
return cz.proto.ForeignKey.getDefaultInstance();
} else {
if (specCase_ == 15) {
return foreignKeyBuilder_.getMessage();
}
return cz.proto.ForeignKey.getDefaultInstance();
}
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
*/
public Builder setForeignKey(cz.proto.ForeignKey value) {
if (foreignKeyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
foreignKeyBuilder_.setMessage(value);
}
specCase_ = 15;
return this;
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
*/
public Builder setForeignKey(
cz.proto.ForeignKey.Builder builderForValue) {
if (foreignKeyBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
foreignKeyBuilder_.setMessage(builderForValue.build());
}
specCase_ = 15;
return this;
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
*/
public Builder mergeForeignKey(cz.proto.ForeignKey value) {
if (foreignKeyBuilder_ == null) {
if (specCase_ == 15 &&
spec_ != cz.proto.ForeignKey.getDefaultInstance()) {
spec_ = cz.proto.ForeignKey.newBuilder((cz.proto.ForeignKey) spec_)
.mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
if (specCase_ == 15) {
foreignKeyBuilder_.mergeFrom(value);
}
foreignKeyBuilder_.setMessage(value);
}
specCase_ = 15;
return this;
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
*/
public Builder clearForeignKey() {
if (foreignKeyBuilder_ == null) {
if (specCase_ == 15) {
specCase_ = 0;
spec_ = null;
onChanged();
}
} else {
if (specCase_ == 15) {
specCase_ = 0;
spec_ = null;
}
foreignKeyBuilder_.clear();
}
return this;
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
*/
public cz.proto.ForeignKey.Builder getForeignKeyBuilder() {
return getForeignKeyFieldBuilder().getBuilder();
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
*/
@java.lang.Override
public cz.proto.ForeignKeyOrBuilder getForeignKeyOrBuilder() {
if ((specCase_ == 15) && (foreignKeyBuilder_ != null)) {
return foreignKeyBuilder_.getMessageOrBuilder();
} else {
if (specCase_ == 15) {
return (cz.proto.ForeignKey) spec_;
}
return cz.proto.ForeignKey.getDefaultInstance();
}
}
/**
*
* partition spec
*
*
* .cz.proto.ForeignKey foreign_key = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ForeignKey, cz.proto.ForeignKey.Builder, cz.proto.ForeignKeyOrBuilder>
getForeignKeyFieldBuilder() {
if (foreignKeyBuilder_ == null) {
if (!(specCase_ == 15)) {
spec_ = cz.proto.ForeignKey.getDefaultInstance();
}
foreignKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.ForeignKey, cz.proto.ForeignKey.Builder, cz.proto.ForeignKeyOrBuilder>(
(cz.proto.ForeignKey) spec_,
getParentForChildren(),
isClean());
spec_ = null;
}
specCase_ = 15;
onChanged();;
return foreignKeyBuilder_;
}
@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.FieldSpec)
}
// @@protoc_insertion_point(class_scope:cz.proto.FieldSpec)
private static final cz.proto.FieldSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.FieldSpec();
}
public static cz.proto.FieldSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FieldSpec(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.FieldSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy