cz.proto.TableMeta 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_meta.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.TableMeta}
*/
public final class TableMeta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.TableMeta)
TableMetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableMeta.newBuilder() to construct.
private TableMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableMeta() {
tableType_ = 0;
clusterInfoSpec_ = java.util.Collections.emptyList();
uniqueKeySpec_ = java.util.Collections.emptyList();
indexSpec_ = java.util.Collections.emptyList();
foreignKeySpec_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableMeta();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TableMeta(
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 8: {
tableId_ = input.readInt64();
break;
}
case 16: {
int rawValue = input.readEnum();
tableType_ = rawValue;
break;
}
case 122: {
cz.proto.TableSchema.Builder subBuilder = null;
if (tableSchema_ != null) {
subBuilder = tableSchema_.toBuilder();
}
tableSchema_ = input.readMessage(cz.proto.TableSchema.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tableSchema_);
tableSchema_ = subBuilder.buildPartial();
}
break;
}
case 130: {
cz.proto.DataSource.Builder subBuilder = null;
if (dataSource_ != null) {
subBuilder = dataSource_.toBuilder();
}
dataSource_ = input.readMessage(cz.proto.DataSource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataSource_);
dataSource_ = subBuilder.buildPartial();
}
break;
}
case 170: {
cz.proto.FieldSpec.Builder subBuilder = null;
if (primaryKeySpec_ != null) {
subBuilder = primaryKeySpec_.toBuilder();
}
primaryKeySpec_ = input.readMessage(cz.proto.FieldSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(primaryKeySpec_);
primaryKeySpec_ = subBuilder.buildPartial();
}
break;
}
case 178: {
cz.proto.FieldSpec.Builder subBuilder = null;
if (sortOrderSpec_ != null) {
subBuilder = sortOrderSpec_.toBuilder();
}
sortOrderSpec_ = input.readMessage(cz.proto.FieldSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sortOrderSpec_);
sortOrderSpec_ = subBuilder.buildPartial();
}
break;
}
case 186: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
clusterInfoSpec_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
clusterInfoSpec_.add(
input.readMessage(cz.proto.FieldSpec.parser(), extensionRegistry));
break;
}
case 194: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
uniqueKeySpec_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
uniqueKeySpec_.add(
input.readMessage(cz.proto.FieldSpec.parser(), extensionRegistry));
break;
}
case 202: {
cz.proto.View.Builder subBuilder = null;
if (view_ != null) {
subBuilder = view_.toBuilder();
}
view_ = input.readMessage(cz.proto.View.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(view_);
view_ = subBuilder.buildPartial();
}
break;
}
case 210: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
indexSpec_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
indexSpec_.add(
input.readMessage(cz.proto.FieldSpec.parser(), extensionRegistry));
break;
}
case 216: {
currentSnapshotId_ = input.readInt64();
break;
}
case 242: {
cz.proto.TableFormat.Builder subBuilder = null;
if (tableFormat_ != null) {
subBuilder = tableFormat_.toBuilder();
}
tableFormat_ = input.readMessage(cz.proto.TableFormat.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tableFormat_);
tableFormat_ = subBuilder.buildPartial();
}
break;
}
case 250: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
foreignKeySpec_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
foreignKeySpec_.add(
input.readMessage(cz.proto.FieldSpec.parser(), extensionRegistry));
break;
}
case 258: {
cz.proto.TableStream.Builder subBuilder = null;
if (stream_ != null) {
subBuilder = stream_.toBuilder();
}
stream_ = input.readMessage(cz.proto.TableStream.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stream_);
stream_ = subBuilder.buildPartial();
}
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
clusterInfoSpec_ = java.util.Collections.unmodifiableList(clusterInfoSpec_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
uniqueKeySpec_ = java.util.Collections.unmodifiableList(uniqueKeySpec_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
indexSpec_ = java.util.Collections.unmodifiableList(indexSpec_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
foreignKeySpec_ = java.util.Collections.unmodifiableList(foreignKeySpec_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.TableMeta.class, cz.proto.TableMeta.Builder.class);
}
public static final int TABLE_ID_FIELD_NUMBER = 1;
private long tableId_;
/**
* int64 table_id = 1;
* @return The tableId.
*/
@java.lang.Override
public long getTableId() {
return tableId_;
}
public static final int TABLE_TYPE_FIELD_NUMBER = 2;
private int tableType_;
/**
* .cz.proto.TableType table_type = 2;
* @return The enum numeric value on the wire for tableType.
*/
@java.lang.Override public int getTableTypeValue() {
return tableType_;
}
/**
* .cz.proto.TableType table_type = 2;
* @return The tableType.
*/
@java.lang.Override public cz.proto.TableType getTableType() {
@SuppressWarnings("deprecation")
cz.proto.TableType result = cz.proto.TableType.valueOf(tableType_);
return result == null ? cz.proto.TableType.UNRECOGNIZED : result;
}
public static final int TABLE_SCHEMA_FIELD_NUMBER = 15;
private cz.proto.TableSchema tableSchema_;
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
* @return Whether the tableSchema field is set.
*/
@java.lang.Override
public boolean hasTableSchema() {
return tableSchema_ != null;
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
* @return The tableSchema.
*/
@java.lang.Override
public cz.proto.TableSchema getTableSchema() {
return tableSchema_ == null ? cz.proto.TableSchema.getDefaultInstance() : tableSchema_;
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
*/
@java.lang.Override
public cz.proto.TableSchemaOrBuilder getTableSchemaOrBuilder() {
return getTableSchema();
}
public static final int DATA_SOURCE_FIELD_NUMBER = 16;
private cz.proto.DataSource dataSource_;
/**
* .cz.proto.DataSource data_source = 16;
* @return Whether the dataSource field is set.
*/
@java.lang.Override
public boolean hasDataSource() {
return dataSource_ != null;
}
/**
* .cz.proto.DataSource data_source = 16;
* @return The dataSource.
*/
@java.lang.Override
public cz.proto.DataSource getDataSource() {
return dataSource_ == null ? cz.proto.DataSource.getDefaultInstance() : dataSource_;
}
/**
* .cz.proto.DataSource data_source = 16;
*/
@java.lang.Override
public cz.proto.DataSourceOrBuilder getDataSourceOrBuilder() {
return getDataSource();
}
public static final int PRIMARY_KEY_SPEC_FIELD_NUMBER = 21;
private cz.proto.FieldSpec primaryKeySpec_;
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
* @return Whether the primaryKeySpec field is set.
*/
@java.lang.Override
public boolean hasPrimaryKeySpec() {
return primaryKeySpec_ != null;
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
* @return The primaryKeySpec.
*/
@java.lang.Override
public cz.proto.FieldSpec getPrimaryKeySpec() {
return primaryKeySpec_ == null ? cz.proto.FieldSpec.getDefaultInstance() : primaryKeySpec_;
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
*/
@java.lang.Override
public cz.proto.FieldSpecOrBuilder getPrimaryKeySpecOrBuilder() {
return getPrimaryKeySpec();
}
public static final int SORT_ORDER_SPEC_FIELD_NUMBER = 22;
private cz.proto.FieldSpec sortOrderSpec_;
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
* @return Whether the sortOrderSpec field is set.
*/
@java.lang.Override
public boolean hasSortOrderSpec() {
return sortOrderSpec_ != null;
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
* @return The sortOrderSpec.
*/
@java.lang.Override
public cz.proto.FieldSpec getSortOrderSpec() {
return sortOrderSpec_ == null ? cz.proto.FieldSpec.getDefaultInstance() : sortOrderSpec_;
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
*/
@java.lang.Override
public cz.proto.FieldSpecOrBuilder getSortOrderSpecOrBuilder() {
return getSortOrderSpec();
}
public static final int CLUSTER_INFO_SPEC_FIELD_NUMBER = 23;
private java.util.List clusterInfoSpec_;
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
@java.lang.Override
public java.util.List getClusterInfoSpecList() {
return clusterInfoSpec_;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
@java.lang.Override
public java.util.List extends cz.proto.FieldSpecOrBuilder>
getClusterInfoSpecOrBuilderList() {
return clusterInfoSpec_;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
@java.lang.Override
public int getClusterInfoSpecCount() {
return clusterInfoSpec_.size();
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
@java.lang.Override
public cz.proto.FieldSpec getClusterInfoSpec(int index) {
return clusterInfoSpec_.get(index);
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
@java.lang.Override
public cz.proto.FieldSpecOrBuilder getClusterInfoSpecOrBuilder(
int index) {
return clusterInfoSpec_.get(index);
}
public static final int UNIQUE_KEY_SPEC_FIELD_NUMBER = 24;
private java.util.List uniqueKeySpec_;
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
@java.lang.Override
public java.util.List getUniqueKeySpecList() {
return uniqueKeySpec_;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
@java.lang.Override
public java.util.List extends cz.proto.FieldSpecOrBuilder>
getUniqueKeySpecOrBuilderList() {
return uniqueKeySpec_;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
@java.lang.Override
public int getUniqueKeySpecCount() {
return uniqueKeySpec_.size();
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
@java.lang.Override
public cz.proto.FieldSpec getUniqueKeySpec(int index) {
return uniqueKeySpec_.get(index);
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
@java.lang.Override
public cz.proto.FieldSpecOrBuilder getUniqueKeySpecOrBuilder(
int index) {
return uniqueKeySpec_.get(index);
}
public static final int INDEX_SPEC_FIELD_NUMBER = 26;
private java.util.List indexSpec_;
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
@java.lang.Override
public java.util.List getIndexSpecList() {
return indexSpec_;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
@java.lang.Override
public java.util.List extends cz.proto.FieldSpecOrBuilder>
getIndexSpecOrBuilderList() {
return indexSpec_;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
@java.lang.Override
public int getIndexSpecCount() {
return indexSpec_.size();
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
@java.lang.Override
public cz.proto.FieldSpec getIndexSpec(int index) {
return indexSpec_.get(index);
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
@java.lang.Override
public cz.proto.FieldSpecOrBuilder getIndexSpecOrBuilder(
int index) {
return indexSpec_.get(index);
}
public static final int FOREIGN_KEY_SPEC_FIELD_NUMBER = 31;
private java.util.List foreignKeySpec_;
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
@java.lang.Override
public java.util.List getForeignKeySpecList() {
return foreignKeySpec_;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
@java.lang.Override
public java.util.List extends cz.proto.FieldSpecOrBuilder>
getForeignKeySpecOrBuilderList() {
return foreignKeySpec_;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
@java.lang.Override
public int getForeignKeySpecCount() {
return foreignKeySpec_.size();
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
@java.lang.Override
public cz.proto.FieldSpec getForeignKeySpec(int index) {
return foreignKeySpec_.get(index);
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
@java.lang.Override
public cz.proto.FieldSpecOrBuilder getForeignKeySpecOrBuilder(
int index) {
return foreignKeySpec_.get(index);
}
public static final int VIEW_FIELD_NUMBER = 25;
private cz.proto.View view_;
/**
* .cz.proto.View view = 25;
* @return Whether the view field is set.
*/
@java.lang.Override
public boolean hasView() {
return view_ != null;
}
/**
* .cz.proto.View view = 25;
* @return The view.
*/
@java.lang.Override
public cz.proto.View getView() {
return view_ == null ? cz.proto.View.getDefaultInstance() : view_;
}
/**
* .cz.proto.View view = 25;
*/
@java.lang.Override
public cz.proto.ViewOrBuilder getViewOrBuilder() {
return getView();
}
public static final int CURRENT_SNAPSHOT_ID_FIELD_NUMBER = 27;
private long currentSnapshotId_;
/**
*
* TODO(chendong): check whether the snapshot id change if schema is changed
*
*
* int64 current_snapshot_id = 27;
* @return The currentSnapshotId.
*/
@java.lang.Override
public long getCurrentSnapshotId() {
return currentSnapshotId_;
}
public static final int TABLE_FORMAT_FIELD_NUMBER = 30;
private cz.proto.TableFormat tableFormat_;
/**
* .cz.proto.TableFormat table_format = 30;
* @return Whether the tableFormat field is set.
*/
@java.lang.Override
public boolean hasTableFormat() {
return tableFormat_ != null;
}
/**
* .cz.proto.TableFormat table_format = 30;
* @return The tableFormat.
*/
@java.lang.Override
public cz.proto.TableFormat getTableFormat() {
return tableFormat_ == null ? cz.proto.TableFormat.getDefaultInstance() : tableFormat_;
}
/**
* .cz.proto.TableFormat table_format = 30;
*/
@java.lang.Override
public cz.proto.TableFormatOrBuilder getTableFormatOrBuilder() {
return getTableFormat();
}
public static final int STREAM_FIELD_NUMBER = 32;
private cz.proto.TableStream stream_;
/**
* .cz.proto.TableStream stream = 32;
* @return Whether the stream field is set.
*/
@java.lang.Override
public boolean hasStream() {
return stream_ != null;
}
/**
* .cz.proto.TableStream stream = 32;
* @return The stream.
*/
@java.lang.Override
public cz.proto.TableStream getStream() {
return stream_ == null ? cz.proto.TableStream.getDefaultInstance() : stream_;
}
/**
* .cz.proto.TableStream stream = 32;
*/
@java.lang.Override
public cz.proto.TableStreamOrBuilder getStreamOrBuilder() {
return getStream();
}
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 (tableId_ != 0L) {
output.writeInt64(1, tableId_);
}
if (tableType_ != cz.proto.TableType.MANAGED_TABLE.getNumber()) {
output.writeEnum(2, tableType_);
}
if (tableSchema_ != null) {
output.writeMessage(15, getTableSchema());
}
if (dataSource_ != null) {
output.writeMessage(16, getDataSource());
}
if (primaryKeySpec_ != null) {
output.writeMessage(21, getPrimaryKeySpec());
}
if (sortOrderSpec_ != null) {
output.writeMessage(22, getSortOrderSpec());
}
for (int i = 0; i < clusterInfoSpec_.size(); i++) {
output.writeMessage(23, clusterInfoSpec_.get(i));
}
for (int i = 0; i < uniqueKeySpec_.size(); i++) {
output.writeMessage(24, uniqueKeySpec_.get(i));
}
if (view_ != null) {
output.writeMessage(25, getView());
}
for (int i = 0; i < indexSpec_.size(); i++) {
output.writeMessage(26, indexSpec_.get(i));
}
if (currentSnapshotId_ != 0L) {
output.writeInt64(27, currentSnapshotId_);
}
if (tableFormat_ != null) {
output.writeMessage(30, getTableFormat());
}
for (int i = 0; i < foreignKeySpec_.size(); i++) {
output.writeMessage(31, foreignKeySpec_.get(i));
}
if (stream_ != null) {
output.writeMessage(32, getStream());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tableId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, tableId_);
}
if (tableType_ != cz.proto.TableType.MANAGED_TABLE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, tableType_);
}
if (tableSchema_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getTableSchema());
}
if (dataSource_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getDataSource());
}
if (primaryKeySpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, getPrimaryKeySpec());
}
if (sortOrderSpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, getSortOrderSpec());
}
for (int i = 0; i < clusterInfoSpec_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, clusterInfoSpec_.get(i));
}
for (int i = 0; i < uniqueKeySpec_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, uniqueKeySpec_.get(i));
}
if (view_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, getView());
}
for (int i = 0; i < indexSpec_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, indexSpec_.get(i));
}
if (currentSnapshotId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(27, currentSnapshotId_);
}
if (tableFormat_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(30, getTableFormat());
}
for (int i = 0; i < foreignKeySpec_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, foreignKeySpec_.get(i));
}
if (stream_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(32, getStream());
}
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.TableMeta)) {
return super.equals(obj);
}
cz.proto.TableMeta other = (cz.proto.TableMeta) obj;
if (getTableId()
!= other.getTableId()) return false;
if (tableType_ != other.tableType_) return false;
if (hasTableSchema() != other.hasTableSchema()) return false;
if (hasTableSchema()) {
if (!getTableSchema()
.equals(other.getTableSchema())) return false;
}
if (hasDataSource() != other.hasDataSource()) return false;
if (hasDataSource()) {
if (!getDataSource()
.equals(other.getDataSource())) return false;
}
if (hasPrimaryKeySpec() != other.hasPrimaryKeySpec()) return false;
if (hasPrimaryKeySpec()) {
if (!getPrimaryKeySpec()
.equals(other.getPrimaryKeySpec())) return false;
}
if (hasSortOrderSpec() != other.hasSortOrderSpec()) return false;
if (hasSortOrderSpec()) {
if (!getSortOrderSpec()
.equals(other.getSortOrderSpec())) return false;
}
if (!getClusterInfoSpecList()
.equals(other.getClusterInfoSpecList())) return false;
if (!getUniqueKeySpecList()
.equals(other.getUniqueKeySpecList())) return false;
if (!getIndexSpecList()
.equals(other.getIndexSpecList())) return false;
if (!getForeignKeySpecList()
.equals(other.getForeignKeySpecList())) return false;
if (hasView() != other.hasView()) return false;
if (hasView()) {
if (!getView()
.equals(other.getView())) return false;
}
if (getCurrentSnapshotId()
!= other.getCurrentSnapshotId()) return false;
if (hasTableFormat() != other.hasTableFormat()) return false;
if (hasTableFormat()) {
if (!getTableFormat()
.equals(other.getTableFormat())) return false;
}
if (hasStream() != other.hasStream()) return false;
if (hasStream()) {
if (!getStream()
.equals(other.getStream())) 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) + TABLE_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTableId());
hash = (37 * hash) + TABLE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + tableType_;
if (hasTableSchema()) {
hash = (37 * hash) + TABLE_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getTableSchema().hashCode();
}
if (hasDataSource()) {
hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getDataSource().hashCode();
}
if (hasPrimaryKeySpec()) {
hash = (37 * hash) + PRIMARY_KEY_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getPrimaryKeySpec().hashCode();
}
if (hasSortOrderSpec()) {
hash = (37 * hash) + SORT_ORDER_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSortOrderSpec().hashCode();
}
if (getClusterInfoSpecCount() > 0) {
hash = (37 * hash) + CLUSTER_INFO_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getClusterInfoSpecList().hashCode();
}
if (getUniqueKeySpecCount() > 0) {
hash = (37 * hash) + UNIQUE_KEY_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getUniqueKeySpecList().hashCode();
}
if (getIndexSpecCount() > 0) {
hash = (37 * hash) + INDEX_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getIndexSpecList().hashCode();
}
if (getForeignKeySpecCount() > 0) {
hash = (37 * hash) + FOREIGN_KEY_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getForeignKeySpecList().hashCode();
}
if (hasView()) {
hash = (37 * hash) + VIEW_FIELD_NUMBER;
hash = (53 * hash) + getView().hashCode();
}
hash = (37 * hash) + CURRENT_SNAPSHOT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCurrentSnapshotId());
if (hasTableFormat()) {
hash = (37 * hash) + TABLE_FORMAT_FIELD_NUMBER;
hash = (53 * hash) + getTableFormat().hashCode();
}
if (hasStream()) {
hash = (37 * hash) + STREAM_FIELD_NUMBER;
hash = (53 * hash) + getStream().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.TableMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.TableMeta parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.TableMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.TableMeta 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.TableMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.TableMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.TableMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.TableMeta 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.TableMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.TableMeta 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.TableMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.TableMeta 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.TableMeta 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.TableMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.TableMeta)
cz.proto.TableMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.TableMeta.class, cz.proto.TableMeta.Builder.class);
}
// Construct using cz.proto.TableMeta.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getClusterInfoSpecFieldBuilder();
getUniqueKeySpecFieldBuilder();
getIndexSpecFieldBuilder();
getForeignKeySpecFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
tableId_ = 0L;
tableType_ = 0;
if (tableSchemaBuilder_ == null) {
tableSchema_ = null;
} else {
tableSchema_ = null;
tableSchemaBuilder_ = null;
}
if (dataSourceBuilder_ == null) {
dataSource_ = null;
} else {
dataSource_ = null;
dataSourceBuilder_ = null;
}
if (primaryKeySpecBuilder_ == null) {
primaryKeySpec_ = null;
} else {
primaryKeySpec_ = null;
primaryKeySpecBuilder_ = null;
}
if (sortOrderSpecBuilder_ == null) {
sortOrderSpec_ = null;
} else {
sortOrderSpec_ = null;
sortOrderSpecBuilder_ = null;
}
if (clusterInfoSpecBuilder_ == null) {
clusterInfoSpec_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
clusterInfoSpecBuilder_.clear();
}
if (uniqueKeySpecBuilder_ == null) {
uniqueKeySpec_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
uniqueKeySpecBuilder_.clear();
}
if (indexSpecBuilder_ == null) {
indexSpec_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
indexSpecBuilder_.clear();
}
if (foreignKeySpecBuilder_ == null) {
foreignKeySpec_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
foreignKeySpecBuilder_.clear();
}
if (viewBuilder_ == null) {
view_ = null;
} else {
view_ = null;
viewBuilder_ = null;
}
currentSnapshotId_ = 0L;
if (tableFormatBuilder_ == null) {
tableFormat_ = null;
} else {
tableFormat_ = null;
tableFormatBuilder_ = null;
}
if (streamBuilder_ == null) {
stream_ = null;
} else {
stream_ = null;
streamBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.TableMetaOuterClass.internal_static_cz_proto_TableMeta_descriptor;
}
@java.lang.Override
public cz.proto.TableMeta getDefaultInstanceForType() {
return cz.proto.TableMeta.getDefaultInstance();
}
@java.lang.Override
public cz.proto.TableMeta build() {
cz.proto.TableMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.TableMeta buildPartial() {
cz.proto.TableMeta result = new cz.proto.TableMeta(this);
int from_bitField0_ = bitField0_;
result.tableId_ = tableId_;
result.tableType_ = tableType_;
if (tableSchemaBuilder_ == null) {
result.tableSchema_ = tableSchema_;
} else {
result.tableSchema_ = tableSchemaBuilder_.build();
}
if (dataSourceBuilder_ == null) {
result.dataSource_ = dataSource_;
} else {
result.dataSource_ = dataSourceBuilder_.build();
}
if (primaryKeySpecBuilder_ == null) {
result.primaryKeySpec_ = primaryKeySpec_;
} else {
result.primaryKeySpec_ = primaryKeySpecBuilder_.build();
}
if (sortOrderSpecBuilder_ == null) {
result.sortOrderSpec_ = sortOrderSpec_;
} else {
result.sortOrderSpec_ = sortOrderSpecBuilder_.build();
}
if (clusterInfoSpecBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
clusterInfoSpec_ = java.util.Collections.unmodifiableList(clusterInfoSpec_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.clusterInfoSpec_ = clusterInfoSpec_;
} else {
result.clusterInfoSpec_ = clusterInfoSpecBuilder_.build();
}
if (uniqueKeySpecBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
uniqueKeySpec_ = java.util.Collections.unmodifiableList(uniqueKeySpec_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.uniqueKeySpec_ = uniqueKeySpec_;
} else {
result.uniqueKeySpec_ = uniqueKeySpecBuilder_.build();
}
if (indexSpecBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
indexSpec_ = java.util.Collections.unmodifiableList(indexSpec_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.indexSpec_ = indexSpec_;
} else {
result.indexSpec_ = indexSpecBuilder_.build();
}
if (foreignKeySpecBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
foreignKeySpec_ = java.util.Collections.unmodifiableList(foreignKeySpec_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.foreignKeySpec_ = foreignKeySpec_;
} else {
result.foreignKeySpec_ = foreignKeySpecBuilder_.build();
}
if (viewBuilder_ == null) {
result.view_ = view_;
} else {
result.view_ = viewBuilder_.build();
}
result.currentSnapshotId_ = currentSnapshotId_;
if (tableFormatBuilder_ == null) {
result.tableFormat_ = tableFormat_;
} else {
result.tableFormat_ = tableFormatBuilder_.build();
}
if (streamBuilder_ == null) {
result.stream_ = stream_;
} else {
result.stream_ = streamBuilder_.build();
}
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.TableMeta) {
return mergeFrom((cz.proto.TableMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.TableMeta other) {
if (other == cz.proto.TableMeta.getDefaultInstance()) return this;
if (other.getTableId() != 0L) {
setTableId(other.getTableId());
}
if (other.tableType_ != 0) {
setTableTypeValue(other.getTableTypeValue());
}
if (other.hasTableSchema()) {
mergeTableSchema(other.getTableSchema());
}
if (other.hasDataSource()) {
mergeDataSource(other.getDataSource());
}
if (other.hasPrimaryKeySpec()) {
mergePrimaryKeySpec(other.getPrimaryKeySpec());
}
if (other.hasSortOrderSpec()) {
mergeSortOrderSpec(other.getSortOrderSpec());
}
if (clusterInfoSpecBuilder_ == null) {
if (!other.clusterInfoSpec_.isEmpty()) {
if (clusterInfoSpec_.isEmpty()) {
clusterInfoSpec_ = other.clusterInfoSpec_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureClusterInfoSpecIsMutable();
clusterInfoSpec_.addAll(other.clusterInfoSpec_);
}
onChanged();
}
} else {
if (!other.clusterInfoSpec_.isEmpty()) {
if (clusterInfoSpecBuilder_.isEmpty()) {
clusterInfoSpecBuilder_.dispose();
clusterInfoSpecBuilder_ = null;
clusterInfoSpec_ = other.clusterInfoSpec_;
bitField0_ = (bitField0_ & ~0x00000001);
clusterInfoSpecBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getClusterInfoSpecFieldBuilder() : null;
} else {
clusterInfoSpecBuilder_.addAllMessages(other.clusterInfoSpec_);
}
}
}
if (uniqueKeySpecBuilder_ == null) {
if (!other.uniqueKeySpec_.isEmpty()) {
if (uniqueKeySpec_.isEmpty()) {
uniqueKeySpec_ = other.uniqueKeySpec_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureUniqueKeySpecIsMutable();
uniqueKeySpec_.addAll(other.uniqueKeySpec_);
}
onChanged();
}
} else {
if (!other.uniqueKeySpec_.isEmpty()) {
if (uniqueKeySpecBuilder_.isEmpty()) {
uniqueKeySpecBuilder_.dispose();
uniqueKeySpecBuilder_ = null;
uniqueKeySpec_ = other.uniqueKeySpec_;
bitField0_ = (bitField0_ & ~0x00000002);
uniqueKeySpecBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUniqueKeySpecFieldBuilder() : null;
} else {
uniqueKeySpecBuilder_.addAllMessages(other.uniqueKeySpec_);
}
}
}
if (indexSpecBuilder_ == null) {
if (!other.indexSpec_.isEmpty()) {
if (indexSpec_.isEmpty()) {
indexSpec_ = other.indexSpec_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureIndexSpecIsMutable();
indexSpec_.addAll(other.indexSpec_);
}
onChanged();
}
} else {
if (!other.indexSpec_.isEmpty()) {
if (indexSpecBuilder_.isEmpty()) {
indexSpecBuilder_.dispose();
indexSpecBuilder_ = null;
indexSpec_ = other.indexSpec_;
bitField0_ = (bitField0_ & ~0x00000004);
indexSpecBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getIndexSpecFieldBuilder() : null;
} else {
indexSpecBuilder_.addAllMessages(other.indexSpec_);
}
}
}
if (foreignKeySpecBuilder_ == null) {
if (!other.foreignKeySpec_.isEmpty()) {
if (foreignKeySpec_.isEmpty()) {
foreignKeySpec_ = other.foreignKeySpec_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureForeignKeySpecIsMutable();
foreignKeySpec_.addAll(other.foreignKeySpec_);
}
onChanged();
}
} else {
if (!other.foreignKeySpec_.isEmpty()) {
if (foreignKeySpecBuilder_.isEmpty()) {
foreignKeySpecBuilder_.dispose();
foreignKeySpecBuilder_ = null;
foreignKeySpec_ = other.foreignKeySpec_;
bitField0_ = (bitField0_ & ~0x00000008);
foreignKeySpecBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getForeignKeySpecFieldBuilder() : null;
} else {
foreignKeySpecBuilder_.addAllMessages(other.foreignKeySpec_);
}
}
}
if (other.hasView()) {
mergeView(other.getView());
}
if (other.getCurrentSnapshotId() != 0L) {
setCurrentSnapshotId(other.getCurrentSnapshotId());
}
if (other.hasTableFormat()) {
mergeTableFormat(other.getTableFormat());
}
if (other.hasStream()) {
mergeStream(other.getStream());
}
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.TableMeta parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.TableMeta) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long tableId_ ;
/**
* int64 table_id = 1;
* @return The tableId.
*/
@java.lang.Override
public long getTableId() {
return tableId_;
}
/**
* int64 table_id = 1;
* @param value The tableId to set.
* @return This builder for chaining.
*/
public Builder setTableId(long value) {
tableId_ = value;
onChanged();
return this;
}
/**
* int64 table_id = 1;
* @return This builder for chaining.
*/
public Builder clearTableId() {
tableId_ = 0L;
onChanged();
return this;
}
private int tableType_ = 0;
/**
* .cz.proto.TableType table_type = 2;
* @return The enum numeric value on the wire for tableType.
*/
@java.lang.Override public int getTableTypeValue() {
return tableType_;
}
/**
* .cz.proto.TableType table_type = 2;
* @param value The enum numeric value on the wire for tableType to set.
* @return This builder for chaining.
*/
public Builder setTableTypeValue(int value) {
tableType_ = value;
onChanged();
return this;
}
/**
* .cz.proto.TableType table_type = 2;
* @return The tableType.
*/
@java.lang.Override
public cz.proto.TableType getTableType() {
@SuppressWarnings("deprecation")
cz.proto.TableType result = cz.proto.TableType.valueOf(tableType_);
return result == null ? cz.proto.TableType.UNRECOGNIZED : result;
}
/**
* .cz.proto.TableType table_type = 2;
* @param value The tableType to set.
* @return This builder for chaining.
*/
public Builder setTableType(cz.proto.TableType value) {
if (value == null) {
throw new NullPointerException();
}
tableType_ = value.getNumber();
onChanged();
return this;
}
/**
* .cz.proto.TableType table_type = 2;
* @return This builder for chaining.
*/
public Builder clearTableType() {
tableType_ = 0;
onChanged();
return this;
}
private cz.proto.TableSchema tableSchema_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TableSchema, cz.proto.TableSchema.Builder, cz.proto.TableSchemaOrBuilder> tableSchemaBuilder_;
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
* @return Whether the tableSchema field is set.
*/
public boolean hasTableSchema() {
return tableSchemaBuilder_ != null || tableSchema_ != null;
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
* @return The tableSchema.
*/
public cz.proto.TableSchema getTableSchema() {
if (tableSchemaBuilder_ == null) {
return tableSchema_ == null ? cz.proto.TableSchema.getDefaultInstance() : tableSchema_;
} else {
return tableSchemaBuilder_.getMessage();
}
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
*/
public Builder setTableSchema(cz.proto.TableSchema value) {
if (tableSchemaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tableSchema_ = value;
onChanged();
} else {
tableSchemaBuilder_.setMessage(value);
}
return this;
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
*/
public Builder setTableSchema(
cz.proto.TableSchema.Builder builderForValue) {
if (tableSchemaBuilder_ == null) {
tableSchema_ = builderForValue.build();
onChanged();
} else {
tableSchemaBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
*/
public Builder mergeTableSchema(cz.proto.TableSchema value) {
if (tableSchemaBuilder_ == null) {
if (tableSchema_ != null) {
tableSchema_ =
cz.proto.TableSchema.newBuilder(tableSchema_).mergeFrom(value).buildPartial();
} else {
tableSchema_ = value;
}
onChanged();
} else {
tableSchemaBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
*/
public Builder clearTableSchema() {
if (tableSchemaBuilder_ == null) {
tableSchema_ = null;
onChanged();
} else {
tableSchema_ = null;
tableSchemaBuilder_ = null;
}
return this;
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
*/
public cz.proto.TableSchema.Builder getTableSchemaBuilder() {
onChanged();
return getTableSchemaFieldBuilder().getBuilder();
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
*/
public cz.proto.TableSchemaOrBuilder getTableSchemaOrBuilder() {
if (tableSchemaBuilder_ != null) {
return tableSchemaBuilder_.getMessageOrBuilder();
} else {
return tableSchema_ == null ?
cz.proto.TableSchema.getDefaultInstance() : tableSchema_;
}
}
/**
*
* uint64 last_access_time = 12;
*
*
* .cz.proto.TableSchema table_schema = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TableSchema, cz.proto.TableSchema.Builder, cz.proto.TableSchemaOrBuilder>
getTableSchemaFieldBuilder() {
if (tableSchemaBuilder_ == null) {
tableSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TableSchema, cz.proto.TableSchema.Builder, cz.proto.TableSchemaOrBuilder>(
getTableSchema(),
getParentForChildren(),
isClean());
tableSchema_ = null;
}
return tableSchemaBuilder_;
}
private cz.proto.DataSource dataSource_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataSource, cz.proto.DataSource.Builder, cz.proto.DataSourceOrBuilder> dataSourceBuilder_;
/**
* .cz.proto.DataSource data_source = 16;
* @return Whether the dataSource field is set.
*/
public boolean hasDataSource() {
return dataSourceBuilder_ != null || dataSource_ != null;
}
/**
* .cz.proto.DataSource data_source = 16;
* @return The dataSource.
*/
public cz.proto.DataSource getDataSource() {
if (dataSourceBuilder_ == null) {
return dataSource_ == null ? cz.proto.DataSource.getDefaultInstance() : dataSource_;
} else {
return dataSourceBuilder_.getMessage();
}
}
/**
* .cz.proto.DataSource data_source = 16;
*/
public Builder setDataSource(cz.proto.DataSource value) {
if (dataSourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataSource_ = value;
onChanged();
} else {
dataSourceBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.DataSource data_source = 16;
*/
public Builder setDataSource(
cz.proto.DataSource.Builder builderForValue) {
if (dataSourceBuilder_ == null) {
dataSource_ = builderForValue.build();
onChanged();
} else {
dataSourceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.DataSource data_source = 16;
*/
public Builder mergeDataSource(cz.proto.DataSource value) {
if (dataSourceBuilder_ == null) {
if (dataSource_ != null) {
dataSource_ =
cz.proto.DataSource.newBuilder(dataSource_).mergeFrom(value).buildPartial();
} else {
dataSource_ = value;
}
onChanged();
} else {
dataSourceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.DataSource data_source = 16;
*/
public Builder clearDataSource() {
if (dataSourceBuilder_ == null) {
dataSource_ = null;
onChanged();
} else {
dataSource_ = null;
dataSourceBuilder_ = null;
}
return this;
}
/**
* .cz.proto.DataSource data_source = 16;
*/
public cz.proto.DataSource.Builder getDataSourceBuilder() {
onChanged();
return getDataSourceFieldBuilder().getBuilder();
}
/**
* .cz.proto.DataSource data_source = 16;
*/
public cz.proto.DataSourceOrBuilder getDataSourceOrBuilder() {
if (dataSourceBuilder_ != null) {
return dataSourceBuilder_.getMessageOrBuilder();
} else {
return dataSource_ == null ?
cz.proto.DataSource.getDefaultInstance() : dataSource_;
}
}
/**
* .cz.proto.DataSource data_source = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataSource, cz.proto.DataSource.Builder, cz.proto.DataSourceOrBuilder>
getDataSourceFieldBuilder() {
if (dataSourceBuilder_ == null) {
dataSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.DataSource, cz.proto.DataSource.Builder, cz.proto.DataSourceOrBuilder>(
getDataSource(),
getParentForChildren(),
isClean());
dataSource_ = null;
}
return dataSourceBuilder_;
}
private cz.proto.FieldSpec primaryKeySpec_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder> primaryKeySpecBuilder_;
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
* @return Whether the primaryKeySpec field is set.
*/
public boolean hasPrimaryKeySpec() {
return primaryKeySpecBuilder_ != null || primaryKeySpec_ != null;
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
* @return The primaryKeySpec.
*/
public cz.proto.FieldSpec getPrimaryKeySpec() {
if (primaryKeySpecBuilder_ == null) {
return primaryKeySpec_ == null ? cz.proto.FieldSpec.getDefaultInstance() : primaryKeySpec_;
} else {
return primaryKeySpecBuilder_.getMessage();
}
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
*/
public Builder setPrimaryKeySpec(cz.proto.FieldSpec value) {
if (primaryKeySpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
primaryKeySpec_ = value;
onChanged();
} else {
primaryKeySpecBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
*/
public Builder setPrimaryKeySpec(
cz.proto.FieldSpec.Builder builderForValue) {
if (primaryKeySpecBuilder_ == null) {
primaryKeySpec_ = builderForValue.build();
onChanged();
} else {
primaryKeySpecBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
*/
public Builder mergePrimaryKeySpec(cz.proto.FieldSpec value) {
if (primaryKeySpecBuilder_ == null) {
if (primaryKeySpec_ != null) {
primaryKeySpec_ =
cz.proto.FieldSpec.newBuilder(primaryKeySpec_).mergeFrom(value).buildPartial();
} else {
primaryKeySpec_ = value;
}
onChanged();
} else {
primaryKeySpecBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
*/
public Builder clearPrimaryKeySpec() {
if (primaryKeySpecBuilder_ == null) {
primaryKeySpec_ = null;
onChanged();
} else {
primaryKeySpec_ = null;
primaryKeySpecBuilder_ = null;
}
return this;
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
*/
public cz.proto.FieldSpec.Builder getPrimaryKeySpecBuilder() {
onChanged();
return getPrimaryKeySpecFieldBuilder().getBuilder();
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
*/
public cz.proto.FieldSpecOrBuilder getPrimaryKeySpecOrBuilder() {
if (primaryKeySpecBuilder_ != null) {
return primaryKeySpecBuilder_.getMessageOrBuilder();
} else {
return primaryKeySpec_ == null ?
cz.proto.FieldSpec.getDefaultInstance() : primaryKeySpec_;
}
}
/**
* .cz.proto.FieldSpec primary_key_spec = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>
getPrimaryKeySpecFieldBuilder() {
if (primaryKeySpecBuilder_ == null) {
primaryKeySpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>(
getPrimaryKeySpec(),
getParentForChildren(),
isClean());
primaryKeySpec_ = null;
}
return primaryKeySpecBuilder_;
}
private cz.proto.FieldSpec sortOrderSpec_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder> sortOrderSpecBuilder_;
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
* @return Whether the sortOrderSpec field is set.
*/
public boolean hasSortOrderSpec() {
return sortOrderSpecBuilder_ != null || sortOrderSpec_ != null;
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
* @return The sortOrderSpec.
*/
public cz.proto.FieldSpec getSortOrderSpec() {
if (sortOrderSpecBuilder_ == null) {
return sortOrderSpec_ == null ? cz.proto.FieldSpec.getDefaultInstance() : sortOrderSpec_;
} else {
return sortOrderSpecBuilder_.getMessage();
}
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
*/
public Builder setSortOrderSpec(cz.proto.FieldSpec value) {
if (sortOrderSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sortOrderSpec_ = value;
onChanged();
} else {
sortOrderSpecBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
*/
public Builder setSortOrderSpec(
cz.proto.FieldSpec.Builder builderForValue) {
if (sortOrderSpecBuilder_ == null) {
sortOrderSpec_ = builderForValue.build();
onChanged();
} else {
sortOrderSpecBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
*/
public Builder mergeSortOrderSpec(cz.proto.FieldSpec value) {
if (sortOrderSpecBuilder_ == null) {
if (sortOrderSpec_ != null) {
sortOrderSpec_ =
cz.proto.FieldSpec.newBuilder(sortOrderSpec_).mergeFrom(value).buildPartial();
} else {
sortOrderSpec_ = value;
}
onChanged();
} else {
sortOrderSpecBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
*/
public Builder clearSortOrderSpec() {
if (sortOrderSpecBuilder_ == null) {
sortOrderSpec_ = null;
onChanged();
} else {
sortOrderSpec_ = null;
sortOrderSpecBuilder_ = null;
}
return this;
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
*/
public cz.proto.FieldSpec.Builder getSortOrderSpecBuilder() {
onChanged();
return getSortOrderSpecFieldBuilder().getBuilder();
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
*/
public cz.proto.FieldSpecOrBuilder getSortOrderSpecOrBuilder() {
if (sortOrderSpecBuilder_ != null) {
return sortOrderSpecBuilder_.getMessageOrBuilder();
} else {
return sortOrderSpec_ == null ?
cz.proto.FieldSpec.getDefaultInstance() : sortOrderSpec_;
}
}
/**
* .cz.proto.FieldSpec sort_order_spec = 22;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>
getSortOrderSpecFieldBuilder() {
if (sortOrderSpecBuilder_ == null) {
sortOrderSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>(
getSortOrderSpec(),
getParentForChildren(),
isClean());
sortOrderSpec_ = null;
}
return sortOrderSpecBuilder_;
}
private java.util.List clusterInfoSpec_ =
java.util.Collections.emptyList();
private void ensureClusterInfoSpecIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
clusterInfoSpec_ = new java.util.ArrayList(clusterInfoSpec_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder> clusterInfoSpecBuilder_;
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public java.util.List getClusterInfoSpecList() {
if (clusterInfoSpecBuilder_ == null) {
return java.util.Collections.unmodifiableList(clusterInfoSpec_);
} else {
return clusterInfoSpecBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public int getClusterInfoSpecCount() {
if (clusterInfoSpecBuilder_ == null) {
return clusterInfoSpec_.size();
} else {
return clusterInfoSpecBuilder_.getCount();
}
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public cz.proto.FieldSpec getClusterInfoSpec(int index) {
if (clusterInfoSpecBuilder_ == null) {
return clusterInfoSpec_.get(index);
} else {
return clusterInfoSpecBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public Builder setClusterInfoSpec(
int index, cz.proto.FieldSpec value) {
if (clusterInfoSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoSpecIsMutable();
clusterInfoSpec_.set(index, value);
onChanged();
} else {
clusterInfoSpecBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public Builder setClusterInfoSpec(
int index, cz.proto.FieldSpec.Builder builderForValue) {
if (clusterInfoSpecBuilder_ == null) {
ensureClusterInfoSpecIsMutable();
clusterInfoSpec_.set(index, builderForValue.build());
onChanged();
} else {
clusterInfoSpecBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public Builder addClusterInfoSpec(cz.proto.FieldSpec value) {
if (clusterInfoSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoSpecIsMutable();
clusterInfoSpec_.add(value);
onChanged();
} else {
clusterInfoSpecBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public Builder addClusterInfoSpec(
int index, cz.proto.FieldSpec value) {
if (clusterInfoSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClusterInfoSpecIsMutable();
clusterInfoSpec_.add(index, value);
onChanged();
} else {
clusterInfoSpecBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public Builder addClusterInfoSpec(
cz.proto.FieldSpec.Builder builderForValue) {
if (clusterInfoSpecBuilder_ == null) {
ensureClusterInfoSpecIsMutable();
clusterInfoSpec_.add(builderForValue.build());
onChanged();
} else {
clusterInfoSpecBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public Builder addClusterInfoSpec(
int index, cz.proto.FieldSpec.Builder builderForValue) {
if (clusterInfoSpecBuilder_ == null) {
ensureClusterInfoSpecIsMutable();
clusterInfoSpec_.add(index, builderForValue.build());
onChanged();
} else {
clusterInfoSpecBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public Builder addAllClusterInfoSpec(
java.lang.Iterable extends cz.proto.FieldSpec> values) {
if (clusterInfoSpecBuilder_ == null) {
ensureClusterInfoSpecIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, clusterInfoSpec_);
onChanged();
} else {
clusterInfoSpecBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public Builder clearClusterInfoSpec() {
if (clusterInfoSpecBuilder_ == null) {
clusterInfoSpec_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
clusterInfoSpecBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public Builder removeClusterInfoSpec(int index) {
if (clusterInfoSpecBuilder_ == null) {
ensureClusterInfoSpecIsMutable();
clusterInfoSpec_.remove(index);
onChanged();
} else {
clusterInfoSpecBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public cz.proto.FieldSpec.Builder getClusterInfoSpecBuilder(
int index) {
return getClusterInfoSpecFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public cz.proto.FieldSpecOrBuilder getClusterInfoSpecOrBuilder(
int index) {
if (clusterInfoSpecBuilder_ == null) {
return clusterInfoSpec_.get(index); } else {
return clusterInfoSpecBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public java.util.List extends cz.proto.FieldSpecOrBuilder>
getClusterInfoSpecOrBuilderList() {
if (clusterInfoSpecBuilder_ != null) {
return clusterInfoSpecBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(clusterInfoSpec_);
}
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public cz.proto.FieldSpec.Builder addClusterInfoSpecBuilder() {
return getClusterInfoSpecFieldBuilder().addBuilder(
cz.proto.FieldSpec.getDefaultInstance());
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public cz.proto.FieldSpec.Builder addClusterInfoSpecBuilder(
int index) {
return getClusterInfoSpecFieldBuilder().addBuilder(
index, cz.proto.FieldSpec.getDefaultInstance());
}
/**
* repeated .cz.proto.FieldSpec cluster_info_spec = 23;
*/
public java.util.List
getClusterInfoSpecBuilderList() {
return getClusterInfoSpecFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>
getClusterInfoSpecFieldBuilder() {
if (clusterInfoSpecBuilder_ == null) {
clusterInfoSpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>(
clusterInfoSpec_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
clusterInfoSpec_ = null;
}
return clusterInfoSpecBuilder_;
}
private java.util.List uniqueKeySpec_ =
java.util.Collections.emptyList();
private void ensureUniqueKeySpecIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
uniqueKeySpec_ = new java.util.ArrayList(uniqueKeySpec_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder> uniqueKeySpecBuilder_;
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public java.util.List getUniqueKeySpecList() {
if (uniqueKeySpecBuilder_ == null) {
return java.util.Collections.unmodifiableList(uniqueKeySpec_);
} else {
return uniqueKeySpecBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public int getUniqueKeySpecCount() {
if (uniqueKeySpecBuilder_ == null) {
return uniqueKeySpec_.size();
} else {
return uniqueKeySpecBuilder_.getCount();
}
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public cz.proto.FieldSpec getUniqueKeySpec(int index) {
if (uniqueKeySpecBuilder_ == null) {
return uniqueKeySpec_.get(index);
} else {
return uniqueKeySpecBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public Builder setUniqueKeySpec(
int index, cz.proto.FieldSpec value) {
if (uniqueKeySpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUniqueKeySpecIsMutable();
uniqueKeySpec_.set(index, value);
onChanged();
} else {
uniqueKeySpecBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public Builder setUniqueKeySpec(
int index, cz.proto.FieldSpec.Builder builderForValue) {
if (uniqueKeySpecBuilder_ == null) {
ensureUniqueKeySpecIsMutable();
uniqueKeySpec_.set(index, builderForValue.build());
onChanged();
} else {
uniqueKeySpecBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public Builder addUniqueKeySpec(cz.proto.FieldSpec value) {
if (uniqueKeySpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUniqueKeySpecIsMutable();
uniqueKeySpec_.add(value);
onChanged();
} else {
uniqueKeySpecBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public Builder addUniqueKeySpec(
int index, cz.proto.FieldSpec value) {
if (uniqueKeySpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUniqueKeySpecIsMutable();
uniqueKeySpec_.add(index, value);
onChanged();
} else {
uniqueKeySpecBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public Builder addUniqueKeySpec(
cz.proto.FieldSpec.Builder builderForValue) {
if (uniqueKeySpecBuilder_ == null) {
ensureUniqueKeySpecIsMutable();
uniqueKeySpec_.add(builderForValue.build());
onChanged();
} else {
uniqueKeySpecBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public Builder addUniqueKeySpec(
int index, cz.proto.FieldSpec.Builder builderForValue) {
if (uniqueKeySpecBuilder_ == null) {
ensureUniqueKeySpecIsMutable();
uniqueKeySpec_.add(index, builderForValue.build());
onChanged();
} else {
uniqueKeySpecBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public Builder addAllUniqueKeySpec(
java.lang.Iterable extends cz.proto.FieldSpec> values) {
if (uniqueKeySpecBuilder_ == null) {
ensureUniqueKeySpecIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, uniqueKeySpec_);
onChanged();
} else {
uniqueKeySpecBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public Builder clearUniqueKeySpec() {
if (uniqueKeySpecBuilder_ == null) {
uniqueKeySpec_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
uniqueKeySpecBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public Builder removeUniqueKeySpec(int index) {
if (uniqueKeySpecBuilder_ == null) {
ensureUniqueKeySpecIsMutable();
uniqueKeySpec_.remove(index);
onChanged();
} else {
uniqueKeySpecBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public cz.proto.FieldSpec.Builder getUniqueKeySpecBuilder(
int index) {
return getUniqueKeySpecFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public cz.proto.FieldSpecOrBuilder getUniqueKeySpecOrBuilder(
int index) {
if (uniqueKeySpecBuilder_ == null) {
return uniqueKeySpec_.get(index); } else {
return uniqueKeySpecBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public java.util.List extends cz.proto.FieldSpecOrBuilder>
getUniqueKeySpecOrBuilderList() {
if (uniqueKeySpecBuilder_ != null) {
return uniqueKeySpecBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(uniqueKeySpec_);
}
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public cz.proto.FieldSpec.Builder addUniqueKeySpecBuilder() {
return getUniqueKeySpecFieldBuilder().addBuilder(
cz.proto.FieldSpec.getDefaultInstance());
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public cz.proto.FieldSpec.Builder addUniqueKeySpecBuilder(
int index) {
return getUniqueKeySpecFieldBuilder().addBuilder(
index, cz.proto.FieldSpec.getDefaultInstance());
}
/**
* repeated .cz.proto.FieldSpec unique_key_spec = 24;
*/
public java.util.List
getUniqueKeySpecBuilderList() {
return getUniqueKeySpecFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>
getUniqueKeySpecFieldBuilder() {
if (uniqueKeySpecBuilder_ == null) {
uniqueKeySpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>(
uniqueKeySpec_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
uniqueKeySpec_ = null;
}
return uniqueKeySpecBuilder_;
}
private java.util.List indexSpec_ =
java.util.Collections.emptyList();
private void ensureIndexSpecIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
indexSpec_ = new java.util.ArrayList(indexSpec_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder> indexSpecBuilder_;
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public java.util.List getIndexSpecList() {
if (indexSpecBuilder_ == null) {
return java.util.Collections.unmodifiableList(indexSpec_);
} else {
return indexSpecBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public int getIndexSpecCount() {
if (indexSpecBuilder_ == null) {
return indexSpec_.size();
} else {
return indexSpecBuilder_.getCount();
}
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public cz.proto.FieldSpec getIndexSpec(int index) {
if (indexSpecBuilder_ == null) {
return indexSpec_.get(index);
} else {
return indexSpecBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public Builder setIndexSpec(
int index, cz.proto.FieldSpec value) {
if (indexSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexSpecIsMutable();
indexSpec_.set(index, value);
onChanged();
} else {
indexSpecBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public Builder setIndexSpec(
int index, cz.proto.FieldSpec.Builder builderForValue) {
if (indexSpecBuilder_ == null) {
ensureIndexSpecIsMutable();
indexSpec_.set(index, builderForValue.build());
onChanged();
} else {
indexSpecBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public Builder addIndexSpec(cz.proto.FieldSpec value) {
if (indexSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexSpecIsMutable();
indexSpec_.add(value);
onChanged();
} else {
indexSpecBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public Builder addIndexSpec(
int index, cz.proto.FieldSpec value) {
if (indexSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIndexSpecIsMutable();
indexSpec_.add(index, value);
onChanged();
} else {
indexSpecBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public Builder addIndexSpec(
cz.proto.FieldSpec.Builder builderForValue) {
if (indexSpecBuilder_ == null) {
ensureIndexSpecIsMutable();
indexSpec_.add(builderForValue.build());
onChanged();
} else {
indexSpecBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public Builder addIndexSpec(
int index, cz.proto.FieldSpec.Builder builderForValue) {
if (indexSpecBuilder_ == null) {
ensureIndexSpecIsMutable();
indexSpec_.add(index, builderForValue.build());
onChanged();
} else {
indexSpecBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public Builder addAllIndexSpec(
java.lang.Iterable extends cz.proto.FieldSpec> values) {
if (indexSpecBuilder_ == null) {
ensureIndexSpecIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indexSpec_);
onChanged();
} else {
indexSpecBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public Builder clearIndexSpec() {
if (indexSpecBuilder_ == null) {
indexSpec_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
indexSpecBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public Builder removeIndexSpec(int index) {
if (indexSpecBuilder_ == null) {
ensureIndexSpecIsMutable();
indexSpec_.remove(index);
onChanged();
} else {
indexSpecBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public cz.proto.FieldSpec.Builder getIndexSpecBuilder(
int index) {
return getIndexSpecFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public cz.proto.FieldSpecOrBuilder getIndexSpecOrBuilder(
int index) {
if (indexSpecBuilder_ == null) {
return indexSpec_.get(index); } else {
return indexSpecBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public java.util.List extends cz.proto.FieldSpecOrBuilder>
getIndexSpecOrBuilderList() {
if (indexSpecBuilder_ != null) {
return indexSpecBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(indexSpec_);
}
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public cz.proto.FieldSpec.Builder addIndexSpecBuilder() {
return getIndexSpecFieldBuilder().addBuilder(
cz.proto.FieldSpec.getDefaultInstance());
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public cz.proto.FieldSpec.Builder addIndexSpecBuilder(
int index) {
return getIndexSpecFieldBuilder().addBuilder(
index, cz.proto.FieldSpec.getDefaultInstance());
}
/**
* repeated .cz.proto.FieldSpec index_spec = 26;
*/
public java.util.List
getIndexSpecBuilderList() {
return getIndexSpecFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>
getIndexSpecFieldBuilder() {
if (indexSpecBuilder_ == null) {
indexSpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>(
indexSpec_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
indexSpec_ = null;
}
return indexSpecBuilder_;
}
private java.util.List foreignKeySpec_ =
java.util.Collections.emptyList();
private void ensureForeignKeySpecIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
foreignKeySpec_ = new java.util.ArrayList(foreignKeySpec_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder> foreignKeySpecBuilder_;
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public java.util.List getForeignKeySpecList() {
if (foreignKeySpecBuilder_ == null) {
return java.util.Collections.unmodifiableList(foreignKeySpec_);
} else {
return foreignKeySpecBuilder_.getMessageList();
}
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public int getForeignKeySpecCount() {
if (foreignKeySpecBuilder_ == null) {
return foreignKeySpec_.size();
} else {
return foreignKeySpecBuilder_.getCount();
}
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public cz.proto.FieldSpec getForeignKeySpec(int index) {
if (foreignKeySpecBuilder_ == null) {
return foreignKeySpec_.get(index);
} else {
return foreignKeySpecBuilder_.getMessage(index);
}
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public Builder setForeignKeySpec(
int index, cz.proto.FieldSpec value) {
if (foreignKeySpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureForeignKeySpecIsMutable();
foreignKeySpec_.set(index, value);
onChanged();
} else {
foreignKeySpecBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public Builder setForeignKeySpec(
int index, cz.proto.FieldSpec.Builder builderForValue) {
if (foreignKeySpecBuilder_ == null) {
ensureForeignKeySpecIsMutable();
foreignKeySpec_.set(index, builderForValue.build());
onChanged();
} else {
foreignKeySpecBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public Builder addForeignKeySpec(cz.proto.FieldSpec value) {
if (foreignKeySpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureForeignKeySpecIsMutable();
foreignKeySpec_.add(value);
onChanged();
} else {
foreignKeySpecBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public Builder addForeignKeySpec(
int index, cz.proto.FieldSpec value) {
if (foreignKeySpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureForeignKeySpecIsMutable();
foreignKeySpec_.add(index, value);
onChanged();
} else {
foreignKeySpecBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public Builder addForeignKeySpec(
cz.proto.FieldSpec.Builder builderForValue) {
if (foreignKeySpecBuilder_ == null) {
ensureForeignKeySpecIsMutable();
foreignKeySpec_.add(builderForValue.build());
onChanged();
} else {
foreignKeySpecBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public Builder addForeignKeySpec(
int index, cz.proto.FieldSpec.Builder builderForValue) {
if (foreignKeySpecBuilder_ == null) {
ensureForeignKeySpecIsMutable();
foreignKeySpec_.add(index, builderForValue.build());
onChanged();
} else {
foreignKeySpecBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public Builder addAllForeignKeySpec(
java.lang.Iterable extends cz.proto.FieldSpec> values) {
if (foreignKeySpecBuilder_ == null) {
ensureForeignKeySpecIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, foreignKeySpec_);
onChanged();
} else {
foreignKeySpecBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public Builder clearForeignKeySpec() {
if (foreignKeySpecBuilder_ == null) {
foreignKeySpec_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
foreignKeySpecBuilder_.clear();
}
return this;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public Builder removeForeignKeySpec(int index) {
if (foreignKeySpecBuilder_ == null) {
ensureForeignKeySpecIsMutable();
foreignKeySpec_.remove(index);
onChanged();
} else {
foreignKeySpecBuilder_.remove(index);
}
return this;
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public cz.proto.FieldSpec.Builder getForeignKeySpecBuilder(
int index) {
return getForeignKeySpecFieldBuilder().getBuilder(index);
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public cz.proto.FieldSpecOrBuilder getForeignKeySpecOrBuilder(
int index) {
if (foreignKeySpecBuilder_ == null) {
return foreignKeySpec_.get(index); } else {
return foreignKeySpecBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public java.util.List extends cz.proto.FieldSpecOrBuilder>
getForeignKeySpecOrBuilderList() {
if (foreignKeySpecBuilder_ != null) {
return foreignKeySpecBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(foreignKeySpec_);
}
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public cz.proto.FieldSpec.Builder addForeignKeySpecBuilder() {
return getForeignKeySpecFieldBuilder().addBuilder(
cz.proto.FieldSpec.getDefaultInstance());
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public cz.proto.FieldSpec.Builder addForeignKeySpecBuilder(
int index) {
return getForeignKeySpecFieldBuilder().addBuilder(
index, cz.proto.FieldSpec.getDefaultInstance());
}
/**
* repeated .cz.proto.FieldSpec foreign_key_spec = 31;
*/
public java.util.List
getForeignKeySpecBuilderList() {
return getForeignKeySpecFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>
getForeignKeySpecFieldBuilder() {
if (foreignKeySpecBuilder_ == null) {
foreignKeySpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cz.proto.FieldSpec, cz.proto.FieldSpec.Builder, cz.proto.FieldSpecOrBuilder>(
foreignKeySpec_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
foreignKeySpec_ = null;
}
return foreignKeySpecBuilder_;
}
private cz.proto.View view_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.View, cz.proto.View.Builder, cz.proto.ViewOrBuilder> viewBuilder_;
/**
* .cz.proto.View view = 25;
* @return Whether the view field is set.
*/
public boolean hasView() {
return viewBuilder_ != null || view_ != null;
}
/**
* .cz.proto.View view = 25;
* @return The view.
*/
public cz.proto.View getView() {
if (viewBuilder_ == null) {
return view_ == null ? cz.proto.View.getDefaultInstance() : view_;
} else {
return viewBuilder_.getMessage();
}
}
/**
* .cz.proto.View view = 25;
*/
public Builder setView(cz.proto.View value) {
if (viewBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
view_ = value;
onChanged();
} else {
viewBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.View view = 25;
*/
public Builder setView(
cz.proto.View.Builder builderForValue) {
if (viewBuilder_ == null) {
view_ = builderForValue.build();
onChanged();
} else {
viewBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.View view = 25;
*/
public Builder mergeView(cz.proto.View value) {
if (viewBuilder_ == null) {
if (view_ != null) {
view_ =
cz.proto.View.newBuilder(view_).mergeFrom(value).buildPartial();
} else {
view_ = value;
}
onChanged();
} else {
viewBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.View view = 25;
*/
public Builder clearView() {
if (viewBuilder_ == null) {
view_ = null;
onChanged();
} else {
view_ = null;
viewBuilder_ = null;
}
return this;
}
/**
* .cz.proto.View view = 25;
*/
public cz.proto.View.Builder getViewBuilder() {
onChanged();
return getViewFieldBuilder().getBuilder();
}
/**
* .cz.proto.View view = 25;
*/
public cz.proto.ViewOrBuilder getViewOrBuilder() {
if (viewBuilder_ != null) {
return viewBuilder_.getMessageOrBuilder();
} else {
return view_ == null ?
cz.proto.View.getDefaultInstance() : view_;
}
}
/**
* .cz.proto.View view = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.View, cz.proto.View.Builder, cz.proto.ViewOrBuilder>
getViewFieldBuilder() {
if (viewBuilder_ == null) {
viewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.View, cz.proto.View.Builder, cz.proto.ViewOrBuilder>(
getView(),
getParentForChildren(),
isClean());
view_ = null;
}
return viewBuilder_;
}
private long currentSnapshotId_ ;
/**
*
* TODO(chendong): check whether the snapshot id change if schema is changed
*
*
* int64 current_snapshot_id = 27;
* @return The currentSnapshotId.
*/
@java.lang.Override
public long getCurrentSnapshotId() {
return currentSnapshotId_;
}
/**
*
* TODO(chendong): check whether the snapshot id change if schema is changed
*
*
* int64 current_snapshot_id = 27;
* @param value The currentSnapshotId to set.
* @return This builder for chaining.
*/
public Builder setCurrentSnapshotId(long value) {
currentSnapshotId_ = value;
onChanged();
return this;
}
/**
*
* TODO(chendong): check whether the snapshot id change if schema is changed
*
*
* int64 current_snapshot_id = 27;
* @return This builder for chaining.
*/
public Builder clearCurrentSnapshotId() {
currentSnapshotId_ = 0L;
onChanged();
return this;
}
private cz.proto.TableFormat tableFormat_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TableFormat, cz.proto.TableFormat.Builder, cz.proto.TableFormatOrBuilder> tableFormatBuilder_;
/**
* .cz.proto.TableFormat table_format = 30;
* @return Whether the tableFormat field is set.
*/
public boolean hasTableFormat() {
return tableFormatBuilder_ != null || tableFormat_ != null;
}
/**
* .cz.proto.TableFormat table_format = 30;
* @return The tableFormat.
*/
public cz.proto.TableFormat getTableFormat() {
if (tableFormatBuilder_ == null) {
return tableFormat_ == null ? cz.proto.TableFormat.getDefaultInstance() : tableFormat_;
} else {
return tableFormatBuilder_.getMessage();
}
}
/**
* .cz.proto.TableFormat table_format = 30;
*/
public Builder setTableFormat(cz.proto.TableFormat value) {
if (tableFormatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tableFormat_ = value;
onChanged();
} else {
tableFormatBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.TableFormat table_format = 30;
*/
public Builder setTableFormat(
cz.proto.TableFormat.Builder builderForValue) {
if (tableFormatBuilder_ == null) {
tableFormat_ = builderForValue.build();
onChanged();
} else {
tableFormatBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.TableFormat table_format = 30;
*/
public Builder mergeTableFormat(cz.proto.TableFormat value) {
if (tableFormatBuilder_ == null) {
if (tableFormat_ != null) {
tableFormat_ =
cz.proto.TableFormat.newBuilder(tableFormat_).mergeFrom(value).buildPartial();
} else {
tableFormat_ = value;
}
onChanged();
} else {
tableFormatBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.TableFormat table_format = 30;
*/
public Builder clearTableFormat() {
if (tableFormatBuilder_ == null) {
tableFormat_ = null;
onChanged();
} else {
tableFormat_ = null;
tableFormatBuilder_ = null;
}
return this;
}
/**
* .cz.proto.TableFormat table_format = 30;
*/
public cz.proto.TableFormat.Builder getTableFormatBuilder() {
onChanged();
return getTableFormatFieldBuilder().getBuilder();
}
/**
* .cz.proto.TableFormat table_format = 30;
*/
public cz.proto.TableFormatOrBuilder getTableFormatOrBuilder() {
if (tableFormatBuilder_ != null) {
return tableFormatBuilder_.getMessageOrBuilder();
} else {
return tableFormat_ == null ?
cz.proto.TableFormat.getDefaultInstance() : tableFormat_;
}
}
/**
* .cz.proto.TableFormat table_format = 30;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TableFormat, cz.proto.TableFormat.Builder, cz.proto.TableFormatOrBuilder>
getTableFormatFieldBuilder() {
if (tableFormatBuilder_ == null) {
tableFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TableFormat, cz.proto.TableFormat.Builder, cz.proto.TableFormatOrBuilder>(
getTableFormat(),
getParentForChildren(),
isClean());
tableFormat_ = null;
}
return tableFormatBuilder_;
}
private cz.proto.TableStream stream_;
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TableStream, cz.proto.TableStream.Builder, cz.proto.TableStreamOrBuilder> streamBuilder_;
/**
* .cz.proto.TableStream stream = 32;
* @return Whether the stream field is set.
*/
public boolean hasStream() {
return streamBuilder_ != null || stream_ != null;
}
/**
* .cz.proto.TableStream stream = 32;
* @return The stream.
*/
public cz.proto.TableStream getStream() {
if (streamBuilder_ == null) {
return stream_ == null ? cz.proto.TableStream.getDefaultInstance() : stream_;
} else {
return streamBuilder_.getMessage();
}
}
/**
* .cz.proto.TableStream stream = 32;
*/
public Builder setStream(cz.proto.TableStream value) {
if (streamBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stream_ = value;
onChanged();
} else {
streamBuilder_.setMessage(value);
}
return this;
}
/**
* .cz.proto.TableStream stream = 32;
*/
public Builder setStream(
cz.proto.TableStream.Builder builderForValue) {
if (streamBuilder_ == null) {
stream_ = builderForValue.build();
onChanged();
} else {
streamBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .cz.proto.TableStream stream = 32;
*/
public Builder mergeStream(cz.proto.TableStream value) {
if (streamBuilder_ == null) {
if (stream_ != null) {
stream_ =
cz.proto.TableStream.newBuilder(stream_).mergeFrom(value).buildPartial();
} else {
stream_ = value;
}
onChanged();
} else {
streamBuilder_.mergeFrom(value);
}
return this;
}
/**
* .cz.proto.TableStream stream = 32;
*/
public Builder clearStream() {
if (streamBuilder_ == null) {
stream_ = null;
onChanged();
} else {
stream_ = null;
streamBuilder_ = null;
}
return this;
}
/**
* .cz.proto.TableStream stream = 32;
*/
public cz.proto.TableStream.Builder getStreamBuilder() {
onChanged();
return getStreamFieldBuilder().getBuilder();
}
/**
* .cz.proto.TableStream stream = 32;
*/
public cz.proto.TableStreamOrBuilder getStreamOrBuilder() {
if (streamBuilder_ != null) {
return streamBuilder_.getMessageOrBuilder();
} else {
return stream_ == null ?
cz.proto.TableStream.getDefaultInstance() : stream_;
}
}
/**
* .cz.proto.TableStream stream = 32;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TableStream, cz.proto.TableStream.Builder, cz.proto.TableStreamOrBuilder>
getStreamFieldBuilder() {
if (streamBuilder_ == null) {
streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cz.proto.TableStream, cz.proto.TableStream.Builder, cz.proto.TableStreamOrBuilder>(
getStream(),
getParentForChildren(),
isClean());
stream_ = null;
}
return streamBuilder_;
}
@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.TableMeta)
}
// @@protoc_insertion_point(class_scope:cz.proto.TableMeta)
private static final cz.proto.TableMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.TableMeta();
}
public static cz.proto.TableMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableMeta parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TableMeta(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.TableMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy