tech.ydb.proto.table.YdbTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-proto-api Show documentation
Show all versions of ydb-proto-api Show documentation
Generated from Protocol Buffers IDL Java sources
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protos/ydb_table.proto
package tech.ydb.proto.table;
public final class YdbTable {
private YdbTable() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code Ydb.Table.StoreType}
*/
public enum StoreType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STORE_TYPE_UNSPECIFIED = 0;
*/
STORE_TYPE_UNSPECIFIED(0),
/**
* STORE_TYPE_ROW = 1;
*/
STORE_TYPE_ROW(1),
/**
* STORE_TYPE_COLUMN = 2;
*/
STORE_TYPE_COLUMN(2),
UNRECOGNIZED(-1),
;
/**
* STORE_TYPE_UNSPECIFIED = 0;
*/
public static final int STORE_TYPE_UNSPECIFIED_VALUE = 0;
/**
* STORE_TYPE_ROW = 1;
*/
public static final int STORE_TYPE_ROW_VALUE = 1;
/**
* STORE_TYPE_COLUMN = 2;
*/
public static final int STORE_TYPE_COLUMN_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StoreType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static StoreType forNumber(int value) {
switch (value) {
case 0: return STORE_TYPE_UNSPECIFIED;
case 1: return STORE_TYPE_ROW;
case 2: return STORE_TYPE_COLUMN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StoreType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StoreType findValueByNumber(int number) {
return StoreType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.getDescriptor().getEnumTypes().get(0);
}
private static final StoreType[] VALUES = values();
public static StoreType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private StoreType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.StoreType)
}
public interface CreateSessionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.CreateSessionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
tech.ydb.proto.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
}
/**
*
* Create new session
*
*
* Protobuf type {@code Ydb.Table.CreateSessionRequest}
*/
public static final class CreateSessionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.CreateSessionRequest)
CreateSessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSessionRequest.newBuilder() to construct.
private CreateSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSessionRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSessionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CreateSessionRequest.class, tech.ydb.proto.table.YdbTable.CreateSessionRequest.Builder.class);
}
private int bitField0_;
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private tech.ydb.proto.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getOperationParams());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.CreateSessionRequest)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.CreateSessionRequest other = (tech.ydb.proto.table.YdbTable.CreateSessionRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest 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 tech.ydb.proto.table.YdbTable.CreateSessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest 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 tech.ydb.proto.table.YdbTable.CreateSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest 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(tech.ydb.proto.table.YdbTable.CreateSessionRequest 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;
}
/**
*
* Create new session
*
*
* Protobuf type {@code Ydb.Table.CreateSessionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.CreateSessionRequest)
tech.ydb.proto.table.YdbTable.CreateSessionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CreateSessionRequest.class, tech.ydb.proto.table.YdbTable.CreateSessionRequest.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.CreateSessionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationParamsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operationParams_ = null;
if (operationParamsBuilder_ != null) {
operationParamsBuilder_.dispose();
operationParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionRequest getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.CreateSessionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionRequest build() {
tech.ydb.proto.table.YdbTable.CreateSessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionRequest buildPartial() {
tech.ydb.proto.table.YdbTable.CreateSessionRequest result = new tech.ydb.proto.table.YdbTable.CreateSessionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.CreateSessionRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operationParams_ = operationParamsBuilder_ == null
? operationParams_
: operationParamsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.CreateSessionRequest) {
return mergeFrom((tech.ydb.proto.table.YdbTable.CreateSessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.CreateSessionRequest other) {
if (other == tech.ydb.proto.table.YdbTable.CreateSessionRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getOperationParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private tech.ydb.proto.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
} else {
operationParamsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
operationParams_ != null &&
operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) {
getOperationParamsBuilder().mergeFrom(value);
} else {
operationParams_ = value;
}
} else {
operationParamsBuilder_.mergeFrom(value);
}
if (operationParams_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
bitField0_ = (bitField0_ & ~0x00000001);
operationParams_ = null;
if (operationParamsBuilder_ != null) {
operationParamsBuilder_.dispose();
operationParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
@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:Ydb.Table.CreateSessionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.CreateSessionRequest)
private static final tech.ydb.proto.table.YdbTable.CreateSessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.CreateSessionRequest();
}
public static tech.ydb.proto.table.YdbTable.CreateSessionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSessionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateSessionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.CreateSessionResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
tech.ydb.proto.OperationProtos.Operation getOperation();
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
*
* Create new session
*
*
* Protobuf type {@code Ydb.Table.CreateSessionResponse}
*/
public static final class CreateSessionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.CreateSessionResponse)
CreateSessionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSessionResponse.newBuilder() to construct.
private CreateSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSessionResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSessionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CreateSessionResponse.class, tech.ydb.proto.table.YdbTable.CreateSessionResponse.Builder.class);
}
private int bitField0_;
public static final int OPERATION_FIELD_NUMBER = 1;
private tech.ydb.proto.OperationProtos.Operation operation_;
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.Operation getOperation() {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getOperation());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.CreateSessionResponse)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.CreateSessionResponse other = (tech.ydb.proto.table.YdbTable.CreateSessionResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse 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 tech.ydb.proto.table.YdbTable.CreateSessionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse 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 tech.ydb.proto.table.YdbTable.CreateSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse 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(tech.ydb.proto.table.YdbTable.CreateSessionResponse 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;
}
/**
*
* Create new session
*
*
* Protobuf type {@code Ydb.Table.CreateSessionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.CreateSessionResponse)
tech.ydb.proto.table.YdbTable.CreateSessionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CreateSessionResponse.class, tech.ydb.proto.table.YdbTable.CreateSessionResponse.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.CreateSessionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operation_ = null;
if (operationBuilder_ != null) {
operationBuilder_.dispose();
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionResponse getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.CreateSessionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionResponse build() {
tech.ydb.proto.table.YdbTable.CreateSessionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionResponse buildPartial() {
tech.ydb.proto.table.YdbTable.CreateSessionResponse result = new tech.ydb.proto.table.YdbTable.CreateSessionResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.CreateSessionResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operation_ = operationBuilder_ == null
? operation_
: operationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.CreateSessionResponse) {
return mergeFrom((tech.ydb.proto.table.YdbTable.CreateSessionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.CreateSessionResponse other) {
if (other == tech.ydb.proto.table.YdbTable.CreateSessionResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getOperationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private tech.ydb.proto.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public tech.ydb.proto.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
} else {
operationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
operation_ != null &&
operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) {
getOperationBuilder().mergeFrom(value);
} else {
operation_ = value;
}
} else {
operationBuilder_.mergeFrom(value);
}
if (operation_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
bitField0_ = (bitField0_ & ~0x00000001);
operation_ = null;
if (operationBuilder_ != null) {
operationBuilder_.dispose();
operationBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder>(
getOperation(),
getParentForChildren(),
isClean());
operation_ = null;
}
return operationBuilder_;
}
@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:Ydb.Table.CreateSessionResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.CreateSessionResponse)
private static final tech.ydb.proto.table.YdbTable.CreateSessionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.CreateSessionResponse();
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSessionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateSessionResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.CreateSessionResult)
com.google.protobuf.MessageOrBuilder {
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
}
/**
* Protobuf type {@code Ydb.Table.CreateSessionResult}
*/
public static final class CreateSessionResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.CreateSessionResult)
CreateSessionResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSessionResult.newBuilder() to construct.
private CreateSessionResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSessionResult() {
sessionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSessionResult();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CreateSessionResult.class, tech.ydb.proto.table.YdbTable.CreateSessionResult.Builder.class);
}
public static final int SESSION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.CreateSessionResult)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.CreateSessionResult other = (tech.ydb.proto.table.YdbTable.CreateSessionResult) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult 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 tech.ydb.proto.table.YdbTable.CreateSessionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult 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 tech.ydb.proto.table.YdbTable.CreateSessionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult 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(tech.ydb.proto.table.YdbTable.CreateSessionResult 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 Ydb.Table.CreateSessionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.CreateSessionResult)
tech.ydb.proto.table.YdbTable.CreateSessionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CreateSessionResult.class, tech.ydb.proto.table.YdbTable.CreateSessionResult.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.CreateSessionResult.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sessionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionResult getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.CreateSessionResult.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionResult build() {
tech.ydb.proto.table.YdbTable.CreateSessionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionResult buildPartial() {
tech.ydb.proto.table.YdbTable.CreateSessionResult result = new tech.ydb.proto.table.YdbTable.CreateSessionResult(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.CreateSessionResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
}
@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 tech.ydb.proto.table.YdbTable.CreateSessionResult) {
return mergeFrom((tech.ydb.proto.table.YdbTable.CreateSessionResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.CreateSessionResult other) {
if (other == tech.ydb.proto.table.YdbTable.CreateSessionResult.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sessionId_ = "";
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.CreateSessionResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.CreateSessionResult)
private static final tech.ydb.proto.table.YdbTable.CreateSessionResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.CreateSessionResult();
}
public static tech.ydb.proto.table.YdbTable.CreateSessionResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSessionResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CreateSessionResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteSessionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.DeleteSessionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
tech.ydb.proto.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
}
/**
*
* Delete session with given id string
*
*
* Protobuf type {@code Ydb.Table.DeleteSessionRequest}
*/
public static final class DeleteSessionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.DeleteSessionRequest)
DeleteSessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteSessionRequest.newBuilder() to construct.
private DeleteSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteSessionRequest() {
sessionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteSessionRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.DeleteSessionRequest.class, tech.ydb.proto.table.YdbTable.DeleteSessionRequest.Builder.class);
}
private int bitField0_;
public static final int SESSION_ID_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sessionId_ = "";
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 2;
private tech.ydb.proto.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getOperationParams());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOperationParams());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.DeleteSessionRequest)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.DeleteSessionRequest other = (tech.ydb.proto.table.YdbTable.DeleteSessionRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest 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 tech.ydb.proto.table.YdbTable.DeleteSessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest 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 tech.ydb.proto.table.YdbTable.DeleteSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest 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(tech.ydb.proto.table.YdbTable.DeleteSessionRequest 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;
}
/**
*
* Delete session with given id string
*
*
* Protobuf type {@code Ydb.Table.DeleteSessionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.DeleteSessionRequest)
tech.ydb.proto.table.YdbTable.DeleteSessionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.DeleteSessionRequest.class, tech.ydb.proto.table.YdbTable.DeleteSessionRequest.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.DeleteSessionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationParamsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sessionId_ = "";
operationParams_ = null;
if (operationParamsBuilder_ != null) {
operationParamsBuilder_.dispose();
operationParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DeleteSessionRequest getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.DeleteSessionRequest.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DeleteSessionRequest build() {
tech.ydb.proto.table.YdbTable.DeleteSessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DeleteSessionRequest buildPartial() {
tech.ydb.proto.table.YdbTable.DeleteSessionRequest result = new tech.ydb.proto.table.YdbTable.DeleteSessionRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.DeleteSessionRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sessionId_ = sessionId_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.operationParams_ = operationParamsBuilder_ == null
? operationParams_
: operationParamsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.DeleteSessionRequest) {
return mergeFrom((tech.ydb.proto.table.YdbTable.DeleteSessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.DeleteSessionRequest other) {
if (other == tech.ydb.proto.table.YdbTable.DeleteSessionRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
sessionId_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getOperationParamsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sessionId_ = "";
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
sessionId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private tech.ydb.proto.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
public tech.ydb.proto.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public Builder setOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
} else {
operationParamsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public Builder setOperationParams(
tech.ydb.proto.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public Builder mergeOperationParams(tech.ydb.proto.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
operationParams_ != null &&
operationParams_ != tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance()) {
getOperationParamsBuilder().mergeFrom(value);
} else {
operationParams_ = value;
}
} else {
operationParamsBuilder_.mergeFrom(value);
}
if (operationParams_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public Builder clearOperationParams() {
bitField0_ = (bitField0_ & ~0x00000002);
operationParams_ = null;
if (operationParamsBuilder_ != null) {
operationParamsBuilder_.dispose();
operationParamsBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public tech.ydb.proto.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public tech.ydb.proto.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
tech.ydb.proto.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.OperationParams, tech.ydb.proto.OperationProtos.OperationParams.Builder, tech.ydb.proto.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
@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:Ydb.Table.DeleteSessionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.DeleteSessionRequest)
private static final tech.ydb.proto.table.YdbTable.DeleteSessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.DeleteSessionRequest();
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteSessionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DeleteSessionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteSessionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.DeleteSessionResponse)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
tech.ydb.proto.OperationProtos.Operation getOperation();
/**
* .Ydb.Operations.Operation operation = 1;
*/
tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Table.DeleteSessionResponse}
*/
public static final class DeleteSessionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.DeleteSessionResponse)
DeleteSessionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteSessionResponse.newBuilder() to construct.
private DeleteSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteSessionResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteSessionResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.DeleteSessionResponse.class, tech.ydb.proto.table.YdbTable.DeleteSessionResponse.Builder.class);
}
private int bitField0_;
public static final int OPERATION_FIELD_NUMBER = 1;
private tech.ydb.proto.OperationProtos.Operation operation_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.Operation getOperation() {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getOperation());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.DeleteSessionResponse)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.DeleteSessionResponse other = (tech.ydb.proto.table.YdbTable.DeleteSessionResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse 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 tech.ydb.proto.table.YdbTable.DeleteSessionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse 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 tech.ydb.proto.table.YdbTable.DeleteSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse 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(tech.ydb.proto.table.YdbTable.DeleteSessionResponse 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 Ydb.Table.DeleteSessionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.DeleteSessionResponse)
tech.ydb.proto.table.YdbTable.DeleteSessionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.DeleteSessionResponse.class, tech.ydb.proto.table.YdbTable.DeleteSessionResponse.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.DeleteSessionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOperationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
operation_ = null;
if (operationBuilder_ != null) {
operationBuilder_.dispose();
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DeleteSessionResponse getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.DeleteSessionResponse.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DeleteSessionResponse build() {
tech.ydb.proto.table.YdbTable.DeleteSessionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DeleteSessionResponse buildPartial() {
tech.ydb.proto.table.YdbTable.DeleteSessionResponse result = new tech.ydb.proto.table.YdbTable.DeleteSessionResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.DeleteSessionResponse result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.operation_ = operationBuilder_ == null
? operation_
: operationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.DeleteSessionResponse) {
return mergeFrom((tech.ydb.proto.table.YdbTable.DeleteSessionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.DeleteSessionResponse other) {
if (other == tech.ydb.proto.table.YdbTable.DeleteSessionResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getOperationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private tech.ydb.proto.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public tech.ydb.proto.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(tech.ydb.proto.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
} else {
operationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
tech.ydb.proto.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(tech.ydb.proto.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
operation_ != null &&
operation_ != tech.ydb.proto.OperationProtos.Operation.getDefaultInstance()) {
getOperationBuilder().mergeFrom(value);
} else {
operation_ = value;
}
} else {
operationBuilder_.mergeFrom(value);
}
if (operation_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
bitField0_ = (bitField0_ & ~0x00000001);
operation_ = null;
if (operationBuilder_ != null) {
operationBuilder_.dispose();
operationBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public tech.ydb.proto.OperationProtos.Operation.Builder getOperationBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public tech.ydb.proto.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
tech.ydb.proto.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.OperationProtos.Operation, tech.ydb.proto.OperationProtos.Operation.Builder, tech.ydb.proto.OperationProtos.OperationOrBuilder>(
getOperation(),
getParentForChildren(),
isClean());
operation_ = null;
}
return operationBuilder_;
}
@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:Ydb.Table.DeleteSessionResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.DeleteSessionResponse)
private static final tech.ydb.proto.table.YdbTable.DeleteSessionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.DeleteSessionResponse();
}
public static tech.ydb.proto.table.YdbTable.DeleteSessionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteSessionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DeleteSessionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GlobalIndexOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.GlobalIndex)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Table.GlobalIndex}
*/
public static final class GlobalIndex extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.GlobalIndex)
GlobalIndexOrBuilder {
private static final long serialVersionUID = 0L;
// Use GlobalIndex.newBuilder() to construct.
private GlobalIndex(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GlobalIndex() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GlobalIndex();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.GlobalIndex.class, tech.ydb.proto.table.YdbTable.GlobalIndex.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.GlobalIndex)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.GlobalIndex other = (tech.ydb.proto.table.YdbTable.GlobalIndex) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex 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 tech.ydb.proto.table.YdbTable.GlobalIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex 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 tech.ydb.proto.table.YdbTable.GlobalIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex 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(tech.ydb.proto.table.YdbTable.GlobalIndex 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 Ydb.Table.GlobalIndex}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.GlobalIndex)
tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.GlobalIndex.class, tech.ydb.proto.table.YdbTable.GlobalIndex.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.GlobalIndex.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndex getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndex build() {
tech.ydb.proto.table.YdbTable.GlobalIndex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndex buildPartial() {
tech.ydb.proto.table.YdbTable.GlobalIndex result = new tech.ydb.proto.table.YdbTable.GlobalIndex(this);
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 tech.ydb.proto.table.YdbTable.GlobalIndex) {
return mergeFrom((tech.ydb.proto.table.YdbTable.GlobalIndex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.GlobalIndex other) {
if (other == tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.GlobalIndex)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.GlobalIndex)
private static final tech.ydb.proto.table.YdbTable.GlobalIndex DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.GlobalIndex();
}
public static tech.ydb.proto.table.YdbTable.GlobalIndex getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GlobalIndex parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndex getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GlobalAsyncIndexOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.GlobalAsyncIndex)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Table.GlobalAsyncIndex}
*/
public static final class GlobalAsyncIndex extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.GlobalAsyncIndex)
GlobalAsyncIndexOrBuilder {
private static final long serialVersionUID = 0L;
// Use GlobalAsyncIndex.newBuilder() to construct.
private GlobalAsyncIndex(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GlobalAsyncIndex() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GlobalAsyncIndex();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.class, tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.GlobalAsyncIndex)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex other = (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex 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 tech.ydb.proto.table.YdbTable.GlobalAsyncIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex 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 tech.ydb.proto.table.YdbTable.GlobalAsyncIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex 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(tech.ydb.proto.table.YdbTable.GlobalAsyncIndex 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 Ydb.Table.GlobalAsyncIndex}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.GlobalAsyncIndex)
tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.class, tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex build() {
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex buildPartial() {
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex result = new tech.ydb.proto.table.YdbTable.GlobalAsyncIndex(this);
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 tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) {
return mergeFrom((tech.ydb.proto.table.YdbTable.GlobalAsyncIndex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.GlobalAsyncIndex other) {
if (other == tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.GlobalAsyncIndex)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.GlobalAsyncIndex)
private static final tech.ydb.proto.table.YdbTable.GlobalAsyncIndex DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.GlobalAsyncIndex();
}
public static tech.ydb.proto.table.YdbTable.GlobalAsyncIndex getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GlobalAsyncIndex parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GlobalUniqueIndexOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.GlobalUniqueIndex)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Table.GlobalUniqueIndex}
*/
public static final class GlobalUniqueIndex extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.GlobalUniqueIndex)
GlobalUniqueIndexOrBuilder {
private static final long serialVersionUID = 0L;
// Use GlobalUniqueIndex.newBuilder() to construct.
private GlobalUniqueIndex(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GlobalUniqueIndex() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GlobalUniqueIndex();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalUniqueIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalUniqueIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.class, tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.GlobalUniqueIndex)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex other = (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex 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 tech.ydb.proto.table.YdbTable.GlobalUniqueIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex 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 tech.ydb.proto.table.YdbTable.GlobalUniqueIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex 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(tech.ydb.proto.table.YdbTable.GlobalUniqueIndex 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 Ydb.Table.GlobalUniqueIndex}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.GlobalUniqueIndex)
tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalUniqueIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalUniqueIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.class, tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_GlobalUniqueIndex_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex build() {
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex buildPartial() {
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex result = new tech.ydb.proto.table.YdbTable.GlobalUniqueIndex(this);
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 tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) {
return mergeFrom((tech.ydb.proto.table.YdbTable.GlobalUniqueIndex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.GlobalUniqueIndex other) {
if (other == tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.GlobalUniqueIndex)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.GlobalUniqueIndex)
private static final tech.ydb.proto.table.YdbTable.GlobalUniqueIndex DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.GlobalUniqueIndex();
}
public static tech.ydb.proto.table.YdbTable.GlobalUniqueIndex getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GlobalUniqueIndex parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TableIndexOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.TableIndex)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of index
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of index
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return A list containing the indexColumns.
*/
java.util.List
getIndexColumnsList();
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return The count of indexColumns.
*/
int getIndexColumnsCount();
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the element to return.
* @return The indexColumns at the given index.
*/
java.lang.String getIndexColumns(int index);
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the value to return.
* @return The bytes of the indexColumns at the given index.
*/
com.google.protobuf.ByteString
getIndexColumnsBytes(int index);
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return Whether the globalIndex field is set.
*/
boolean hasGlobalIndex();
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return The globalIndex.
*/
tech.ydb.proto.table.YdbTable.GlobalIndex getGlobalIndex();
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder();
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
* @return Whether the globalAsyncIndex field is set.
*/
boolean hasGlobalAsyncIndex();
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
* @return The globalAsyncIndex.
*/
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex();
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder();
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
* @return Whether the globalUniqueIndex field is set.
*/
boolean hasGlobalUniqueIndex();
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
* @return The globalUniqueIndex.
*/
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex getGlobalUniqueIndex();
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
*/
tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder getGlobalUniqueIndexOrBuilder();
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @return A list containing the dataColumns.
*/
java.util.List
getDataColumnsList();
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @return The count of dataColumns.
*/
int getDataColumnsCount();
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param index The index of the element to return.
* @return The dataColumns at the given index.
*/
java.lang.String getDataColumns(int index);
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param index The index of the value to return.
* @return The bytes of the dataColumns at the given index.
*/
com.google.protobuf.ByteString
getDataColumnsBytes(int index);
tech.ydb.proto.table.YdbTable.TableIndex.TypeCase getTypeCase();
}
/**
*
* Represent secondary index
*
*
* Protobuf type {@code Ydb.Table.TableIndex}
*/
public static final class TableIndex extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.TableIndex)
TableIndexOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableIndex.newBuilder() to construct.
private TableIndex(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableIndex() {
name_ = "";
indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableIndex();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TableIndex.class, tech.ydb.proto.table.YdbTable.TableIndex.Builder.class);
}
private int typeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GLOBAL_INDEX(3),
GLOBAL_ASYNC_INDEX(4),
GLOBAL_UNIQUE_INDEX(6),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(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 TypeCase valueOf(int value) {
return forNumber(value);
}
public static TypeCase forNumber(int value) {
switch (value) {
case 3: return GLOBAL_INDEX;
case 4: return GLOBAL_ASYNC_INDEX;
case 6: return GLOBAL_UNIQUE_INDEX;
case 0: return TYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Name of index
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of index
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEX_COLUMNS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return A list containing the indexColumns.
*/
public com.google.protobuf.ProtocolStringList
getIndexColumnsList() {
return indexColumns_;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return The count of indexColumns.
*/
public int getIndexColumnsCount() {
return indexColumns_.size();
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the element to return.
* @return The indexColumns at the given index.
*/
public java.lang.String getIndexColumns(int index) {
return indexColumns_.get(index);
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the value to return.
* @return The bytes of the indexColumns at the given index.
*/
public com.google.protobuf.ByteString
getIndexColumnsBytes(int index) {
return indexColumns_.getByteString(index);
}
public static final int GLOBAL_INDEX_FIELD_NUMBER = 3;
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return Whether the globalIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalIndex() {
return typeCase_ == 3;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return The globalIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndex getGlobalIndex() {
if (typeCase_ == 3) {
return (tech.ydb.proto.table.YdbTable.GlobalIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder() {
if (typeCase_ == 3) {
return (tech.ydb.proto.table.YdbTable.GlobalIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
public static final int GLOBAL_ASYNC_INDEX_FIELD_NUMBER = 4;
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
* @return Whether the globalAsyncIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalAsyncIndex() {
return typeCase_ == 4;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
* @return The globalAsyncIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex() {
if (typeCase_ == 4) {
return (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder() {
if (typeCase_ == 4) {
return (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
public static final int GLOBAL_UNIQUE_INDEX_FIELD_NUMBER = 6;
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
* @return Whether the globalUniqueIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalUniqueIndex() {
return typeCase_ == 6;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
* @return The globalUniqueIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex getGlobalUniqueIndex() {
if (typeCase_ == 6) {
return (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder getGlobalUniqueIndexOrBuilder() {
if (typeCase_ == 6) {
return (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
public static final int DATA_COLUMNS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @return A list containing the dataColumns.
*/
public com.google.protobuf.ProtocolStringList
getDataColumnsList() {
return dataColumns_;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @return The count of dataColumns.
*/
public int getDataColumnsCount() {
return dataColumns_.size();
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param index The index of the element to return.
* @return The dataColumns at the given index.
*/
public java.lang.String getDataColumns(int index) {
return dataColumns_.get(index);
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param index The index of the value to return.
* @return The bytes of the dataColumns at the given index.
*/
public com.google.protobuf.ByteString
getDataColumnsBytes(int index) {
return dataColumns_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < indexColumns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, indexColumns_.getRaw(i));
}
if (typeCase_ == 3) {
output.writeMessage(3, (tech.ydb.proto.table.YdbTable.GlobalIndex) type_);
}
if (typeCase_ == 4) {
output.writeMessage(4, (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_);
}
for (int i = 0; i < dataColumns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dataColumns_.getRaw(i));
}
if (typeCase_ == 6) {
output.writeMessage(6, (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
{
int dataSize = 0;
for (int i = 0; i < indexColumns_.size(); i++) {
dataSize += computeStringSizeNoTag(indexColumns_.getRaw(i));
}
size += dataSize;
size += 1 * getIndexColumnsList().size();
}
if (typeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (tech.ydb.proto.table.YdbTable.GlobalIndex) type_);
}
if (typeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_);
}
{
int dataSize = 0;
for (int i = 0; i < dataColumns_.size(); i++) {
dataSize += computeStringSizeNoTag(dataColumns_.getRaw(i));
}
size += dataSize;
size += 1 * getDataColumnsList().size();
}
if (typeCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.TableIndex)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.TableIndex other = (tech.ydb.proto.table.YdbTable.TableIndex) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getIndexColumnsList()
.equals(other.getIndexColumnsList())) return false;
if (!getDataColumnsList()
.equals(other.getDataColumnsList())) return false;
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 3:
if (!getGlobalIndex()
.equals(other.getGlobalIndex())) return false;
break;
case 4:
if (!getGlobalAsyncIndex()
.equals(other.getGlobalAsyncIndex())) return false;
break;
case 6:
if (!getGlobalUniqueIndex()
.equals(other.getGlobalUniqueIndex())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getIndexColumnsCount() > 0) {
hash = (37 * hash) + INDEX_COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getIndexColumnsList().hashCode();
}
if (getDataColumnsCount() > 0) {
hash = (37 * hash) + DATA_COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getDataColumnsList().hashCode();
}
switch (typeCase_) {
case 3:
hash = (37 * hash) + GLOBAL_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getGlobalIndex().hashCode();
break;
case 4:
hash = (37 * hash) + GLOBAL_ASYNC_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getGlobalAsyncIndex().hashCode();
break;
case 6:
hash = (37 * hash) + GLOBAL_UNIQUE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getGlobalUniqueIndex().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.TableIndex parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableIndex parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableIndex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableIndex parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableIndex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableIndex 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 tech.ydb.proto.table.YdbTable.TableIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableIndex 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 tech.ydb.proto.table.YdbTable.TableIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableIndex 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(tech.ydb.proto.table.YdbTable.TableIndex 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;
}
/**
*
* Represent secondary index
*
*
* Protobuf type {@code Ydb.Table.TableIndex}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.TableIndex)
tech.ydb.proto.table.YdbTable.TableIndexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TableIndex.class, tech.ydb.proto.table.YdbTable.TableIndex.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.TableIndex.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (globalIndexBuilder_ != null) {
globalIndexBuilder_.clear();
}
if (globalAsyncIndexBuilder_ != null) {
globalAsyncIndexBuilder_.clear();
}
if (globalUniqueIndexBuilder_ != null) {
globalUniqueIndexBuilder_.clear();
}
dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndex_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndex getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.TableIndex.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndex build() {
tech.ydb.proto.table.YdbTable.TableIndex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndex buildPartial() {
tech.ydb.proto.table.YdbTable.TableIndex result = new tech.ydb.proto.table.YdbTable.TableIndex(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.TableIndex result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
indexColumns_.makeImmutable();
result.indexColumns_ = indexColumns_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
dataColumns_.makeImmutable();
result.dataColumns_ = dataColumns_;
}
}
private void buildPartialOneofs(tech.ydb.proto.table.YdbTable.TableIndex result) {
result.typeCase_ = typeCase_;
result.type_ = this.type_;
if (typeCase_ == 3 &&
globalIndexBuilder_ != null) {
result.type_ = globalIndexBuilder_.build();
}
if (typeCase_ == 4 &&
globalAsyncIndexBuilder_ != null) {
result.type_ = globalAsyncIndexBuilder_.build();
}
if (typeCase_ == 6 &&
globalUniqueIndexBuilder_ != null) {
result.type_ = globalUniqueIndexBuilder_.build();
}
}
@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 tech.ydb.proto.table.YdbTable.TableIndex) {
return mergeFrom((tech.ydb.proto.table.YdbTable.TableIndex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.TableIndex other) {
if (other == tech.ydb.proto.table.YdbTable.TableIndex.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.indexColumns_.isEmpty()) {
if (indexColumns_.isEmpty()) {
indexColumns_ = other.indexColumns_;
bitField0_ |= 0x00000002;
} else {
ensureIndexColumnsIsMutable();
indexColumns_.addAll(other.indexColumns_);
}
onChanged();
}
if (!other.dataColumns_.isEmpty()) {
if (dataColumns_.isEmpty()) {
dataColumns_ = other.dataColumns_;
bitField0_ |= 0x00000020;
} else {
ensureDataColumnsIsMutable();
dataColumns_.addAll(other.dataColumns_);
}
onChanged();
}
switch (other.getTypeCase()) {
case GLOBAL_INDEX: {
mergeGlobalIndex(other.getGlobalIndex());
break;
}
case GLOBAL_ASYNC_INDEX: {
mergeGlobalAsyncIndex(other.getGlobalAsyncIndex());
break;
}
case GLOBAL_UNIQUE_INDEX: {
mergeGlobalUniqueIndex(other.getGlobalUniqueIndex());
break;
}
case TYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureIndexColumnsIsMutable();
indexColumns_.add(s);
break;
} // case 18
case 26: {
input.readMessage(
getGlobalIndexFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getGlobalAsyncIndexFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 4;
break;
} // case 34
case 42: {
java.lang.String s = input.readStringRequireUtf8();
ensureDataColumnsIsMutable();
dataColumns_.add(s);
break;
} // case 42
case 50: {
input.readMessage(
getGlobalUniqueIndexFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 6;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of index
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of index
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of index
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Name of index
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Name of index
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIndexColumnsIsMutable() {
if (!indexColumns_.isModifiable()) {
indexColumns_ = new com.google.protobuf.LazyStringArrayList(indexColumns_);
}
bitField0_ |= 0x00000002;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return A list containing the indexColumns.
*/
public com.google.protobuf.ProtocolStringList
getIndexColumnsList() {
indexColumns_.makeImmutable();
return indexColumns_;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return The count of indexColumns.
*/
public int getIndexColumnsCount() {
return indexColumns_.size();
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the element to return.
* @return The indexColumns at the given index.
*/
public java.lang.String getIndexColumns(int index) {
return indexColumns_.get(index);
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the value to return.
* @return The bytes of the indexColumns at the given index.
*/
public com.google.protobuf.ByteString
getIndexColumnsBytes(int index) {
return indexColumns_.getByteString(index);
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index to set the value at.
* @param value The indexColumns to set.
* @return This builder for chaining.
*/
public Builder setIndexColumns(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIndexColumnsIsMutable();
indexColumns_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param value The indexColumns to add.
* @return This builder for chaining.
*/
public Builder addIndexColumns(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIndexColumnsIsMutable();
indexColumns_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param values The indexColumns to add.
* @return This builder for chaining.
*/
public Builder addAllIndexColumns(
java.lang.Iterable values) {
ensureIndexColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indexColumns_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return This builder for chaining.
*/
public Builder clearIndexColumns() {
indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param value The bytes of the indexColumns to add.
* @return This builder for chaining.
*/
public Builder addIndexColumnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureIndexColumnsIsMutable();
indexColumns_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalIndex, tech.ydb.proto.table.YdbTable.GlobalIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder> globalIndexBuilder_;
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return Whether the globalIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalIndex() {
return typeCase_ == 3;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return The globalIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndex getGlobalIndex() {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3) {
return (tech.ydb.proto.table.YdbTable.GlobalIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return globalIndexBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder setGlobalIndex(tech.ydb.proto.table.YdbTable.GlobalIndex value) {
if (globalIndexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
globalIndexBuilder_.setMessage(value);
}
typeCase_ = 3;
return this;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder setGlobalIndex(
tech.ydb.proto.table.YdbTable.GlobalIndex.Builder builderForValue) {
if (globalIndexBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
globalIndexBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 3;
return this;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder mergeGlobalIndex(tech.ydb.proto.table.YdbTable.GlobalIndex value) {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3 &&
type_ != tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance()) {
type_ = tech.ydb.proto.table.YdbTable.GlobalIndex.newBuilder((tech.ydb.proto.table.YdbTable.GlobalIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 3) {
globalIndexBuilder_.mergeFrom(value);
} else {
globalIndexBuilder_.setMessage(value);
}
}
typeCase_ = 3;
return this;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder clearGlobalIndex() {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
}
globalIndexBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public tech.ydb.proto.table.YdbTable.GlobalIndex.Builder getGlobalIndexBuilder() {
return getGlobalIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder() {
if ((typeCase_ == 3) && (globalIndexBuilder_ != null)) {
return globalIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (tech.ydb.proto.table.YdbTable.GlobalIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalIndex, tech.ydb.proto.table.YdbTable.GlobalIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder>
getGlobalIndexFieldBuilder() {
if (globalIndexBuilder_ == null) {
if (!(typeCase_ == 3)) {
type_ = tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
globalIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalIndex, tech.ydb.proto.table.YdbTable.GlobalIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder>(
(tech.ydb.proto.table.YdbTable.GlobalIndex) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();
return globalIndexBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex, tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder> globalAsyncIndexBuilder_;
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
* @return Whether the globalAsyncIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalAsyncIndex() {
return typeCase_ == 4;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
* @return The globalAsyncIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex() {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 4) {
return (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
} else {
if (typeCase_ == 4) {
return globalAsyncIndexBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public Builder setGlobalAsyncIndex(tech.ydb.proto.table.YdbTable.GlobalAsyncIndex value) {
if (globalAsyncIndexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
globalAsyncIndexBuilder_.setMessage(value);
}
typeCase_ = 4;
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public Builder setGlobalAsyncIndex(
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder builderForValue) {
if (globalAsyncIndexBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
globalAsyncIndexBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 4;
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public Builder mergeGlobalAsyncIndex(tech.ydb.proto.table.YdbTable.GlobalAsyncIndex value) {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 4 &&
type_ != tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance()) {
type_ = tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.newBuilder((tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 4) {
globalAsyncIndexBuilder_.mergeFrom(value);
} else {
globalAsyncIndexBuilder_.setMessage(value);
}
}
typeCase_ = 4;
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public Builder clearGlobalAsyncIndex() {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
}
globalAsyncIndexBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder getGlobalAsyncIndexBuilder() {
return getGlobalAsyncIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder() {
if ((typeCase_ == 4) && (globalAsyncIndexBuilder_ != null)) {
return globalAsyncIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 4) {
return (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex, tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder>
getGlobalAsyncIndexFieldBuilder() {
if (globalAsyncIndexBuilder_ == null) {
if (!(typeCase_ == 4)) {
type_ = tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
globalAsyncIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex, tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder>(
(tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 4;
onChanged();
return globalAsyncIndexBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex, tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder> globalUniqueIndexBuilder_;
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
* @return Whether the globalUniqueIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalUniqueIndex() {
return typeCase_ == 6;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
* @return The globalUniqueIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex getGlobalUniqueIndex() {
if (globalUniqueIndexBuilder_ == null) {
if (typeCase_ == 6) {
return (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
} else {
if (typeCase_ == 6) {
return globalUniqueIndexBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
*/
public Builder setGlobalUniqueIndex(tech.ydb.proto.table.YdbTable.GlobalUniqueIndex value) {
if (globalUniqueIndexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
globalUniqueIndexBuilder_.setMessage(value);
}
typeCase_ = 6;
return this;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
*/
public Builder setGlobalUniqueIndex(
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder builderForValue) {
if (globalUniqueIndexBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
globalUniqueIndexBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 6;
return this;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
*/
public Builder mergeGlobalUniqueIndex(tech.ydb.proto.table.YdbTable.GlobalUniqueIndex value) {
if (globalUniqueIndexBuilder_ == null) {
if (typeCase_ == 6 &&
type_ != tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance()) {
type_ = tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.newBuilder((tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 6) {
globalUniqueIndexBuilder_.mergeFrom(value);
} else {
globalUniqueIndexBuilder_.setMessage(value);
}
}
typeCase_ = 6;
return this;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
*/
public Builder clearGlobalUniqueIndex() {
if (globalUniqueIndexBuilder_ == null) {
if (typeCase_ == 6) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 6) {
typeCase_ = 0;
type_ = null;
}
globalUniqueIndexBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
*/
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder getGlobalUniqueIndexBuilder() {
return getGlobalUniqueIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder getGlobalUniqueIndexOrBuilder() {
if ((typeCase_ == 6) && (globalUniqueIndexBuilder_ != null)) {
return globalUniqueIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 6) {
return (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex, tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder>
getGlobalUniqueIndexFieldBuilder() {
if (globalUniqueIndexBuilder_ == null) {
if (!(typeCase_ == 6)) {
type_ = tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
globalUniqueIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex, tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder>(
(tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 6;
onChanged();
return globalUniqueIndexBuilder_;
}
private com.google.protobuf.LazyStringArrayList dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureDataColumnsIsMutable() {
if (!dataColumns_.isModifiable()) {
dataColumns_ = new com.google.protobuf.LazyStringArrayList(dataColumns_);
}
bitField0_ |= 0x00000020;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @return A list containing the dataColumns.
*/
public com.google.protobuf.ProtocolStringList
getDataColumnsList() {
dataColumns_.makeImmutable();
return dataColumns_;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @return The count of dataColumns.
*/
public int getDataColumnsCount() {
return dataColumns_.size();
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param index The index of the element to return.
* @return The dataColumns at the given index.
*/
public java.lang.String getDataColumns(int index) {
return dataColumns_.get(index);
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param index The index of the value to return.
* @return The bytes of the dataColumns at the given index.
*/
public com.google.protobuf.ByteString
getDataColumnsBytes(int index) {
return dataColumns_.getByteString(index);
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param index The index to set the value at.
* @param value The dataColumns to set.
* @return This builder for chaining.
*/
public Builder setDataColumns(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDataColumnsIsMutable();
dataColumns_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param value The dataColumns to add.
* @return This builder for chaining.
*/
public Builder addDataColumns(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDataColumnsIsMutable();
dataColumns_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param values The dataColumns to add.
* @return This builder for chaining.
*/
public Builder addAllDataColumns(
java.lang.Iterable values) {
ensureDataColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dataColumns_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @return This builder for chaining.
*/
public Builder clearDataColumns() {
dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param value The bytes of the dataColumns to add.
* @return This builder for chaining.
*/
public Builder addDataColumnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureDataColumnsIsMutable();
dataColumns_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.TableIndex)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.TableIndex)
private static final tech.ydb.proto.table.YdbTable.TableIndex DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.TableIndex();
}
public static tech.ydb.proto.table.YdbTable.TableIndex getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableIndex parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndex getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TableIndexDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.TableIndexDescription)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of index
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of index
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return A list containing the indexColumns.
*/
java.util.List
getIndexColumnsList();
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return The count of indexColumns.
*/
int getIndexColumnsCount();
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the element to return.
* @return The indexColumns at the given index.
*/
java.lang.String getIndexColumns(int index);
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the value to return.
* @return The bytes of the indexColumns at the given index.
*/
com.google.protobuf.ByteString
getIndexColumnsBytes(int index);
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return Whether the globalIndex field is set.
*/
boolean hasGlobalIndex();
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return The globalIndex.
*/
tech.ydb.proto.table.YdbTable.GlobalIndex getGlobalIndex();
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder();
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
* @return Whether the globalAsyncIndex field is set.
*/
boolean hasGlobalAsyncIndex();
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
* @return The globalAsyncIndex.
*/
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex();
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder();
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
* @return Whether the globalUniqueIndex field is set.
*/
boolean hasGlobalUniqueIndex();
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
* @return The globalUniqueIndex.
*/
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex getGlobalUniqueIndex();
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
*/
tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder getGlobalUniqueIndexOrBuilder();
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return The enum numeric value on the wire for status.
*/
int getStatusValue();
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return The status.
*/
tech.ydb.proto.table.YdbTable.TableIndexDescription.Status getStatus();
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @return A list containing the dataColumns.
*/
java.util.List
getDataColumnsList();
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @return The count of dataColumns.
*/
int getDataColumnsCount();
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param index The index of the element to return.
* @return The dataColumns at the given index.
*/
java.lang.String getDataColumns(int index);
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param index The index of the value to return.
* @return The bytes of the dataColumns at the given index.
*/
com.google.protobuf.ByteString
getDataColumnsBytes(int index);
/**
*
* Size of index data in bytes
*
*
* uint64 size_bytes = 7;
* @return The sizeBytes.
*/
long getSizeBytes();
tech.ydb.proto.table.YdbTable.TableIndexDescription.TypeCase getTypeCase();
}
/**
*
* Represent secondary index with index state
*
*
* Protobuf type {@code Ydb.Table.TableIndexDescription}
*/
public static final class TableIndexDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.TableIndexDescription)
TableIndexDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableIndexDescription.newBuilder() to construct.
private TableIndexDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableIndexDescription() {
name_ = "";
indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
status_ = 0;
dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableIndexDescription();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TableIndexDescription.class, tech.ydb.proto.table.YdbTable.TableIndexDescription.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.TableIndexDescription.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATUS_UNSPECIFIED = 0;
*/
STATUS_UNSPECIFIED(0),
/**
*
* Index is ready to use
*
*
* STATUS_READY = 1;
*/
STATUS_READY(1),
/**
*
* index is being built
*
*
* STATUS_BUILDING = 2;
*/
STATUS_BUILDING(2),
UNRECOGNIZED(-1),
;
/**
* STATUS_UNSPECIFIED = 0;
*/
public static final int STATUS_UNSPECIFIED_VALUE = 0;
/**
*
* Index is ready to use
*
*
* STATUS_READY = 1;
*/
public static final int STATUS_READY_VALUE = 1;
/**
*
* index is being built
*
*
* STATUS_BUILDING = 2;
*/
public static final int STATUS_BUILDING_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Status forNumber(int value) {
switch (value) {
case 0: return STATUS_UNSPECIFIED;
case 1: return STATUS_READY;
case 2: return STATUS_BUILDING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.TableIndexDescription.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.TableIndexDescription.Status)
}
private int typeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object type_;
public enum TypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GLOBAL_INDEX(3),
GLOBAL_ASYNC_INDEX(5),
GLOBAL_UNIQUE_INDEX(8),
TYPE_NOT_SET(0);
private final int value;
private TypeCase(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 TypeCase valueOf(int value) {
return forNumber(value);
}
public static TypeCase forNumber(int value) {
switch (value) {
case 3: return GLOBAL_INDEX;
case 5: return GLOBAL_ASYNC_INDEX;
case 8: return GLOBAL_UNIQUE_INDEX;
case 0: return TYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Name of index
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of index
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEX_COLUMNS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return A list containing the indexColumns.
*/
public com.google.protobuf.ProtocolStringList
getIndexColumnsList() {
return indexColumns_;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return The count of indexColumns.
*/
public int getIndexColumnsCount() {
return indexColumns_.size();
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the element to return.
* @return The indexColumns at the given index.
*/
public java.lang.String getIndexColumns(int index) {
return indexColumns_.get(index);
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the value to return.
* @return The bytes of the indexColumns at the given index.
*/
public com.google.protobuf.ByteString
getIndexColumnsBytes(int index) {
return indexColumns_.getByteString(index);
}
public static final int GLOBAL_INDEX_FIELD_NUMBER = 3;
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return Whether the globalIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalIndex() {
return typeCase_ == 3;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return The globalIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndex getGlobalIndex() {
if (typeCase_ == 3) {
return (tech.ydb.proto.table.YdbTable.GlobalIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder() {
if (typeCase_ == 3) {
return (tech.ydb.proto.table.YdbTable.GlobalIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
public static final int GLOBAL_ASYNC_INDEX_FIELD_NUMBER = 5;
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
* @return Whether the globalAsyncIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalAsyncIndex() {
return typeCase_ == 5;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
* @return The globalAsyncIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex() {
if (typeCase_ == 5) {
return (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder() {
if (typeCase_ == 5) {
return (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
public static final int GLOBAL_UNIQUE_INDEX_FIELD_NUMBER = 8;
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
* @return Whether the globalUniqueIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalUniqueIndex() {
return typeCase_ == 8;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
* @return The globalUniqueIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex getGlobalUniqueIndex() {
if (typeCase_ == 8) {
return (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder getGlobalUniqueIndexOrBuilder() {
if (typeCase_ == 8) {
return (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
public static final int STATUS_FIELD_NUMBER = 4;
private int status_ = 0;
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return The status.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.TableIndexDescription.Status getStatus() {
tech.ydb.proto.table.YdbTable.TableIndexDescription.Status result = tech.ydb.proto.table.YdbTable.TableIndexDescription.Status.forNumber(status_);
return result == null ? tech.ydb.proto.table.YdbTable.TableIndexDescription.Status.UNRECOGNIZED : result;
}
public static final int DATA_COLUMNS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @return A list containing the dataColumns.
*/
public com.google.protobuf.ProtocolStringList
getDataColumnsList() {
return dataColumns_;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @return The count of dataColumns.
*/
public int getDataColumnsCount() {
return dataColumns_.size();
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param index The index of the element to return.
* @return The dataColumns at the given index.
*/
public java.lang.String getDataColumns(int index) {
return dataColumns_.get(index);
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param index The index of the value to return.
* @return The bytes of the dataColumns at the given index.
*/
public com.google.protobuf.ByteString
getDataColumnsBytes(int index) {
return dataColumns_.getByteString(index);
}
public static final int SIZE_BYTES_FIELD_NUMBER = 7;
private long sizeBytes_ = 0L;
/**
*
* Size of index data in bytes
*
*
* uint64 size_bytes = 7;
* @return The sizeBytes.
*/
@java.lang.Override
public long getSizeBytes() {
return sizeBytes_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < indexColumns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, indexColumns_.getRaw(i));
}
if (typeCase_ == 3) {
output.writeMessage(3, (tech.ydb.proto.table.YdbTable.GlobalIndex) type_);
}
if (status_ != tech.ydb.proto.table.YdbTable.TableIndexDescription.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(4, status_);
}
if (typeCase_ == 5) {
output.writeMessage(5, (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_);
}
for (int i = 0; i < dataColumns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dataColumns_.getRaw(i));
}
if (sizeBytes_ != 0L) {
output.writeUInt64(7, sizeBytes_);
}
if (typeCase_ == 8) {
output.writeMessage(8, (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
{
int dataSize = 0;
for (int i = 0; i < indexColumns_.size(); i++) {
dataSize += computeStringSizeNoTag(indexColumns_.getRaw(i));
}
size += dataSize;
size += 1 * getIndexColumnsList().size();
}
if (typeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (tech.ydb.proto.table.YdbTable.GlobalIndex) type_);
}
if (status_ != tech.ydb.proto.table.YdbTable.TableIndexDescription.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, status_);
}
if (typeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_);
}
{
int dataSize = 0;
for (int i = 0; i < dataColumns_.size(); i++) {
dataSize += computeStringSizeNoTag(dataColumns_.getRaw(i));
}
size += dataSize;
size += 1 * getDataColumnsList().size();
}
if (sizeBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, sizeBytes_);
}
if (typeCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.TableIndexDescription)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.TableIndexDescription other = (tech.ydb.proto.table.YdbTable.TableIndexDescription) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getIndexColumnsList()
.equals(other.getIndexColumnsList())) return false;
if (status_ != other.status_) return false;
if (!getDataColumnsList()
.equals(other.getDataColumnsList())) return false;
if (getSizeBytes()
!= other.getSizeBytes()) return false;
if (!getTypeCase().equals(other.getTypeCase())) return false;
switch (typeCase_) {
case 3:
if (!getGlobalIndex()
.equals(other.getGlobalIndex())) return false;
break;
case 5:
if (!getGlobalAsyncIndex()
.equals(other.getGlobalAsyncIndex())) return false;
break;
case 8:
if (!getGlobalUniqueIndex()
.equals(other.getGlobalUniqueIndex())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getIndexColumnsCount() > 0) {
hash = (37 * hash) + INDEX_COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getIndexColumnsList().hashCode();
}
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getDataColumnsCount() > 0) {
hash = (37 * hash) + DATA_COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getDataColumnsList().hashCode();
}
hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSizeBytes());
switch (typeCase_) {
case 3:
hash = (37 * hash) + GLOBAL_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getGlobalIndex().hashCode();
break;
case 5:
hash = (37 * hash) + GLOBAL_ASYNC_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getGlobalAsyncIndex().hashCode();
break;
case 8:
hash = (37 * hash) + GLOBAL_UNIQUE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getGlobalUniqueIndex().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription 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 tech.ydb.proto.table.YdbTable.TableIndexDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription 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 tech.ydb.proto.table.YdbTable.TableIndexDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription 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(tech.ydb.proto.table.YdbTable.TableIndexDescription 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;
}
/**
*
* Represent secondary index with index state
*
*
* Protobuf type {@code Ydb.Table.TableIndexDescription}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.TableIndexDescription)
tech.ydb.proto.table.YdbTable.TableIndexDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TableIndexDescription.class, tech.ydb.proto.table.YdbTable.TableIndexDescription.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.TableIndexDescription.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (globalIndexBuilder_ != null) {
globalIndexBuilder_.clear();
}
if (globalAsyncIndexBuilder_ != null) {
globalAsyncIndexBuilder_.clear();
}
if (globalUniqueIndexBuilder_ != null) {
globalUniqueIndexBuilder_.clear();
}
status_ = 0;
dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sizeBytes_ = 0L;
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndexDescription getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.TableIndexDescription.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndexDescription build() {
tech.ydb.proto.table.YdbTable.TableIndexDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndexDescription buildPartial() {
tech.ydb.proto.table.YdbTable.TableIndexDescription result = new tech.ydb.proto.table.YdbTable.TableIndexDescription(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.TableIndexDescription result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
indexColumns_.makeImmutable();
result.indexColumns_ = indexColumns_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
dataColumns_.makeImmutable();
result.dataColumns_ = dataColumns_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.sizeBytes_ = sizeBytes_;
}
}
private void buildPartialOneofs(tech.ydb.proto.table.YdbTable.TableIndexDescription result) {
result.typeCase_ = typeCase_;
result.type_ = this.type_;
if (typeCase_ == 3 &&
globalIndexBuilder_ != null) {
result.type_ = globalIndexBuilder_.build();
}
if (typeCase_ == 5 &&
globalAsyncIndexBuilder_ != null) {
result.type_ = globalAsyncIndexBuilder_.build();
}
if (typeCase_ == 8 &&
globalUniqueIndexBuilder_ != null) {
result.type_ = globalUniqueIndexBuilder_.build();
}
}
@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 tech.ydb.proto.table.YdbTable.TableIndexDescription) {
return mergeFrom((tech.ydb.proto.table.YdbTable.TableIndexDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.TableIndexDescription other) {
if (other == tech.ydb.proto.table.YdbTable.TableIndexDescription.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.indexColumns_.isEmpty()) {
if (indexColumns_.isEmpty()) {
indexColumns_ = other.indexColumns_;
bitField0_ |= 0x00000002;
} else {
ensureIndexColumnsIsMutable();
indexColumns_.addAll(other.indexColumns_);
}
onChanged();
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.dataColumns_.isEmpty()) {
if (dataColumns_.isEmpty()) {
dataColumns_ = other.dataColumns_;
bitField0_ |= 0x00000040;
} else {
ensureDataColumnsIsMutable();
dataColumns_.addAll(other.dataColumns_);
}
onChanged();
}
if (other.getSizeBytes() != 0L) {
setSizeBytes(other.getSizeBytes());
}
switch (other.getTypeCase()) {
case GLOBAL_INDEX: {
mergeGlobalIndex(other.getGlobalIndex());
break;
}
case GLOBAL_ASYNC_INDEX: {
mergeGlobalAsyncIndex(other.getGlobalAsyncIndex());
break;
}
case GLOBAL_UNIQUE_INDEX: {
mergeGlobalUniqueIndex(other.getGlobalUniqueIndex());
break;
}
case TYPE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureIndexColumnsIsMutable();
indexColumns_.add(s);
break;
} // case 18
case 26: {
input.readMessage(
getGlobalIndexFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 3;
break;
} // case 26
case 32: {
status_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 32
case 42: {
input.readMessage(
getGlobalAsyncIndexFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 5;
break;
} // case 42
case 50: {
java.lang.String s = input.readStringRequireUtf8();
ensureDataColumnsIsMutable();
dataColumns_.add(s);
break;
} // case 50
case 56: {
sizeBytes_ = input.readUInt64();
bitField0_ |= 0x00000080;
break;
} // case 56
case 66: {
input.readMessage(
getGlobalUniqueIndexFieldBuilder().getBuilder(),
extensionRegistry);
typeCase_ = 8;
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int typeCase_ = 0;
private java.lang.Object type_;
public TypeCase
getTypeCase() {
return TypeCase.forNumber(
typeCase_);
}
public Builder clearType() {
typeCase_ = 0;
type_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of index
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of index
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of index
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Name of index
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Name of index
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureIndexColumnsIsMutable() {
if (!indexColumns_.isModifiable()) {
indexColumns_ = new com.google.protobuf.LazyStringArrayList(indexColumns_);
}
bitField0_ |= 0x00000002;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return A list containing the indexColumns.
*/
public com.google.protobuf.ProtocolStringList
getIndexColumnsList() {
indexColumns_.makeImmutable();
return indexColumns_;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return The count of indexColumns.
*/
public int getIndexColumnsCount() {
return indexColumns_.size();
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the element to return.
* @return The indexColumns at the given index.
*/
public java.lang.String getIndexColumns(int index) {
return indexColumns_.get(index);
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index of the value to return.
* @return The bytes of the indexColumns at the given index.
*/
public com.google.protobuf.ByteString
getIndexColumnsBytes(int index) {
return indexColumns_.getByteString(index);
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param index The index to set the value at.
* @param value The indexColumns to set.
* @return This builder for chaining.
*/
public Builder setIndexColumns(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIndexColumnsIsMutable();
indexColumns_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param value The indexColumns to add.
* @return This builder for chaining.
*/
public Builder addIndexColumns(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureIndexColumnsIsMutable();
indexColumns_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param values The indexColumns to add.
* @return This builder for chaining.
*/
public Builder addAllIndexColumns(
java.lang.Iterable values) {
ensureIndexColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, indexColumns_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return This builder for chaining.
*/
public Builder clearIndexColumns() {
indexColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param value The bytes of the indexColumns to add.
* @return This builder for chaining.
*/
public Builder addIndexColumnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureIndexColumnsIsMutable();
indexColumns_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalIndex, tech.ydb.proto.table.YdbTable.GlobalIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder> globalIndexBuilder_;
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return Whether the globalIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalIndex() {
return typeCase_ == 3;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
* @return The globalIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndex getGlobalIndex() {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3) {
return (tech.ydb.proto.table.YdbTable.GlobalIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return globalIndexBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder setGlobalIndex(tech.ydb.proto.table.YdbTable.GlobalIndex value) {
if (globalIndexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
globalIndexBuilder_.setMessage(value);
}
typeCase_ = 3;
return this;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder setGlobalIndex(
tech.ydb.proto.table.YdbTable.GlobalIndex.Builder builderForValue) {
if (globalIndexBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
globalIndexBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 3;
return this;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder mergeGlobalIndex(tech.ydb.proto.table.YdbTable.GlobalIndex value) {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3 &&
type_ != tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance()) {
type_ = tech.ydb.proto.table.YdbTable.GlobalIndex.newBuilder((tech.ydb.proto.table.YdbTable.GlobalIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 3) {
globalIndexBuilder_.mergeFrom(value);
} else {
globalIndexBuilder_.setMessage(value);
}
}
typeCase_ = 3;
return this;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder clearGlobalIndex() {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 3) {
typeCase_ = 0;
type_ = null;
}
globalIndexBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public tech.ydb.proto.table.YdbTable.GlobalIndex.Builder getGlobalIndexBuilder() {
return getGlobalIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder() {
if ((typeCase_ == 3) && (globalIndexBuilder_ != null)) {
return globalIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (tech.ydb.proto.table.YdbTable.GlobalIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalIndex, tech.ydb.proto.table.YdbTable.GlobalIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder>
getGlobalIndexFieldBuilder() {
if (globalIndexBuilder_ == null) {
if (!(typeCase_ == 3)) {
type_ = tech.ydb.proto.table.YdbTable.GlobalIndex.getDefaultInstance();
}
globalIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalIndex, tech.ydb.proto.table.YdbTable.GlobalIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalIndexOrBuilder>(
(tech.ydb.proto.table.YdbTable.GlobalIndex) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();
return globalIndexBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex, tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder> globalAsyncIndexBuilder_;
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
* @return Whether the globalAsyncIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalAsyncIndex() {
return typeCase_ == 5;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
* @return The globalAsyncIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex() {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 5) {
return (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
} else {
if (typeCase_ == 5) {
return globalAsyncIndexBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
public Builder setGlobalAsyncIndex(tech.ydb.proto.table.YdbTable.GlobalAsyncIndex value) {
if (globalAsyncIndexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
globalAsyncIndexBuilder_.setMessage(value);
}
typeCase_ = 5;
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
public Builder setGlobalAsyncIndex(
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder builderForValue) {
if (globalAsyncIndexBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
globalAsyncIndexBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 5;
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
public Builder mergeGlobalAsyncIndex(tech.ydb.proto.table.YdbTable.GlobalAsyncIndex value) {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 5 &&
type_ != tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance()) {
type_ = tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.newBuilder((tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 5) {
globalAsyncIndexBuilder_.mergeFrom(value);
} else {
globalAsyncIndexBuilder_.setMessage(value);
}
}
typeCase_ = 5;
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
public Builder clearGlobalAsyncIndex() {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 5) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 5) {
typeCase_ = 0;
type_ = null;
}
globalAsyncIndexBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder getGlobalAsyncIndexBuilder() {
return getGlobalAsyncIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder() {
if ((typeCase_ == 5) && (globalAsyncIndexBuilder_ != null)) {
return globalAsyncIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 5) {
return (tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex, tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder>
getGlobalAsyncIndexFieldBuilder() {
if (globalAsyncIndexBuilder_ == null) {
if (!(typeCase_ == 5)) {
type_ = tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
globalAsyncIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalAsyncIndex, tech.ydb.proto.table.YdbTable.GlobalAsyncIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalAsyncIndexOrBuilder>(
(tech.ydb.proto.table.YdbTable.GlobalAsyncIndex) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 5;
onChanged();
return globalAsyncIndexBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex, tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder> globalUniqueIndexBuilder_;
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
* @return Whether the globalUniqueIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalUniqueIndex() {
return typeCase_ == 8;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
* @return The globalUniqueIndex.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex getGlobalUniqueIndex() {
if (globalUniqueIndexBuilder_ == null) {
if (typeCase_ == 8) {
return (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
} else {
if (typeCase_ == 8) {
return globalUniqueIndexBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
*/
public Builder setGlobalUniqueIndex(tech.ydb.proto.table.YdbTable.GlobalUniqueIndex value) {
if (globalUniqueIndexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
globalUniqueIndexBuilder_.setMessage(value);
}
typeCase_ = 8;
return this;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
*/
public Builder setGlobalUniqueIndex(
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder builderForValue) {
if (globalUniqueIndexBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
globalUniqueIndexBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 8;
return this;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
*/
public Builder mergeGlobalUniqueIndex(tech.ydb.proto.table.YdbTable.GlobalUniqueIndex value) {
if (globalUniqueIndexBuilder_ == null) {
if (typeCase_ == 8 &&
type_ != tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance()) {
type_ = tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.newBuilder((tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 8) {
globalUniqueIndexBuilder_.mergeFrom(value);
} else {
globalUniqueIndexBuilder_.setMessage(value);
}
}
typeCase_ = 8;
return this;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
*/
public Builder clearGlobalUniqueIndex() {
if (globalUniqueIndexBuilder_ == null) {
if (typeCase_ == 8) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 8) {
typeCase_ = 0;
type_ = null;
}
globalUniqueIndexBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
*/
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder getGlobalUniqueIndexBuilder() {
return getGlobalUniqueIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder getGlobalUniqueIndexOrBuilder() {
if ((typeCase_ == 8) && (globalUniqueIndexBuilder_ != null)) {
return globalUniqueIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 8) {
return (tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_;
}
return tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalUniqueIndex global_unique_index = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex, tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder>
getGlobalUniqueIndexFieldBuilder() {
if (globalUniqueIndexBuilder_ == null) {
if (!(typeCase_ == 8)) {
type_ = tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.getDefaultInstance();
}
globalUniqueIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.GlobalUniqueIndex, tech.ydb.proto.table.YdbTable.GlobalUniqueIndex.Builder, tech.ydb.proto.table.YdbTable.GlobalUniqueIndexOrBuilder>(
(tech.ydb.proto.table.YdbTable.GlobalUniqueIndex) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 8;
onChanged();
return globalUniqueIndexBuilder_;
}
private int status_ = 0;
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return The enum numeric value on the wire for status.
*/
@java.lang.Override public int getStatusValue() {
return status_;
}
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @param value The enum numeric value on the wire for status to set.
* @return This builder for chaining.
*/
public Builder setStatusValue(int value) {
status_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return The status.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndexDescription.Status getStatus() {
tech.ydb.proto.table.YdbTable.TableIndexDescription.Status result = tech.ydb.proto.table.YdbTable.TableIndexDescription.Status.forNumber(status_);
return result == null ? tech.ydb.proto.table.YdbTable.TableIndexDescription.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(tech.ydb.proto.table.YdbTable.TableIndexDescription.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000020);
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureDataColumnsIsMutable() {
if (!dataColumns_.isModifiable()) {
dataColumns_ = new com.google.protobuf.LazyStringArrayList(dataColumns_);
}
bitField0_ |= 0x00000040;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @return A list containing the dataColumns.
*/
public com.google.protobuf.ProtocolStringList
getDataColumnsList() {
dataColumns_.makeImmutable();
return dataColumns_;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @return The count of dataColumns.
*/
public int getDataColumnsCount() {
return dataColumns_.size();
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param index The index of the element to return.
* @return The dataColumns at the given index.
*/
public java.lang.String getDataColumns(int index) {
return dataColumns_.get(index);
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param index The index of the value to return.
* @return The bytes of the dataColumns at the given index.
*/
public com.google.protobuf.ByteString
getDataColumnsBytes(int index) {
return dataColumns_.getByteString(index);
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param index The index to set the value at.
* @param value The dataColumns to set.
* @return This builder for chaining.
*/
public Builder setDataColumns(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDataColumnsIsMutable();
dataColumns_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param value The dataColumns to add.
* @return This builder for chaining.
*/
public Builder addDataColumns(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDataColumnsIsMutable();
dataColumns_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param values The dataColumns to add.
* @return This builder for chaining.
*/
public Builder addAllDataColumns(
java.lang.Iterable values) {
ensureDataColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dataColumns_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @return This builder for chaining.
*/
public Builder clearDataColumns() {
dataColumns_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param value The bytes of the dataColumns to add.
* @return This builder for chaining.
*/
public Builder addDataColumnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureDataColumnsIsMutable();
dataColumns_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private long sizeBytes_ ;
/**
*
* Size of index data in bytes
*
*
* uint64 size_bytes = 7;
* @return The sizeBytes.
*/
@java.lang.Override
public long getSizeBytes() {
return sizeBytes_;
}
/**
*
* Size of index data in bytes
*
*
* uint64 size_bytes = 7;
* @param value The sizeBytes to set.
* @return This builder for chaining.
*/
public Builder setSizeBytes(long value) {
sizeBytes_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Size of index data in bytes
*
*
* uint64 size_bytes = 7;
* @return This builder for chaining.
*/
public Builder clearSizeBytes() {
bitField0_ = (bitField0_ & ~0x00000080);
sizeBytes_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.TableIndexDescription)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.TableIndexDescription)
private static final tech.ydb.proto.table.YdbTable.TableIndexDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.TableIndexDescription();
}
public static tech.ydb.proto.table.YdbTable.TableIndexDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableIndexDescription parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndexDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IndexBuildStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.IndexBuildState)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* State of index building operation
*
*
* Protobuf type {@code Ydb.Table.IndexBuildState}
*/
public static final class IndexBuildState extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.IndexBuildState)
IndexBuildStateOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexBuildState.newBuilder() to construct.
private IndexBuildState(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexBuildState() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexBuildState();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.IndexBuildState.class, tech.ydb.proto.table.YdbTable.IndexBuildState.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.IndexBuildState.State}
*/
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
* STATE_PREPARING = 1;
*/
STATE_PREPARING(1),
/**
* STATE_TRANSFERING_DATA = 2;
*/
STATE_TRANSFERING_DATA(2),
/**
* STATE_APPLYING = 3;
*/
STATE_APPLYING(3),
/**
* STATE_DONE = 4;
*/
STATE_DONE(4),
/**
* STATE_CANCELLATION = 5;
*/
STATE_CANCELLATION(5),
/**
* STATE_CANCELLED = 6;
*/
STATE_CANCELLED(6),
/**
* STATE_REJECTION = 7;
*/
STATE_REJECTION(7),
/**
* STATE_REJECTED = 8;
*/
STATE_REJECTED(8),
UNRECOGNIZED(-1),
;
/**
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
* STATE_PREPARING = 1;
*/
public static final int STATE_PREPARING_VALUE = 1;
/**
* STATE_TRANSFERING_DATA = 2;
*/
public static final int STATE_TRANSFERING_DATA_VALUE = 2;
/**
* STATE_APPLYING = 3;
*/
public static final int STATE_APPLYING_VALUE = 3;
/**
* STATE_DONE = 4;
*/
public static final int STATE_DONE_VALUE = 4;
/**
* STATE_CANCELLATION = 5;
*/
public static final int STATE_CANCELLATION_VALUE = 5;
/**
* STATE_CANCELLED = 6;
*/
public static final int STATE_CANCELLED_VALUE = 6;
/**
* STATE_REJECTION = 7;
*/
public static final int STATE_REJECTION_VALUE = 7;
/**
* STATE_REJECTED = 8;
*/
public static final int STATE_REJECTED_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0: return STATE_UNSPECIFIED;
case 1: return STATE_PREPARING;
case 2: return STATE_TRANSFERING_DATA;
case 3: return STATE_APPLYING;
case 4: return STATE_DONE;
case 5: return STATE_CANCELLATION;
case 6: return STATE_CANCELLED;
case 7: return STATE_REJECTION;
case 8: return STATE_REJECTED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
State> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.IndexBuildState.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.IndexBuildState.State)
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.IndexBuildState)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.IndexBuildState other = (tech.ydb.proto.table.YdbTable.IndexBuildState) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState 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 tech.ydb.proto.table.YdbTable.IndexBuildState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState 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 tech.ydb.proto.table.YdbTable.IndexBuildState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState 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(tech.ydb.proto.table.YdbTable.IndexBuildState 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;
}
/**
*
* State of index building operation
*
*
* Protobuf type {@code Ydb.Table.IndexBuildState}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.IndexBuildState)
tech.ydb.proto.table.YdbTable.IndexBuildStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.IndexBuildState.class, tech.ydb.proto.table.YdbTable.IndexBuildState.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.IndexBuildState.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildState getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.IndexBuildState.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildState build() {
tech.ydb.proto.table.YdbTable.IndexBuildState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildState buildPartial() {
tech.ydb.proto.table.YdbTable.IndexBuildState result = new tech.ydb.proto.table.YdbTable.IndexBuildState(this);
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 tech.ydb.proto.table.YdbTable.IndexBuildState) {
return mergeFrom((tech.ydb.proto.table.YdbTable.IndexBuildState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.IndexBuildState other) {
if (other == tech.ydb.proto.table.YdbTable.IndexBuildState.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.IndexBuildState)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.IndexBuildState)
private static final tech.ydb.proto.table.YdbTable.IndexBuildState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.IndexBuildState();
}
public static tech.ydb.proto.table.YdbTable.IndexBuildState getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexBuildState parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildState getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IndexBuildDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.IndexBuildDescription)
com.google.protobuf.MessageOrBuilder {
/**
* string path = 1;
* @return The path.
*/
java.lang.String getPath();
/**
* string path = 1;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
* .Ydb.Table.TableIndex index = 2;
* @return Whether the index field is set.
*/
boolean hasIndex();
/**
* .Ydb.Table.TableIndex index = 2;
* @return The index.
*/
tech.ydb.proto.table.YdbTable.TableIndex getIndex();
/**
* .Ydb.Table.TableIndex index = 2;
*/
tech.ydb.proto.table.YdbTable.TableIndexOrBuilder getIndexOrBuilder();
}
/**
*
* Description of index building operation
*
*
* Protobuf type {@code Ydb.Table.IndexBuildDescription}
*/
public static final class IndexBuildDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.IndexBuildDescription)
IndexBuildDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexBuildDescription.newBuilder() to construct.
private IndexBuildDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexBuildDescription() {
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexBuildDescription();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.IndexBuildDescription.class, tech.ydb.proto.table.YdbTable.IndexBuildDescription.Builder.class);
}
private int bitField0_;
public static final int PATH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object path_ = "";
/**
* string path = 1;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
}
}
/**
* string path = 1;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEX_FIELD_NUMBER = 2;
private tech.ydb.proto.table.YdbTable.TableIndex index_;
/**
* .Ydb.Table.TableIndex index = 2;
* @return Whether the index field is set.
*/
@java.lang.Override
public boolean hasIndex() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Table.TableIndex index = 2;
* @return The index.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndex getIndex() {
return index_ == null ? tech.ydb.proto.table.YdbTable.TableIndex.getDefaultInstance() : index_;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableIndexOrBuilder getIndexOrBuilder() {
return index_ == null ? tech.ydb.proto.table.YdbTable.TableIndex.getDefaultInstance() : index_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getIndex());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getIndex());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.IndexBuildDescription)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.IndexBuildDescription other = (tech.ydb.proto.table.YdbTable.IndexBuildDescription) obj;
if (!getPath()
.equals(other.getPath())) return false;
if (hasIndex() != other.hasIndex()) return false;
if (hasIndex()) {
if (!getIndex()
.equals(other.getIndex())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
if (hasIndex()) {
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription 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 tech.ydb.proto.table.YdbTable.IndexBuildDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription 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 tech.ydb.proto.table.YdbTable.IndexBuildDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription 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(tech.ydb.proto.table.YdbTable.IndexBuildDescription 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;
}
/**
*
* Description of index building operation
*
*
* Protobuf type {@code Ydb.Table.IndexBuildDescription}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.IndexBuildDescription)
tech.ydb.proto.table.YdbTable.IndexBuildDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.IndexBuildDescription.class, tech.ydb.proto.table.YdbTable.IndexBuildDescription.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.IndexBuildDescription.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIndexFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
path_ = "";
index_ = null;
if (indexBuilder_ != null) {
indexBuilder_.dispose();
indexBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildDescription getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.IndexBuildDescription.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildDescription build() {
tech.ydb.proto.table.YdbTable.IndexBuildDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildDescription buildPartial() {
tech.ydb.proto.table.YdbTable.IndexBuildDescription result = new tech.ydb.proto.table.YdbTable.IndexBuildDescription(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.IndexBuildDescription result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.path_ = path_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.index_ = indexBuilder_ == null
? index_
: indexBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.IndexBuildDescription) {
return mergeFrom((tech.ydb.proto.table.YdbTable.IndexBuildDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.IndexBuildDescription other) {
if (other == tech.ydb.proto.table.YdbTable.IndexBuildDescription.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasIndex()) {
mergeIndex(other.getIndex());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
path_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getIndexFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object path_ = "";
/**
* string path = 1;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string path = 1;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string path = 1;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
path_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string path = 1;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string path = 1;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
path_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private tech.ydb.proto.table.YdbTable.TableIndex index_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.TableIndex, tech.ydb.proto.table.YdbTable.TableIndex.Builder, tech.ydb.proto.table.YdbTable.TableIndexOrBuilder> indexBuilder_;
/**
* .Ydb.Table.TableIndex index = 2;
* @return Whether the index field is set.
*/
public boolean hasIndex() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Ydb.Table.TableIndex index = 2;
* @return The index.
*/
public tech.ydb.proto.table.YdbTable.TableIndex getIndex() {
if (indexBuilder_ == null) {
return index_ == null ? tech.ydb.proto.table.YdbTable.TableIndex.getDefaultInstance() : index_;
} else {
return indexBuilder_.getMessage();
}
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public Builder setIndex(tech.ydb.proto.table.YdbTable.TableIndex value) {
if (indexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
index_ = value;
} else {
indexBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public Builder setIndex(
tech.ydb.proto.table.YdbTable.TableIndex.Builder builderForValue) {
if (indexBuilder_ == null) {
index_ = builderForValue.build();
} else {
indexBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public Builder mergeIndex(tech.ydb.proto.table.YdbTable.TableIndex value) {
if (indexBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
index_ != null &&
index_ != tech.ydb.proto.table.YdbTable.TableIndex.getDefaultInstance()) {
getIndexBuilder().mergeFrom(value);
} else {
index_ = value;
}
} else {
indexBuilder_.mergeFrom(value);
}
if (index_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public Builder clearIndex() {
bitField0_ = (bitField0_ & ~0x00000002);
index_ = null;
if (indexBuilder_ != null) {
indexBuilder_.dispose();
indexBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public tech.ydb.proto.table.YdbTable.TableIndex.Builder getIndexBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public tech.ydb.proto.table.YdbTable.TableIndexOrBuilder getIndexOrBuilder() {
if (indexBuilder_ != null) {
return indexBuilder_.getMessageOrBuilder();
} else {
return index_ == null ?
tech.ydb.proto.table.YdbTable.TableIndex.getDefaultInstance() : index_;
}
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.TableIndex, tech.ydb.proto.table.YdbTable.TableIndex.Builder, tech.ydb.proto.table.YdbTable.TableIndexOrBuilder>
getIndexFieldBuilder() {
if (indexBuilder_ == null) {
indexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.TableIndex, tech.ydb.proto.table.YdbTable.TableIndex.Builder, tech.ydb.proto.table.YdbTable.TableIndexOrBuilder>(
getIndex(),
getParentForChildren(),
isClean());
index_ = null;
}
return indexBuilder_;
}
@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:Ydb.Table.IndexBuildDescription)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.IndexBuildDescription)
private static final tech.ydb.proto.table.YdbTable.IndexBuildDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.IndexBuildDescription();
}
public static tech.ydb.proto.table.YdbTable.IndexBuildDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexBuildDescription parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IndexBuildMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.IndexBuildMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return Whether the description field is set.
*/
boolean hasDescription();
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return The description.
*/
tech.ydb.proto.table.YdbTable.IndexBuildDescription getDescription();
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
tech.ydb.proto.table.YdbTable.IndexBuildDescriptionOrBuilder getDescriptionOrBuilder();
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @return The state.
*/
tech.ydb.proto.table.YdbTable.IndexBuildState.State getState();
/**
* float progress = 3;
* @return The progress.
*/
float getProgress();
}
/**
* Protobuf type {@code Ydb.Table.IndexBuildMetadata}
*/
public static final class IndexBuildMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.IndexBuildMetadata)
IndexBuildMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexBuildMetadata.newBuilder() to construct.
private IndexBuildMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexBuildMetadata() {
state_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexBuildMetadata();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.IndexBuildMetadata.class, tech.ydb.proto.table.YdbTable.IndexBuildMetadata.Builder.class);
}
private int bitField0_;
public static final int DESCRIPTION_FIELD_NUMBER = 1;
private tech.ydb.proto.table.YdbTable.IndexBuildDescription description_;
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return The description.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildDescription getDescription() {
return description_ == null ? tech.ydb.proto.table.YdbTable.IndexBuildDescription.getDefaultInstance() : description_;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildDescriptionOrBuilder getDescriptionOrBuilder() {
return description_ == null ? tech.ydb.proto.table.YdbTable.IndexBuildDescription.getDefaultInstance() : description_;
}
public static final int STATE_FIELD_NUMBER = 2;
private int state_ = 0;
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @return The state.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.IndexBuildState.State getState() {
tech.ydb.proto.table.YdbTable.IndexBuildState.State result = tech.ydb.proto.table.YdbTable.IndexBuildState.State.forNumber(state_);
return result == null ? tech.ydb.proto.table.YdbTable.IndexBuildState.State.UNRECOGNIZED : result;
}
public static final int PROGRESS_FIELD_NUMBER = 3;
private float progress_ = 0F;
/**
* float progress = 3;
* @return The progress.
*/
@java.lang.Override
public float getProgress() {
return progress_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getDescription());
}
if (state_ != tech.ydb.proto.table.YdbTable.IndexBuildState.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, state_);
}
if (java.lang.Float.floatToRawIntBits(progress_) != 0) {
output.writeFloat(3, progress_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDescription());
}
if (state_ != tech.ydb.proto.table.YdbTable.IndexBuildState.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, state_);
}
if (java.lang.Float.floatToRawIntBits(progress_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(3, progress_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.IndexBuildMetadata)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.IndexBuildMetadata other = (tech.ydb.proto.table.YdbTable.IndexBuildMetadata) obj;
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (state_ != other.state_) return false;
if (java.lang.Float.floatToIntBits(getProgress())
!= java.lang.Float.floatToIntBits(
other.getProgress())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + PROGRESS_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getProgress());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata 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 tech.ydb.proto.table.YdbTable.IndexBuildMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata 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 tech.ydb.proto.table.YdbTable.IndexBuildMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata 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(tech.ydb.proto.table.YdbTable.IndexBuildMetadata 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 Ydb.Table.IndexBuildMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.IndexBuildMetadata)
tech.ydb.proto.table.YdbTable.IndexBuildMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.IndexBuildMetadata.class, tech.ydb.proto.table.YdbTable.IndexBuildMetadata.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.IndexBuildMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDescriptionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
description_ = null;
if (descriptionBuilder_ != null) {
descriptionBuilder_.dispose();
descriptionBuilder_ = null;
}
state_ = 0;
progress_ = 0F;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildMetadata getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.IndexBuildMetadata.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildMetadata build() {
tech.ydb.proto.table.YdbTable.IndexBuildMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildMetadata buildPartial() {
tech.ydb.proto.table.YdbTable.IndexBuildMetadata result = new tech.ydb.proto.table.YdbTable.IndexBuildMetadata(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.IndexBuildMetadata result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.description_ = descriptionBuilder_ == null
? description_
: descriptionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.progress_ = progress_;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.IndexBuildMetadata) {
return mergeFrom((tech.ydb.proto.table.YdbTable.IndexBuildMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.IndexBuildMetadata other) {
if (other == tech.ydb.proto.table.YdbTable.IndexBuildMetadata.getDefaultInstance()) return this;
if (other.hasDescription()) {
mergeDescription(other.getDescription());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.getProgress() != 0F) {
setProgress(other.getProgress());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getDescriptionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
state_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 29: {
progress_ = input.readFloat();
bitField0_ |= 0x00000004;
break;
} // case 29
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private tech.ydb.proto.table.YdbTable.IndexBuildDescription description_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.IndexBuildDescription, tech.ydb.proto.table.YdbTable.IndexBuildDescription.Builder, tech.ydb.proto.table.YdbTable.IndexBuildDescriptionOrBuilder> descriptionBuilder_;
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return The description.
*/
public tech.ydb.proto.table.YdbTable.IndexBuildDescription getDescription() {
if (descriptionBuilder_ == null) {
return description_ == null ? tech.ydb.proto.table.YdbTable.IndexBuildDescription.getDefaultInstance() : description_;
} else {
return descriptionBuilder_.getMessage();
}
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public Builder setDescription(tech.ydb.proto.table.YdbTable.IndexBuildDescription value) {
if (descriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
} else {
descriptionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public Builder setDescription(
tech.ydb.proto.table.YdbTable.IndexBuildDescription.Builder builderForValue) {
if (descriptionBuilder_ == null) {
description_ = builderForValue.build();
} else {
descriptionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public Builder mergeDescription(tech.ydb.proto.table.YdbTable.IndexBuildDescription value) {
if (descriptionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
description_ != null &&
description_ != tech.ydb.proto.table.YdbTable.IndexBuildDescription.getDefaultInstance()) {
getDescriptionBuilder().mergeFrom(value);
} else {
description_ = value;
}
} else {
descriptionBuilder_.mergeFrom(value);
}
if (description_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000001);
description_ = null;
if (descriptionBuilder_ != null) {
descriptionBuilder_.dispose();
descriptionBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public tech.ydb.proto.table.YdbTable.IndexBuildDescription.Builder getDescriptionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDescriptionFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public tech.ydb.proto.table.YdbTable.IndexBuildDescriptionOrBuilder getDescriptionOrBuilder() {
if (descriptionBuilder_ != null) {
return descriptionBuilder_.getMessageOrBuilder();
} else {
return description_ == null ?
tech.ydb.proto.table.YdbTable.IndexBuildDescription.getDefaultInstance() : description_;
}
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.IndexBuildDescription, tech.ydb.proto.table.YdbTable.IndexBuildDescription.Builder, tech.ydb.proto.table.YdbTable.IndexBuildDescriptionOrBuilder>
getDescriptionFieldBuilder() {
if (descriptionBuilder_ == null) {
descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.IndexBuildDescription, tech.ydb.proto.table.YdbTable.IndexBuildDescription.Builder, tech.ydb.proto.table.YdbTable.IndexBuildDescriptionOrBuilder>(
getDescription(),
getParentForChildren(),
isClean());
description_ = null;
}
return descriptionBuilder_;
}
private int state_ = 0;
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @return The state.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildState.State getState() {
tech.ydb.proto.table.YdbTable.IndexBuildState.State result = tech.ydb.proto.table.YdbTable.IndexBuildState.State.forNumber(state_);
return result == null ? tech.ydb.proto.table.YdbTable.IndexBuildState.State.UNRECOGNIZED : result;
}
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(tech.ydb.proto.table.YdbTable.IndexBuildState.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000002);
state_ = 0;
onChanged();
return this;
}
private float progress_ ;
/**
* float progress = 3;
* @return The progress.
*/
@java.lang.Override
public float getProgress() {
return progress_;
}
/**
* float progress = 3;
* @param value The progress to set.
* @return This builder for chaining.
*/
public Builder setProgress(float value) {
progress_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* float progress = 3;
* @return This builder for chaining.
*/
public Builder clearProgress() {
bitField0_ = (bitField0_ & ~0x00000004);
progress_ = 0F;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.IndexBuildMetadata)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.IndexBuildMetadata)
private static final tech.ydb.proto.table.YdbTable.IndexBuildMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.IndexBuildMetadata();
}
public static tech.ydb.proto.table.YdbTable.IndexBuildMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexBuildMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.IndexBuildMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangefeedModeOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ChangefeedMode)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Table.ChangefeedMode}
*/
public static final class ChangefeedMode extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ChangefeedMode)
ChangefeedModeOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangefeedMode.newBuilder() to construct.
private ChangefeedMode(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangefeedMode() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChangefeedMode();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ChangefeedMode.class, tech.ydb.proto.table.YdbTable.ChangefeedMode.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.ChangefeedMode.Mode}
*/
public enum Mode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* MODE_UNSPECIFIED = 0;
*/
MODE_UNSPECIFIED(0),
/**
*
* Only the key component of the modified row
*
*
* MODE_KEYS_ONLY = 1;
*/
MODE_KEYS_ONLY(1),
/**
*
* Updated columns
*
*
* MODE_UPDATES = 2;
*/
MODE_UPDATES(2),
/**
*
* The entire row, as it appears after it was modified
*
*
* MODE_NEW_IMAGE = 3;
*/
MODE_NEW_IMAGE(3),
/**
*
* The entire row, as it appeared before it was modified
*
*
* MODE_OLD_IMAGE = 4;
*/
MODE_OLD_IMAGE(4),
/**
*
* Both new and old images of the row
*
*
* MODE_NEW_AND_OLD_IMAGES = 5;
*/
MODE_NEW_AND_OLD_IMAGES(5),
UNRECOGNIZED(-1),
;
/**
* MODE_UNSPECIFIED = 0;
*/
public static final int MODE_UNSPECIFIED_VALUE = 0;
/**
*
* Only the key component of the modified row
*
*
* MODE_KEYS_ONLY = 1;
*/
public static final int MODE_KEYS_ONLY_VALUE = 1;
/**
*
* Updated columns
*
*
* MODE_UPDATES = 2;
*/
public static final int MODE_UPDATES_VALUE = 2;
/**
*
* The entire row, as it appears after it was modified
*
*
* MODE_NEW_IMAGE = 3;
*/
public static final int MODE_NEW_IMAGE_VALUE = 3;
/**
*
* The entire row, as it appeared before it was modified
*
*
* MODE_OLD_IMAGE = 4;
*/
public static final int MODE_OLD_IMAGE_VALUE = 4;
/**
*
* Both new and old images of the row
*
*
* MODE_NEW_AND_OLD_IMAGES = 5;
*/
public static final int MODE_NEW_AND_OLD_IMAGES_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Mode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Mode forNumber(int value) {
switch (value) {
case 0: return MODE_UNSPECIFIED;
case 1: return MODE_KEYS_ONLY;
case 2: return MODE_UPDATES;
case 3: return MODE_NEW_IMAGE;
case 4: return MODE_OLD_IMAGE;
case 5: return MODE_NEW_AND_OLD_IMAGES;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Mode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Mode findValueByNumber(int number) {
return Mode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.ChangefeedMode.getDescriptor().getEnumTypes().get(0);
}
private static final Mode[] VALUES = values();
public static Mode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Mode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.ChangefeedMode.Mode)
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.ChangefeedMode)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.ChangefeedMode other = (tech.ydb.proto.table.YdbTable.ChangefeedMode) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode 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 tech.ydb.proto.table.YdbTable.ChangefeedMode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode 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 tech.ydb.proto.table.YdbTable.ChangefeedMode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode 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(tech.ydb.proto.table.YdbTable.ChangefeedMode 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 Ydb.Table.ChangefeedMode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ChangefeedMode)
tech.ydb.proto.table.YdbTable.ChangefeedModeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ChangefeedMode.class, tech.ydb.proto.table.YdbTable.ChangefeedMode.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.ChangefeedMode.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedMode getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.ChangefeedMode.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedMode build() {
tech.ydb.proto.table.YdbTable.ChangefeedMode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedMode buildPartial() {
tech.ydb.proto.table.YdbTable.ChangefeedMode result = new tech.ydb.proto.table.YdbTable.ChangefeedMode(this);
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 tech.ydb.proto.table.YdbTable.ChangefeedMode) {
return mergeFrom((tech.ydb.proto.table.YdbTable.ChangefeedMode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.ChangefeedMode other) {
if (other == tech.ydb.proto.table.YdbTable.ChangefeedMode.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.ChangefeedMode)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ChangefeedMode)
private static final tech.ydb.proto.table.YdbTable.ChangefeedMode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.ChangefeedMode();
}
public static tech.ydb.proto.table.YdbTable.ChangefeedMode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChangefeedMode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedMode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangefeedFormatOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ChangefeedFormat)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Table.ChangefeedFormat}
*/
public static final class ChangefeedFormat extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ChangefeedFormat)
ChangefeedFormatOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangefeedFormat.newBuilder() to construct.
private ChangefeedFormat(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangefeedFormat() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChangefeedFormat();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ChangefeedFormat.class, tech.ydb.proto.table.YdbTable.ChangefeedFormat.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.ChangefeedFormat.Format}
*/
public enum Format
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FORMAT_UNSPECIFIED = 0;
*/
FORMAT_UNSPECIFIED(0),
/**
*
* Change record in JSON format for common (row oriented) tables
*
*
* FORMAT_JSON = 1;
*/
FORMAT_JSON(1),
/**
*
* Change record in JSON format for document (DynamoDB-compatible) tables
*
*
* FORMAT_DYNAMODB_STREAMS_JSON = 2;
*/
FORMAT_DYNAMODB_STREAMS_JSON(2),
/**
*
* Debezium-like change record JSON format for common (row oriented) tables
*
*
* FORMAT_DEBEZIUM_JSON = 3;
*/
FORMAT_DEBEZIUM_JSON(3),
UNRECOGNIZED(-1),
;
/**
* FORMAT_UNSPECIFIED = 0;
*/
public static final int FORMAT_UNSPECIFIED_VALUE = 0;
/**
*
* Change record in JSON format for common (row oriented) tables
*
*
* FORMAT_JSON = 1;
*/
public static final int FORMAT_JSON_VALUE = 1;
/**
*
* Change record in JSON format for document (DynamoDB-compatible) tables
*
*
* FORMAT_DYNAMODB_STREAMS_JSON = 2;
*/
public static final int FORMAT_DYNAMODB_STREAMS_JSON_VALUE = 2;
/**
*
* Debezium-like change record JSON format for common (row oriented) tables
*
*
* FORMAT_DEBEZIUM_JSON = 3;
*/
public static final int FORMAT_DEBEZIUM_JSON_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Format valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Format forNumber(int value) {
switch (value) {
case 0: return FORMAT_UNSPECIFIED;
case 1: return FORMAT_JSON;
case 2: return FORMAT_DYNAMODB_STREAMS_JSON;
case 3: return FORMAT_DEBEZIUM_JSON;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Format> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Format findValueByNumber(int number) {
return Format.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.ChangefeedFormat.getDescriptor().getEnumTypes().get(0);
}
private static final Format[] VALUES = values();
public static Format valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Format(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.ChangefeedFormat.Format)
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.ChangefeedFormat)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.ChangefeedFormat other = (tech.ydb.proto.table.YdbTable.ChangefeedFormat) obj;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat 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 tech.ydb.proto.table.YdbTable.ChangefeedFormat parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat 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 tech.ydb.proto.table.YdbTable.ChangefeedFormat parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat 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(tech.ydb.proto.table.YdbTable.ChangefeedFormat 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 Ydb.Table.ChangefeedFormat}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ChangefeedFormat)
tech.ydb.proto.table.YdbTable.ChangefeedFormatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ChangefeedFormat.class, tech.ydb.proto.table.YdbTable.ChangefeedFormat.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.ChangefeedFormat.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedFormat getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.ChangefeedFormat.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedFormat build() {
tech.ydb.proto.table.YdbTable.ChangefeedFormat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedFormat buildPartial() {
tech.ydb.proto.table.YdbTable.ChangefeedFormat result = new tech.ydb.proto.table.YdbTable.ChangefeedFormat(this);
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 tech.ydb.proto.table.YdbTable.ChangefeedFormat) {
return mergeFrom((tech.ydb.proto.table.YdbTable.ChangefeedFormat)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.ChangefeedFormat other) {
if (other == tech.ydb.proto.table.YdbTable.ChangefeedFormat.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.ChangefeedFormat)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ChangefeedFormat)
private static final tech.ydb.proto.table.YdbTable.ChangefeedFormat DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.ChangefeedFormat();
}
public static tech.ydb.proto.table.YdbTable.ChangefeedFormat getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChangefeedFormat parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedFormat getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangefeedOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.Changefeed)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The mode.
*/
tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode getMode();
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The enum numeric value on the wire for format.
*/
int getFormatValue();
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format getFormat();
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
* @return Whether the retentionPeriod field is set.
*/
boolean hasRetentionPeriod();
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
* @return The retentionPeriod.
*/
com.google.protobuf.Duration getRetentionPeriod();
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
*/
com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder();
/**
*
* Emit virtual timestamps of changes along with data or not
*
*
* bool virtual_timestamps = 5;
* @return The virtualTimestamps.
*/
boolean getVirtualTimestamps();
/**
*
* Initial scan will output the current state of the table first
*
*
* bool initial_scan = 6;
* @return The initialScan.
*/
boolean getInitialScan();
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
int getAttributesCount();
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
boolean containsAttributes(
java.lang.String key);
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAttributes();
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
java.util.Map
getAttributesMap();
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
/* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
java.lang.String getAttributesOrThrow(
java.lang.String key);
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 8 [(.Ydb.length) = { ... }
* @return The awsRegion.
*/
java.lang.String getAwsRegion();
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 8 [(.Ydb.length) = { ... }
* @return The bytes for awsRegion.
*/
com.google.protobuf.ByteString
getAwsRegionBytes();
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
* @return Whether the resolvedTimestampsInterval field is set.
*/
boolean hasResolvedTimestampsInterval();
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
* @return The resolvedTimestampsInterval.
*/
com.google.protobuf.Duration getResolvedTimestampsInterval();
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
*/
com.google.protobuf.DurationOrBuilder getResolvedTimestampsIntervalOrBuilder();
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
* @return Whether the topicPartitioningSettings field is set.
*/
boolean hasTopicPartitioningSettings();
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
* @return The topicPartitioningSettings.
*/
tech.ydb.proto.topic.YdbTopic.PartitioningSettings getTopicPartitioningSettings();
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
*/
tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder getTopicPartitioningSettingsOrBuilder();
}
/**
* Protobuf type {@code Ydb.Table.Changefeed}
*/
public static final class Changefeed extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.Changefeed)
ChangefeedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Changefeed.newBuilder() to construct.
private Changefeed(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Changefeed() {
name_ = "";
mode_ = 0;
format_ = 0;
awsRegion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Changefeed();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_Changefeed_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_Changefeed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.Changefeed.class, tech.ydb.proto.table.YdbTable.Changefeed.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODE_FIELD_NUMBER = 2;
private int mode_ = 0;
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The mode.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode getMode() {
tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode result = tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.forNumber(mode_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.UNRECOGNIZED : result;
}
public static final int FORMAT_FIELD_NUMBER = 3;
private int format_ = 0;
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override public int getFormatValue() {
return format_;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format getFormat() {
tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format result = tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.forNumber(format_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.UNRECOGNIZED : result;
}
public static final int RETENTION_PERIOD_FIELD_NUMBER = 4;
private com.google.protobuf.Duration retentionPeriod_;
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
* @return Whether the retentionPeriod field is set.
*/
@java.lang.Override
public boolean hasRetentionPeriod() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
* @return The retentionPeriod.
*/
@java.lang.Override
public com.google.protobuf.Duration getRetentionPeriod() {
return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_;
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() {
return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_;
}
public static final int VIRTUAL_TIMESTAMPS_FIELD_NUMBER = 5;
private boolean virtualTimestamps_ = false;
/**
*
* Emit virtual timestamps of changes along with data or not
*
*
* bool virtual_timestamps = 5;
* @return The virtualTimestamps.
*/
@java.lang.Override
public boolean getVirtualTimestamps() {
return virtualTimestamps_;
}
public static final int INITIAL_SCAN_FIELD_NUMBER = 6;
private boolean initialScan_ = false;
/**
*
* Initial scan will output the current state of the table first
*
*
* bool initial_scan = 6;
* @return The initialScan.
*/
@java.lang.Override
public boolean getInitialScan() {
return initialScan_;
}
public static final int ATTRIBUTES_FIELD_NUMBER = 7;
private static final class AttributesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_Changefeed_AttributesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> attributes_;
private com.google.protobuf.MapField
internalGetAttributes() {
if (attributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
return attributes_;
}
public int getAttributesCount() {
return internalGetAttributes().getMap().size();
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return internalGetAttributes().getMap();
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
@java.lang.Override
public /* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int AWS_REGION_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object awsRegion_ = "";
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 8 [(.Ydb.length) = { ... }
* @return The awsRegion.
*/
@java.lang.Override
public java.lang.String getAwsRegion() {
java.lang.Object ref = awsRegion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
awsRegion_ = s;
return s;
}
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 8 [(.Ydb.length) = { ... }
* @return The bytes for awsRegion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAwsRegionBytes() {
java.lang.Object ref = awsRegion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
awsRegion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOLVED_TIMESTAMPS_INTERVAL_FIELD_NUMBER = 9;
private com.google.protobuf.Duration resolvedTimestampsInterval_;
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
* @return Whether the resolvedTimestampsInterval field is set.
*/
@java.lang.Override
public boolean hasResolvedTimestampsInterval() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
* @return The resolvedTimestampsInterval.
*/
@java.lang.Override
public com.google.protobuf.Duration getResolvedTimestampsInterval() {
return resolvedTimestampsInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resolvedTimestampsInterval_;
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getResolvedTimestampsIntervalOrBuilder() {
return resolvedTimestampsInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resolvedTimestampsInterval_;
}
public static final int TOPIC_PARTITIONING_SETTINGS_FIELD_NUMBER = 10;
private tech.ydb.proto.topic.YdbTopic.PartitioningSettings topicPartitioningSettings_;
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
* @return Whether the topicPartitioningSettings field is set.
*/
@java.lang.Override
public boolean hasTopicPartitioningSettings() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
* @return The topicPartitioningSettings.
*/
@java.lang.Override
public tech.ydb.proto.topic.YdbTopic.PartitioningSettings getTopicPartitioningSettings() {
return topicPartitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : topicPartitioningSettings_;
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
*/
@java.lang.Override
public tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder getTopicPartitioningSettingsOrBuilder() {
return topicPartitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : topicPartitioningSettings_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (mode_ != tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, mode_);
}
if (format_ != tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
output.writeEnum(3, format_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getRetentionPeriod());
}
if (virtualTimestamps_ != false) {
output.writeBool(5, virtualTimestamps_);
}
if (initialScan_ != false) {
output.writeBool(6, initialScan_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAttributes(),
AttributesDefaultEntryHolder.defaultEntry,
7);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRegion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, awsRegion_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(9, getResolvedTimestampsInterval());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(10, getTopicPartitioningSettings());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (mode_ != tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, mode_);
}
if (format_ != tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, format_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getRetentionPeriod());
}
if (virtualTimestamps_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, virtualTimestamps_);
}
if (initialScan_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, initialScan_);
}
for (java.util.Map.Entry entry
: internalGetAttributes().getMap().entrySet()) {
com.google.protobuf.MapEntry
attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, attributes__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRegion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, awsRegion_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getResolvedTimestampsInterval());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getTopicPartitioningSettings());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.Changefeed)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.Changefeed other = (tech.ydb.proto.table.YdbTable.Changefeed) obj;
if (!getName()
.equals(other.getName())) return false;
if (mode_ != other.mode_) return false;
if (format_ != other.format_) return false;
if (hasRetentionPeriod() != other.hasRetentionPeriod()) return false;
if (hasRetentionPeriod()) {
if (!getRetentionPeriod()
.equals(other.getRetentionPeriod())) return false;
}
if (getVirtualTimestamps()
!= other.getVirtualTimestamps()) return false;
if (getInitialScan()
!= other.getInitialScan()) return false;
if (!internalGetAttributes().equals(
other.internalGetAttributes())) return false;
if (!getAwsRegion()
.equals(other.getAwsRegion())) return false;
if (hasResolvedTimestampsInterval() != other.hasResolvedTimestampsInterval()) return false;
if (hasResolvedTimestampsInterval()) {
if (!getResolvedTimestampsInterval()
.equals(other.getResolvedTimestampsInterval())) return false;
}
if (hasTopicPartitioningSettings() != other.hasTopicPartitioningSettings()) return false;
if (hasTopicPartitioningSettings()) {
if (!getTopicPartitioningSettings()
.equals(other.getTopicPartitioningSettings())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (37 * hash) + FORMAT_FIELD_NUMBER;
hash = (53 * hash) + format_;
if (hasRetentionPeriod()) {
hash = (37 * hash) + RETENTION_PERIOD_FIELD_NUMBER;
hash = (53 * hash) + getRetentionPeriod().hashCode();
}
hash = (37 * hash) + VIRTUAL_TIMESTAMPS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getVirtualTimestamps());
hash = (37 * hash) + INITIAL_SCAN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getInitialScan());
if (!internalGetAttributes().getMap().isEmpty()) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + internalGetAttributes().hashCode();
}
hash = (37 * hash) + AWS_REGION_FIELD_NUMBER;
hash = (53 * hash) + getAwsRegion().hashCode();
if (hasResolvedTimestampsInterval()) {
hash = (37 * hash) + RESOLVED_TIMESTAMPS_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getResolvedTimestampsInterval().hashCode();
}
if (hasTopicPartitioningSettings()) {
hash = (37 * hash) + TOPIC_PARTITIONING_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getTopicPartitioningSettings().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.Changefeed parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.Changefeed parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.Changefeed parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.Changefeed parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.Changefeed parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.Changefeed parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.Changefeed parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.Changefeed 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 tech.ydb.proto.table.YdbTable.Changefeed parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.Changefeed 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 tech.ydb.proto.table.YdbTable.Changefeed parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.Changefeed 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(tech.ydb.proto.table.YdbTable.Changefeed 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 Ydb.Table.Changefeed}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.Changefeed)
tech.ydb.proto.table.YdbTable.ChangefeedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_Changefeed_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 7:
return internalGetMutableAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_Changefeed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.Changefeed.class, tech.ydb.proto.table.YdbTable.Changefeed.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.Changefeed.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRetentionPeriodFieldBuilder();
getResolvedTimestampsIntervalFieldBuilder();
getTopicPartitioningSettingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
mode_ = 0;
format_ = 0;
retentionPeriod_ = null;
if (retentionPeriodBuilder_ != null) {
retentionPeriodBuilder_.dispose();
retentionPeriodBuilder_ = null;
}
virtualTimestamps_ = false;
initialScan_ = false;
internalGetMutableAttributes().clear();
awsRegion_ = "";
resolvedTimestampsInterval_ = null;
if (resolvedTimestampsIntervalBuilder_ != null) {
resolvedTimestampsIntervalBuilder_.dispose();
resolvedTimestampsIntervalBuilder_ = null;
}
topicPartitioningSettings_ = null;
if (topicPartitioningSettingsBuilder_ != null) {
topicPartitioningSettingsBuilder_.dispose();
topicPartitioningSettingsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_Changefeed_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.Changefeed getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.Changefeed.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.Changefeed build() {
tech.ydb.proto.table.YdbTable.Changefeed result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.Changefeed buildPartial() {
tech.ydb.proto.table.YdbTable.Changefeed result = new tech.ydb.proto.table.YdbTable.Changefeed(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.Changefeed result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.mode_ = mode_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.format_ = format_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.retentionPeriod_ = retentionPeriodBuilder_ == null
? retentionPeriod_
: retentionPeriodBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.virtualTimestamps_ = virtualTimestamps_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.initialScan_ = initialScan_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.attributes_ = internalGetAttributes();
result.attributes_.makeImmutable();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.awsRegion_ = awsRegion_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.resolvedTimestampsInterval_ = resolvedTimestampsIntervalBuilder_ == null
? resolvedTimestampsInterval_
: resolvedTimestampsIntervalBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.topicPartitioningSettings_ = topicPartitioningSettingsBuilder_ == null
? topicPartitioningSettings_
: topicPartitioningSettingsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.Changefeed) {
return mergeFrom((tech.ydb.proto.table.YdbTable.Changefeed)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.Changefeed other) {
if (other == tech.ydb.proto.table.YdbTable.Changefeed.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (other.format_ != 0) {
setFormatValue(other.getFormatValue());
}
if (other.hasRetentionPeriod()) {
mergeRetentionPeriod(other.getRetentionPeriod());
}
if (other.getVirtualTimestamps() != false) {
setVirtualTimestamps(other.getVirtualTimestamps());
}
if (other.getInitialScan() != false) {
setInitialScan(other.getInitialScan());
}
internalGetMutableAttributes().mergeFrom(
other.internalGetAttributes());
bitField0_ |= 0x00000040;
if (!other.getAwsRegion().isEmpty()) {
awsRegion_ = other.awsRegion_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasResolvedTimestampsInterval()) {
mergeResolvedTimestampsInterval(other.getResolvedTimestampsInterval());
}
if (other.hasTopicPartitioningSettings()) {
mergeTopicPartitioningSettings(other.getTopicPartitioningSettings());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
mode_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
format_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getRetentionPeriodFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
virtualTimestamps_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
initialScan_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
com.google.protobuf.MapEntry
attributes__ = input.readMessage(
AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableAttributes().getMutableMap().put(
attributes__.getKey(), attributes__.getValue());
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
awsRegion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
input.readMessage(
getResolvedTimestampsIntervalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
input.readMessage(
getTopicPartitioningSettingsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int mode_ = 0;
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @param value The enum numeric value on the wire for mode to set.
* @return This builder for chaining.
*/
public Builder setModeValue(int value) {
mode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The mode.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode getMode() {
tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode result = tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.forNumber(mode_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.UNRECOGNIZED : result;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return This builder for chaining.
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000002);
mode_ = 0;
onChanged();
return this;
}
private int format_ = 0;
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override public int getFormatValue() {
return format_;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @param value The enum numeric value on the wire for format to set.
* @return This builder for chaining.
*/
public Builder setFormatValue(int value) {
format_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format getFormat() {
tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format result = tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.forNumber(format_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.UNRECOGNIZED : result;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @param value The format to set.
* @return This builder for chaining.
*/
public Builder setFormat(tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
format_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return This builder for chaining.
*/
public Builder clearFormat() {
bitField0_ = (bitField0_ & ~0x00000004);
format_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Duration retentionPeriod_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionPeriodBuilder_;
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
* @return Whether the retentionPeriod field is set.
*/
public boolean hasRetentionPeriod() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
* @return The retentionPeriod.
*/
public com.google.protobuf.Duration getRetentionPeriod() {
if (retentionPeriodBuilder_ == null) {
return retentionPeriod_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_;
} else {
return retentionPeriodBuilder_.getMessage();
}
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
*/
public Builder setRetentionPeriod(com.google.protobuf.Duration value) {
if (retentionPeriodBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
retentionPeriod_ = value;
} else {
retentionPeriodBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
*/
public Builder setRetentionPeriod(
com.google.protobuf.Duration.Builder builderForValue) {
if (retentionPeriodBuilder_ == null) {
retentionPeriod_ = builderForValue.build();
} else {
retentionPeriodBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
*/
public Builder mergeRetentionPeriod(com.google.protobuf.Duration value) {
if (retentionPeriodBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
retentionPeriod_ != null &&
retentionPeriod_ != com.google.protobuf.Duration.getDefaultInstance()) {
getRetentionPeriodBuilder().mergeFrom(value);
} else {
retentionPeriod_ = value;
}
} else {
retentionPeriodBuilder_.mergeFrom(value);
}
if (retentionPeriod_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
*/
public Builder clearRetentionPeriod() {
bitField0_ = (bitField0_ & ~0x00000008);
retentionPeriod_ = null;
if (retentionPeriodBuilder_ != null) {
retentionPeriodBuilder_.dispose();
retentionPeriodBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
*/
public com.google.protobuf.Duration.Builder getRetentionPeriodBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getRetentionPeriodFieldBuilder().getBuilder();
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
*/
public com.google.protobuf.DurationOrBuilder getRetentionPeriodOrBuilder() {
if (retentionPeriodBuilder_ != null) {
return retentionPeriodBuilder_.getMessageOrBuilder();
} else {
return retentionPeriod_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : retentionPeriod_;
}
}
/**
*
* How long data in changefeed's underlying topic should be stored
*
*
* .google.protobuf.Duration retention_period = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getRetentionPeriodFieldBuilder() {
if (retentionPeriodBuilder_ == null) {
retentionPeriodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getRetentionPeriod(),
getParentForChildren(),
isClean());
retentionPeriod_ = null;
}
return retentionPeriodBuilder_;
}
private boolean virtualTimestamps_ ;
/**
*
* Emit virtual timestamps of changes along with data or not
*
*
* bool virtual_timestamps = 5;
* @return The virtualTimestamps.
*/
@java.lang.Override
public boolean getVirtualTimestamps() {
return virtualTimestamps_;
}
/**
*
* Emit virtual timestamps of changes along with data or not
*
*
* bool virtual_timestamps = 5;
* @param value The virtualTimestamps to set.
* @return This builder for chaining.
*/
public Builder setVirtualTimestamps(boolean value) {
virtualTimestamps_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Emit virtual timestamps of changes along with data or not
*
*
* bool virtual_timestamps = 5;
* @return This builder for chaining.
*/
public Builder clearVirtualTimestamps() {
bitField0_ = (bitField0_ & ~0x00000010);
virtualTimestamps_ = false;
onChanged();
return this;
}
private boolean initialScan_ ;
/**
*
* Initial scan will output the current state of the table first
*
*
* bool initial_scan = 6;
* @return The initialScan.
*/
@java.lang.Override
public boolean getInitialScan() {
return initialScan_;
}
/**
*
* Initial scan will output the current state of the table first
*
*
* bool initial_scan = 6;
* @param value The initialScan to set.
* @return This builder for chaining.
*/
public Builder setInitialScan(boolean value) {
initialScan_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Initial scan will output the current state of the table first
*
*
* bool initial_scan = 6;
* @return This builder for chaining.
*/
public Builder clearInitialScan() {
bitField0_ = (bitField0_ & ~0x00000020);
initialScan_ = false;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> attributes_;
private com.google.protobuf.MapField
internalGetAttributes() {
if (attributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
return attributes_;
}
private com.google.protobuf.MapField
internalGetMutableAttributes() {
if (attributes_ == null) {
attributes_ = com.google.protobuf.MapField.newMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
if (!attributes_.isMutable()) {
attributes_ = attributes_.copy();
}
bitField0_ |= 0x00000040;
onChanged();
return attributes_;
}
public int getAttributesCount() {
return internalGetAttributes().getMap().size();
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return internalGetAttributes().getMap();
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
@java.lang.Override
public /* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAttributes() {
bitField0_ = (bitField0_ & ~0x00000040);
internalGetMutableAttributes().getMutableMap()
.clear();
return this;
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
public Builder removeAttributes(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableAttributes().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAttributes() {
bitField0_ |= 0x00000040;
return internalGetMutableAttributes().getMutableMap();
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
public Builder putAttributes(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableAttributes().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000040;
return this;
}
/**
*
* Attributes. Total size is limited to 10 KB.
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
public Builder putAllAttributes(
java.util.Map values) {
internalGetMutableAttributes().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000040;
return this;
}
private java.lang.Object awsRegion_ = "";
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 8 [(.Ydb.length) = { ... }
* @return The awsRegion.
*/
public java.lang.String getAwsRegion() {
java.lang.Object ref = awsRegion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
awsRegion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 8 [(.Ydb.length) = { ... }
* @return The bytes for awsRegion.
*/
public com.google.protobuf.ByteString
getAwsRegionBytes() {
java.lang.Object ref = awsRegion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
awsRegion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 8 [(.Ydb.length) = { ... }
* @param value The awsRegion to set.
* @return This builder for chaining.
*/
public Builder setAwsRegion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
awsRegion_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 8 [(.Ydb.length) = { ... }
* @return This builder for chaining.
*/
public Builder clearAwsRegion() {
awsRegion_ = getDefaultInstance().getAwsRegion();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 8 [(.Ydb.length) = { ... }
* @param value The bytes for awsRegion to set.
* @return This builder for chaining.
*/
public Builder setAwsRegionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
awsRegion_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private com.google.protobuf.Duration resolvedTimestampsInterval_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resolvedTimestampsIntervalBuilder_;
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
* @return Whether the resolvedTimestampsInterval field is set.
*/
public boolean hasResolvedTimestampsInterval() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
* @return The resolvedTimestampsInterval.
*/
public com.google.protobuf.Duration getResolvedTimestampsInterval() {
if (resolvedTimestampsIntervalBuilder_ == null) {
return resolvedTimestampsInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resolvedTimestampsInterval_;
} else {
return resolvedTimestampsIntervalBuilder_.getMessage();
}
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
*/
public Builder setResolvedTimestampsInterval(com.google.protobuf.Duration value) {
if (resolvedTimestampsIntervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resolvedTimestampsInterval_ = value;
} else {
resolvedTimestampsIntervalBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
*/
public Builder setResolvedTimestampsInterval(
com.google.protobuf.Duration.Builder builderForValue) {
if (resolvedTimestampsIntervalBuilder_ == null) {
resolvedTimestampsInterval_ = builderForValue.build();
} else {
resolvedTimestampsIntervalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
*/
public Builder mergeResolvedTimestampsInterval(com.google.protobuf.Duration value) {
if (resolvedTimestampsIntervalBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
resolvedTimestampsInterval_ != null &&
resolvedTimestampsInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
getResolvedTimestampsIntervalBuilder().mergeFrom(value);
} else {
resolvedTimestampsInterval_ = value;
}
} else {
resolvedTimestampsIntervalBuilder_.mergeFrom(value);
}
if (resolvedTimestampsInterval_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
*/
public Builder clearResolvedTimestampsInterval() {
bitField0_ = (bitField0_ & ~0x00000100);
resolvedTimestampsInterval_ = null;
if (resolvedTimestampsIntervalBuilder_ != null) {
resolvedTimestampsIntervalBuilder_.dispose();
resolvedTimestampsIntervalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
*/
public com.google.protobuf.Duration.Builder getResolvedTimestampsIntervalBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getResolvedTimestampsIntervalFieldBuilder().getBuilder();
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
*/
public com.google.protobuf.DurationOrBuilder getResolvedTimestampsIntervalOrBuilder() {
if (resolvedTimestampsIntervalBuilder_ != null) {
return resolvedTimestampsIntervalBuilder_.getMessageOrBuilder();
} else {
return resolvedTimestampsInterval_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : resolvedTimestampsInterval_;
}
}
/**
*
* Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getResolvedTimestampsIntervalFieldBuilder() {
if (resolvedTimestampsIntervalBuilder_ == null) {
resolvedTimestampsIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getResolvedTimestampsInterval(),
getParentForChildren(),
isClean());
resolvedTimestampsInterval_ = null;
}
return resolvedTimestampsIntervalBuilder_;
}
private tech.ydb.proto.topic.YdbTopic.PartitioningSettings topicPartitioningSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.topic.YdbTopic.PartitioningSettings, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder> topicPartitioningSettingsBuilder_;
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
* @return Whether the topicPartitioningSettings field is set.
*/
public boolean hasTopicPartitioningSettings() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
* @return The topicPartitioningSettings.
*/
public tech.ydb.proto.topic.YdbTopic.PartitioningSettings getTopicPartitioningSettings() {
if (topicPartitioningSettingsBuilder_ == null) {
return topicPartitioningSettings_ == null ? tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : topicPartitioningSettings_;
} else {
return topicPartitioningSettingsBuilder_.getMessage();
}
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
*/
public Builder setTopicPartitioningSettings(tech.ydb.proto.topic.YdbTopic.PartitioningSettings value) {
if (topicPartitioningSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
topicPartitioningSettings_ = value;
} else {
topicPartitioningSettingsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
*/
public Builder setTopicPartitioningSettings(
tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder builderForValue) {
if (topicPartitioningSettingsBuilder_ == null) {
topicPartitioningSettings_ = builderForValue.build();
} else {
topicPartitioningSettingsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
*/
public Builder mergeTopicPartitioningSettings(tech.ydb.proto.topic.YdbTopic.PartitioningSettings value) {
if (topicPartitioningSettingsBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
topicPartitioningSettings_ != null &&
topicPartitioningSettings_ != tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance()) {
getTopicPartitioningSettingsBuilder().mergeFrom(value);
} else {
topicPartitioningSettings_ = value;
}
} else {
topicPartitioningSettingsBuilder_.mergeFrom(value);
}
if (topicPartitioningSettings_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
*/
public Builder clearTopicPartitioningSettings() {
bitField0_ = (bitField0_ & ~0x00000200);
topicPartitioningSettings_ = null;
if (topicPartitioningSettingsBuilder_ != null) {
topicPartitioningSettingsBuilder_.dispose();
topicPartitioningSettingsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
*/
public tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder getTopicPartitioningSettingsBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getTopicPartitioningSettingsFieldBuilder().getBuilder();
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
*/
public tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder getTopicPartitioningSettingsOrBuilder() {
if (topicPartitioningSettingsBuilder_ != null) {
return topicPartitioningSettingsBuilder_.getMessageOrBuilder();
} else {
return topicPartitioningSettings_ == null ?
tech.ydb.proto.topic.YdbTopic.PartitioningSettings.getDefaultInstance() : topicPartitioningSettings_;
}
}
/**
*
* Partitioning settings of underlying topic.
*
*
* .Ydb.Topic.PartitioningSettings topic_partitioning_settings = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.topic.YdbTopic.PartitioningSettings, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder>
getTopicPartitioningSettingsFieldBuilder() {
if (topicPartitioningSettingsBuilder_ == null) {
topicPartitioningSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.topic.YdbTopic.PartitioningSettings, tech.ydb.proto.topic.YdbTopic.PartitioningSettings.Builder, tech.ydb.proto.topic.YdbTopic.PartitioningSettingsOrBuilder>(
getTopicPartitioningSettings(),
getParentForChildren(),
isClean());
topicPartitioningSettings_ = null;
}
return topicPartitioningSettingsBuilder_;
}
@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:Ydb.Table.Changefeed)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.Changefeed)
private static final tech.ydb.proto.table.YdbTable.Changefeed DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.Changefeed();
}
public static tech.ydb.proto.table.YdbTable.Changefeed getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Changefeed parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.Changefeed getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangefeedDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ChangefeedDescription)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The mode.
*/
tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode getMode();
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The enum numeric value on the wire for format.
*/
int getFormatValue();
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format getFormat();
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return The state.
*/
tech.ydb.proto.table.YdbTable.ChangefeedDescription.State getState();
/**
*
* State of emitting of virtual timestamps along with data
*
*
* bool virtual_timestamps = 5;
* @return The virtualTimestamps.
*/
boolean getVirtualTimestamps();
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
int getAttributesCount();
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
boolean containsAttributes(
java.lang.String key);
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAttributes();
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
java.util.Map
getAttributesMap();
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
/* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
java.lang.String getAttributesOrThrow(
java.lang.String key);
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 7;
* @return The awsRegion.
*/
java.lang.String getAwsRegion();
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 7;
* @return The bytes for awsRegion.
*/
com.google.protobuf.ByteString
getAwsRegionBytes();
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
* @return Whether the resolvedTimestampsInterval field is set.
*/
boolean hasResolvedTimestampsInterval();
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
* @return The resolvedTimestampsInterval.
*/
com.google.protobuf.Duration getResolvedTimestampsInterval();
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
*/
com.google.protobuf.DurationOrBuilder getResolvedTimestampsIntervalOrBuilder();
}
/**
* Protobuf type {@code Ydb.Table.ChangefeedDescription}
*/
public static final class ChangefeedDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ChangefeedDescription)
ChangefeedDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangefeedDescription.newBuilder() to construct.
private ChangefeedDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangefeedDescription() {
name_ = "";
mode_ = 0;
format_ = 0;
state_ = 0;
awsRegion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChangefeedDescription();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ChangefeedDescription.class, tech.ydb.proto.table.YdbTable.ChangefeedDescription.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.ChangefeedDescription.State}
*/
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
* Normal state, from this state changefeed can be disabled
*
*
* STATE_ENABLED = 1;
*/
STATE_ENABLED(1),
/**
*
* No new change records are generated, but the old ones remain available
* From this state changefeed cannot be switched to any other state
*
*
* STATE_DISABLED = 2;
*/
STATE_DISABLED(2),
/**
*
* An initial scan is being performed.
* After its completion changefeed will switch to the normal state
*
*
* STATE_INITIAL_SCAN = 3;
*/
STATE_INITIAL_SCAN(3),
UNRECOGNIZED(-1),
;
/**
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
* Normal state, from this state changefeed can be disabled
*
*
* STATE_ENABLED = 1;
*/
public static final int STATE_ENABLED_VALUE = 1;
/**
*
* No new change records are generated, but the old ones remain available
* From this state changefeed cannot be switched to any other state
*
*
* STATE_DISABLED = 2;
*/
public static final int STATE_DISABLED_VALUE = 2;
/**
*
* An initial scan is being performed.
* After its completion changefeed will switch to the normal state
*
*
* STATE_INITIAL_SCAN = 3;
*/
public static final int STATE_INITIAL_SCAN_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0: return STATE_UNSPECIFIED;
case 1: return STATE_ENABLED;
case 2: return STATE_DISABLED;
case 3: return STATE_INITIAL_SCAN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
State> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.ChangefeedDescription.getDescriptor().getEnumTypes().get(0);
}
private static final State[] VALUES = values();
public static State valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.ChangefeedDescription.State)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODE_FIELD_NUMBER = 2;
private int mode_ = 0;
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The mode.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode getMode() {
tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode result = tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.forNumber(mode_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.UNRECOGNIZED : result;
}
public static final int FORMAT_FIELD_NUMBER = 3;
private int format_ = 0;
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override public int getFormatValue() {
return format_;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format getFormat() {
tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format result = tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.forNumber(format_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.UNRECOGNIZED : result;
}
public static final int STATE_FIELD_NUMBER = 4;
private int state_ = 0;
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return The state.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.ChangefeedDescription.State getState() {
tech.ydb.proto.table.YdbTable.ChangefeedDescription.State result = tech.ydb.proto.table.YdbTable.ChangefeedDescription.State.forNumber(state_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedDescription.State.UNRECOGNIZED : result;
}
public static final int VIRTUAL_TIMESTAMPS_FIELD_NUMBER = 5;
private boolean virtualTimestamps_ = false;
/**
*
* State of emitting of virtual timestamps along with data
*
*
* bool virtual_timestamps = 5;
* @return The virtualTimestamps.
*/
@java.lang.Override
public boolean getVirtualTimestamps() {
return virtualTimestamps_;
}
public static final int ATTRIBUTES_FIELD_NUMBER = 6;
private static final class AttributesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_AttributesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> attributes_;
private com.google.protobuf.MapField
internalGetAttributes() {
if (attributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
return attributes_;
}
public int getAttributesCount() {
return internalGetAttributes().getMap().size();
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return internalGetAttributes().getMap();
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
@java.lang.Override
public /* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int AWS_REGION_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object awsRegion_ = "";
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 7;
* @return The awsRegion.
*/
@java.lang.Override
public java.lang.String getAwsRegion() {
java.lang.Object ref = awsRegion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
awsRegion_ = s;
return s;
}
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 7;
* @return The bytes for awsRegion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAwsRegionBytes() {
java.lang.Object ref = awsRegion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
awsRegion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESOLVED_TIMESTAMPS_INTERVAL_FIELD_NUMBER = 8;
private com.google.protobuf.Duration resolvedTimestampsInterval_;
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
* @return Whether the resolvedTimestampsInterval field is set.
*/
@java.lang.Override
public boolean hasResolvedTimestampsInterval() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
* @return The resolvedTimestampsInterval.
*/
@java.lang.Override
public com.google.protobuf.Duration getResolvedTimestampsInterval() {
return resolvedTimestampsInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resolvedTimestampsInterval_;
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getResolvedTimestampsIntervalOrBuilder() {
return resolvedTimestampsInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resolvedTimestampsInterval_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (mode_ != tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, mode_);
}
if (format_ != tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
output.writeEnum(3, format_);
}
if (state_ != tech.ydb.proto.table.YdbTable.ChangefeedDescription.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, state_);
}
if (virtualTimestamps_ != false) {
output.writeBool(5, virtualTimestamps_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAttributes(),
AttributesDefaultEntryHolder.defaultEntry,
6);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRegion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, awsRegion_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(8, getResolvedTimestampsInterval());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (mode_ != tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, mode_);
}
if (format_ != tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, format_);
}
if (state_ != tech.ydb.proto.table.YdbTable.ChangefeedDescription.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, state_);
}
if (virtualTimestamps_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, virtualTimestamps_);
}
for (java.util.Map.Entry entry
: internalGetAttributes().getMap().entrySet()) {
com.google.protobuf.MapEntry
attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, attributes__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRegion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, awsRegion_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getResolvedTimestampsInterval());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.ChangefeedDescription)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.ChangefeedDescription other = (tech.ydb.proto.table.YdbTable.ChangefeedDescription) obj;
if (!getName()
.equals(other.getName())) return false;
if (mode_ != other.mode_) return false;
if (format_ != other.format_) return false;
if (state_ != other.state_) return false;
if (getVirtualTimestamps()
!= other.getVirtualTimestamps()) return false;
if (!internalGetAttributes().equals(
other.internalGetAttributes())) return false;
if (!getAwsRegion()
.equals(other.getAwsRegion())) return false;
if (hasResolvedTimestampsInterval() != other.hasResolvedTimestampsInterval()) return false;
if (hasResolvedTimestampsInterval()) {
if (!getResolvedTimestampsInterval()
.equals(other.getResolvedTimestampsInterval())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (37 * hash) + FORMAT_FIELD_NUMBER;
hash = (53 * hash) + format_;
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + VIRTUAL_TIMESTAMPS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getVirtualTimestamps());
if (!internalGetAttributes().getMap().isEmpty()) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + internalGetAttributes().hashCode();
}
hash = (37 * hash) + AWS_REGION_FIELD_NUMBER;
hash = (53 * hash) + getAwsRegion().hashCode();
if (hasResolvedTimestampsInterval()) {
hash = (37 * hash) + RESOLVED_TIMESTAMPS_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getResolvedTimestampsInterval().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription 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 tech.ydb.proto.table.YdbTable.ChangefeedDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription 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 tech.ydb.proto.table.YdbTable.ChangefeedDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription 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(tech.ydb.proto.table.YdbTable.ChangefeedDescription 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 Ydb.Table.ChangefeedDescription}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ChangefeedDescription)
tech.ydb.proto.table.YdbTable.ChangefeedDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ChangefeedDescription.class, tech.ydb.proto.table.YdbTable.ChangefeedDescription.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.ChangefeedDescription.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResolvedTimestampsIntervalFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
mode_ = 0;
format_ = 0;
state_ = 0;
virtualTimestamps_ = false;
internalGetMutableAttributes().clear();
awsRegion_ = "";
resolvedTimestampsInterval_ = null;
if (resolvedTimestampsIntervalBuilder_ != null) {
resolvedTimestampsIntervalBuilder_.dispose();
resolvedTimestampsIntervalBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedDescription getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.ChangefeedDescription.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedDescription build() {
tech.ydb.proto.table.YdbTable.ChangefeedDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedDescription buildPartial() {
tech.ydb.proto.table.YdbTable.ChangefeedDescription result = new tech.ydb.proto.table.YdbTable.ChangefeedDescription(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.ChangefeedDescription result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.mode_ = mode_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.format_ = format_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.virtualTimestamps_ = virtualTimestamps_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.attributes_ = internalGetAttributes();
result.attributes_.makeImmutable();
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.awsRegion_ = awsRegion_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.resolvedTimestampsInterval_ = resolvedTimestampsIntervalBuilder_ == null
? resolvedTimestampsInterval_
: resolvedTimestampsIntervalBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.ChangefeedDescription) {
return mergeFrom((tech.ydb.proto.table.YdbTable.ChangefeedDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.ChangefeedDescription other) {
if (other == tech.ydb.proto.table.YdbTable.ChangefeedDescription.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (other.format_ != 0) {
setFormatValue(other.getFormatValue());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.getVirtualTimestamps() != false) {
setVirtualTimestamps(other.getVirtualTimestamps());
}
internalGetMutableAttributes().mergeFrom(
other.internalGetAttributes());
bitField0_ |= 0x00000020;
if (!other.getAwsRegion().isEmpty()) {
awsRegion_ = other.awsRegion_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasResolvedTimestampsInterval()) {
mergeResolvedTimestampsInterval(other.getResolvedTimestampsInterval());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
mode_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
format_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
state_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
virtualTimestamps_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
com.google.protobuf.MapEntry
attributes__ = input.readMessage(
AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableAttributes().getMutableMap().put(
attributes__.getKey(), attributes__.getValue());
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
awsRegion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 66: {
input.readMessage(
getResolvedTimestampsIntervalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int mode_ = 0;
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @param value The enum numeric value on the wire for mode to set.
* @return This builder for chaining.
*/
public Builder setModeValue(int value) {
mode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The mode.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode getMode() {
tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode result = tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.forNumber(mode_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode.UNRECOGNIZED : result;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(tech.ydb.proto.table.YdbTable.ChangefeedMode.Mode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return This builder for chaining.
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000002);
mode_ = 0;
onChanged();
return this;
}
private int format_ = 0;
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The enum numeric value on the wire for format.
*/
@java.lang.Override public int getFormatValue() {
return format_;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @param value The enum numeric value on the wire for format to set.
* @return This builder for chaining.
*/
public Builder setFormatValue(int value) {
format_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format getFormat() {
tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format result = tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.forNumber(format_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format.UNRECOGNIZED : result;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @param value The format to set.
* @return This builder for chaining.
*/
public Builder setFormat(tech.ydb.proto.table.YdbTable.ChangefeedFormat.Format value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
format_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return This builder for chaining.
*/
public Builder clearFormat() {
bitField0_ = (bitField0_ & ~0x00000004);
format_ = 0;
onChanged();
return this;
}
private int state_ = 0;
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return The state.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedDescription.State getState() {
tech.ydb.proto.table.YdbTable.ChangefeedDescription.State result = tech.ydb.proto.table.YdbTable.ChangefeedDescription.State.forNumber(state_);
return result == null ? tech.ydb.proto.table.YdbTable.ChangefeedDescription.State.UNRECOGNIZED : result;
}
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(tech.ydb.proto.table.YdbTable.ChangefeedDescription.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000008);
state_ = 0;
onChanged();
return this;
}
private boolean virtualTimestamps_ ;
/**
*
* State of emitting of virtual timestamps along with data
*
*
* bool virtual_timestamps = 5;
* @return The virtualTimestamps.
*/
@java.lang.Override
public boolean getVirtualTimestamps() {
return virtualTimestamps_;
}
/**
*
* State of emitting of virtual timestamps along with data
*
*
* bool virtual_timestamps = 5;
* @param value The virtualTimestamps to set.
* @return This builder for chaining.
*/
public Builder setVirtualTimestamps(boolean value) {
virtualTimestamps_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* State of emitting of virtual timestamps along with data
*
*
* bool virtual_timestamps = 5;
* @return This builder for chaining.
*/
public Builder clearVirtualTimestamps() {
bitField0_ = (bitField0_ & ~0x00000010);
virtualTimestamps_ = false;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> attributes_;
private com.google.protobuf.MapField
internalGetAttributes() {
if (attributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
return attributes_;
}
private com.google.protobuf.MapField
internalGetMutableAttributes() {
if (attributes_ == null) {
attributes_ = com.google.protobuf.MapField.newMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
if (!attributes_.isMutable()) {
attributes_ = attributes_.copy();
}
bitField0_ |= 0x00000020;
onChanged();
return attributes_;
}
public int getAttributesCount() {
return internalGetAttributes().getMap().size();
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return internalGetAttributes().getMap();
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
@java.lang.Override
public /* nullable */
java.lang.String getAttributesOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAttributes() {
bitField0_ = (bitField0_ & ~0x00000020);
internalGetMutableAttributes().getMutableMap()
.clear();
return this;
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
public Builder removeAttributes(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableAttributes().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAttributes() {
bitField0_ |= 0x00000020;
return internalGetMutableAttributes().getMutableMap();
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
public Builder putAttributes(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableAttributes().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000020;
return this;
}
/**
*
* Attributes
*
*
* map<string, string> attributes = 6;
*/
public Builder putAllAttributes(
java.util.Map values) {
internalGetMutableAttributes().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000020;
return this;
}
private java.lang.Object awsRegion_ = "";
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 7;
* @return The awsRegion.
*/
public java.lang.String getAwsRegion() {
java.lang.Object ref = awsRegion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
awsRegion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 7;
* @return The bytes for awsRegion.
*/
public com.google.protobuf.ByteString
getAwsRegionBytes() {
java.lang.Object ref = awsRegion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
awsRegion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 7;
* @param value The awsRegion to set.
* @return This builder for chaining.
*/
public Builder setAwsRegion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
awsRegion_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 7;
* @return This builder for chaining.
*/
public Builder clearAwsRegion() {
awsRegion_ = getDefaultInstance().getAwsRegion();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* Value that will be emitted in the `awsRegion` field of the record in DYNAMODB_STREAMS_JSON format
*
*
* string aws_region = 7;
* @param value The bytes for awsRegion to set.
* @return This builder for chaining.
*/
public Builder setAwsRegionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
awsRegion_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private com.google.protobuf.Duration resolvedTimestampsInterval_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resolvedTimestampsIntervalBuilder_;
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
* @return Whether the resolvedTimestampsInterval field is set.
*/
public boolean hasResolvedTimestampsInterval() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
* @return The resolvedTimestampsInterval.
*/
public com.google.protobuf.Duration getResolvedTimestampsInterval() {
if (resolvedTimestampsIntervalBuilder_ == null) {
return resolvedTimestampsInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resolvedTimestampsInterval_;
} else {
return resolvedTimestampsIntervalBuilder_.getMessage();
}
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
*/
public Builder setResolvedTimestampsInterval(com.google.protobuf.Duration value) {
if (resolvedTimestampsIntervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resolvedTimestampsInterval_ = value;
} else {
resolvedTimestampsIntervalBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
*/
public Builder setResolvedTimestampsInterval(
com.google.protobuf.Duration.Builder builderForValue) {
if (resolvedTimestampsIntervalBuilder_ == null) {
resolvedTimestampsInterval_ = builderForValue.build();
} else {
resolvedTimestampsIntervalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
*/
public Builder mergeResolvedTimestampsInterval(com.google.protobuf.Duration value) {
if (resolvedTimestampsIntervalBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
resolvedTimestampsInterval_ != null &&
resolvedTimestampsInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
getResolvedTimestampsIntervalBuilder().mergeFrom(value);
} else {
resolvedTimestampsInterval_ = value;
}
} else {
resolvedTimestampsIntervalBuilder_.mergeFrom(value);
}
if (resolvedTimestampsInterval_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
*/
public Builder clearResolvedTimestampsInterval() {
bitField0_ = (bitField0_ & ~0x00000080);
resolvedTimestampsInterval_ = null;
if (resolvedTimestampsIntervalBuilder_ != null) {
resolvedTimestampsIntervalBuilder_.dispose();
resolvedTimestampsIntervalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
*/
public com.google.protobuf.Duration.Builder getResolvedTimestampsIntervalBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getResolvedTimestampsIntervalFieldBuilder().getBuilder();
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
*/
public com.google.protobuf.DurationOrBuilder getResolvedTimestampsIntervalOrBuilder() {
if (resolvedTimestampsIntervalBuilder_ != null) {
return resolvedTimestampsIntervalBuilder_.getMessageOrBuilder();
} else {
return resolvedTimestampsInterval_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : resolvedTimestampsInterval_;
}
}
/**
*
* Interval of emitting of resolved timestamps. If unspecified, resolved timestamps are not emitted.
*
*
* .google.protobuf.Duration resolved_timestamps_interval = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getResolvedTimestampsIntervalFieldBuilder() {
if (resolvedTimestampsIntervalBuilder_ == null) {
resolvedTimestampsIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getResolvedTimestampsInterval(),
getParentForChildren(),
isClean());
resolvedTimestampsInterval_ = null;
}
return resolvedTimestampsIntervalBuilder_;
}
@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:Ydb.Table.ChangefeedDescription)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ChangefeedDescription)
private static final tech.ydb.proto.table.YdbTable.ChangefeedDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.ChangefeedDescription();
}
public static tech.ydb.proto.table.YdbTable.ChangefeedDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChangefeedDescription parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ChangefeedDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StoragePoolOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.StoragePool)
com.google.protobuf.MessageOrBuilder {
/**
* string media = 1;
* @return The media.
*/
java.lang.String getMedia();
/**
* string media = 1;
* @return The bytes for media.
*/
com.google.protobuf.ByteString
getMediaBytes();
}
/**
* Protobuf type {@code Ydb.Table.StoragePool}
*/
public static final class StoragePool extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.StoragePool)
StoragePoolOrBuilder {
private static final long serialVersionUID = 0L;
// Use StoragePool.newBuilder() to construct.
private StoragePool(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StoragePool() {
media_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StoragePool();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePool_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePool_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.StoragePool.class, tech.ydb.proto.table.YdbTable.StoragePool.Builder.class);
}
public static final int MEDIA_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object media_ = "";
/**
* string media = 1;
* @return The media.
*/
@java.lang.Override
public java.lang.String getMedia() {
java.lang.Object ref = media_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
media_ = s;
return s;
}
}
/**
* string media = 1;
* @return The bytes for media.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMediaBytes() {
java.lang.Object ref = media_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
media_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(media_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, media_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(media_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, media_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.StoragePool)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.StoragePool other = (tech.ydb.proto.table.YdbTable.StoragePool) obj;
if (!getMedia()
.equals(other.getMedia())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + MEDIA_FIELD_NUMBER;
hash = (53 * hash) + getMedia().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.StoragePool parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.StoragePool parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.StoragePool parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.StoragePool parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.StoragePool parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.StoragePool parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.StoragePool parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.StoragePool 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 tech.ydb.proto.table.YdbTable.StoragePool parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.StoragePool 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 tech.ydb.proto.table.YdbTable.StoragePool parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.StoragePool 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(tech.ydb.proto.table.YdbTable.StoragePool 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 Ydb.Table.StoragePool}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.StoragePool)
tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePool_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePool_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.StoragePool.class, tech.ydb.proto.table.YdbTable.StoragePool.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.StoragePool.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
media_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePool_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool build() {
tech.ydb.proto.table.YdbTable.StoragePool result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool buildPartial() {
tech.ydb.proto.table.YdbTable.StoragePool result = new tech.ydb.proto.table.YdbTable.StoragePool(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.StoragePool result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.media_ = media_;
}
}
@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 tech.ydb.proto.table.YdbTable.StoragePool) {
return mergeFrom((tech.ydb.proto.table.YdbTable.StoragePool)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.StoragePool other) {
if (other == tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance()) return this;
if (!other.getMedia().isEmpty()) {
media_ = other.media_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
media_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object media_ = "";
/**
* string media = 1;
* @return The media.
*/
public java.lang.String getMedia() {
java.lang.Object ref = media_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
media_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string media = 1;
* @return The bytes for media.
*/
public com.google.protobuf.ByteString
getMediaBytes() {
java.lang.Object ref = media_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
media_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string media = 1;
* @param value The media to set.
* @return This builder for chaining.
*/
public Builder setMedia(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
media_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string media = 1;
* @return This builder for chaining.
*/
public Builder clearMedia() {
media_ = getDefaultInstance().getMedia();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string media = 1;
* @param value The bytes for media to set.
* @return This builder for chaining.
*/
public Builder setMediaBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
media_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.StoragePool)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.StoragePool)
private static final tech.ydb.proto.table.YdbTable.StoragePool DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.StoragePool();
}
public static tech.ydb.proto.table.YdbTable.StoragePool getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StoragePool parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StoragePolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.StoragePolicy)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return Whether the syslog field is set.
*/
boolean hasSyslog();
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return The syslog.
*/
tech.ydb.proto.table.YdbTable.StoragePool getSyslog();
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getSyslogOrBuilder();
/**
* .Ydb.Table.StoragePool log = 3;
* @return Whether the log field is set.
*/
boolean hasLog();
/**
* .Ydb.Table.StoragePool log = 3;
* @return The log.
*/
tech.ydb.proto.table.YdbTable.StoragePool getLog();
/**
* .Ydb.Table.StoragePool log = 3;
*/
tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getLogOrBuilder();
/**
* .Ydb.Table.StoragePool data = 4;
* @return Whether the data field is set.
*/
boolean hasData();
/**
* .Ydb.Table.StoragePool data = 4;
* @return The data.
*/
tech.ydb.proto.table.YdbTable.StoragePool getData();
/**
* .Ydb.Table.StoragePool data = 4;
*/
tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder();
/**
* .Ydb.Table.StoragePool external = 5;
* @return Whether the external field is set.
*/
boolean hasExternal();
/**
* .Ydb.Table.StoragePool external = 5;
* @return The external.
*/
tech.ydb.proto.table.YdbTable.StoragePool getExternal();
/**
* .Ydb.Table.StoragePool external = 5;
*/
tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder();
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The enum numeric value on the wire for keepInMemory.
*/
int getKeepInMemoryValue();
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The keepInMemory.
*/
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getKeepInMemory();
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
java.util.List
getColumnFamiliesList();
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy getColumnFamilies(int index);
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
int getColumnFamiliesCount();
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
java.util.List extends tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder>
getColumnFamiliesOrBuilderList();
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder getColumnFamiliesOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Table.StoragePolicy}
*/
public static final class StoragePolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.StoragePolicy)
StoragePolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use StoragePolicy.newBuilder() to construct.
private StoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StoragePolicy() {
presetName_ = "";
keepInMemory_ = 0;
columnFamilies_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StoragePolicy();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.StoragePolicy.class, tech.ydb.proto.table.YdbTable.StoragePolicy.Builder.class);
}
private int bitField0_;
public static final int PRESET_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
@java.lang.Override
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SYSLOG_FIELD_NUMBER = 2;
private tech.ydb.proto.table.YdbTable.StoragePool syslog_;
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return Whether the syslog field is set.
*/
@java.lang.Override
public boolean hasSyslog() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return The syslog.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool getSyslog() {
return syslog_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : syslog_;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getSyslogOrBuilder() {
return syslog_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : syslog_;
}
public static final int LOG_FIELD_NUMBER = 3;
private tech.ydb.proto.table.YdbTable.StoragePool log_;
/**
* .Ydb.Table.StoragePool log = 3;
* @return Whether the log field is set.
*/
@java.lang.Override
public boolean hasLog() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Ydb.Table.StoragePool log = 3;
* @return The log.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool getLog() {
return log_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : log_;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getLogOrBuilder() {
return log_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : log_;
}
public static final int DATA_FIELD_NUMBER = 4;
private tech.ydb.proto.table.YdbTable.StoragePool data_;
/**
* .Ydb.Table.StoragePool data = 4;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Table.StoragePool data = 4;
* @return The data.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool getData() {
return data_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
return data_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
public static final int EXTERNAL_FIELD_NUMBER = 5;
private tech.ydb.proto.table.YdbTable.StoragePool external_;
/**
* .Ydb.Table.StoragePool external = 5;
* @return Whether the external field is set.
*/
@java.lang.Override
public boolean hasExternal() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .Ydb.Table.StoragePool external = 5;
* @return The external.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool getExternal() {
return external_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
return external_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
public static final int KEEP_IN_MEMORY_FIELD_NUMBER = 6;
private int keepInMemory_ = 0;
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The enum numeric value on the wire for keepInMemory.
*/
@java.lang.Override public int getKeepInMemoryValue() {
return keepInMemory_;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The keepInMemory.
*/
@java.lang.Override public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(keepInMemory_);
return result == null ? tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
public static final int COLUMN_FAMILIES_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List columnFamilies_;
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public java.util.List getColumnFamiliesList() {
return columnFamilies_;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public java.util.List extends tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder>
getColumnFamiliesOrBuilderList() {
return columnFamilies_;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public int getColumnFamiliesCount() {
return columnFamilies_.size();
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy getColumnFamilies(int index) {
return columnFamilies_.get(index);
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder getColumnFamiliesOrBuilder(
int index) {
return columnFamilies_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, presetName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getSyslog());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getLog());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getData());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(5, getExternal());
}
if (keepInMemory_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(6, keepInMemory_);
}
for (int i = 0; i < columnFamilies_.size(); i++) {
output.writeMessage(7, columnFamilies_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSyslog());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLog());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getData());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getExternal());
}
if (keepInMemory_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, keepInMemory_);
}
for (int i = 0; i < columnFamilies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, columnFamilies_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.StoragePolicy)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.StoragePolicy other = (tech.ydb.proto.table.YdbTable.StoragePolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (hasSyslog() != other.hasSyslog()) return false;
if (hasSyslog()) {
if (!getSyslog()
.equals(other.getSyslog())) return false;
}
if (hasLog() != other.hasLog()) return false;
if (hasLog()) {
if (!getLog()
.equals(other.getLog())) return false;
}
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (hasExternal() != other.hasExternal()) return false;
if (hasExternal()) {
if (!getExternal()
.equals(other.getExternal())) return false;
}
if (keepInMemory_ != other.keepInMemory_) return false;
if (!getColumnFamiliesList()
.equals(other.getColumnFamiliesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
if (hasSyslog()) {
hash = (37 * hash) + SYSLOG_FIELD_NUMBER;
hash = (53 * hash) + getSyslog().hashCode();
}
if (hasLog()) {
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLog().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasExternal()) {
hash = (37 * hash) + EXTERNAL_FIELD_NUMBER;
hash = (53 * hash) + getExternal().hashCode();
}
hash = (37 * hash) + KEEP_IN_MEMORY_FIELD_NUMBER;
hash = (53 * hash) + keepInMemory_;
if (getColumnFamiliesCount() > 0) {
hash = (37 * hash) + COLUMN_FAMILIES_FIELD_NUMBER;
hash = (53 * hash) + getColumnFamiliesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy 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 tech.ydb.proto.table.YdbTable.StoragePolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy 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 tech.ydb.proto.table.YdbTable.StoragePolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy 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(tech.ydb.proto.table.YdbTable.StoragePolicy 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 Ydb.Table.StoragePolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.StoragePolicy)
tech.ydb.proto.table.YdbTable.StoragePolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.StoragePolicy.class, tech.ydb.proto.table.YdbTable.StoragePolicy.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.StoragePolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSyslogFieldBuilder();
getLogFieldBuilder();
getDataFieldBuilder();
getExternalFieldBuilder();
getColumnFamiliesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
presetName_ = "";
syslog_ = null;
if (syslogBuilder_ != null) {
syslogBuilder_.dispose();
syslogBuilder_ = null;
}
log_ = null;
if (logBuilder_ != null) {
logBuilder_.dispose();
logBuilder_ = null;
}
data_ = null;
if (dataBuilder_ != null) {
dataBuilder_.dispose();
dataBuilder_ = null;
}
external_ = null;
if (externalBuilder_ != null) {
externalBuilder_.dispose();
externalBuilder_ = null;
}
keepInMemory_ = 0;
if (columnFamiliesBuilder_ == null) {
columnFamilies_ = java.util.Collections.emptyList();
} else {
columnFamilies_ = null;
columnFamiliesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePolicy getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.StoragePolicy.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePolicy build() {
tech.ydb.proto.table.YdbTable.StoragePolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePolicy buildPartial() {
tech.ydb.proto.table.YdbTable.StoragePolicy result = new tech.ydb.proto.table.YdbTable.StoragePolicy(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.table.YdbTable.StoragePolicy result) {
if (columnFamiliesBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
columnFamilies_ = java.util.Collections.unmodifiableList(columnFamilies_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.columnFamilies_ = columnFamilies_;
} else {
result.columnFamilies_ = columnFamiliesBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.StoragePolicy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.presetName_ = presetName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.syslog_ = syslogBuilder_ == null
? syslog_
: syslogBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.log_ = logBuilder_ == null
? log_
: logBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.data_ = dataBuilder_ == null
? data_
: dataBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.external_ = externalBuilder_ == null
? external_
: externalBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.keepInMemory_ = keepInMemory_;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.StoragePolicy) {
return mergeFrom((tech.ydb.proto.table.YdbTable.StoragePolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.StoragePolicy other) {
if (other == tech.ydb.proto.table.YdbTable.StoragePolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasSyslog()) {
mergeSyslog(other.getSyslog());
}
if (other.hasLog()) {
mergeLog(other.getLog());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasExternal()) {
mergeExternal(other.getExternal());
}
if (other.keepInMemory_ != 0) {
setKeepInMemoryValue(other.getKeepInMemoryValue());
}
if (columnFamiliesBuilder_ == null) {
if (!other.columnFamilies_.isEmpty()) {
if (columnFamilies_.isEmpty()) {
columnFamilies_ = other.columnFamilies_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureColumnFamiliesIsMutable();
columnFamilies_.addAll(other.columnFamilies_);
}
onChanged();
}
} else {
if (!other.columnFamilies_.isEmpty()) {
if (columnFamiliesBuilder_.isEmpty()) {
columnFamiliesBuilder_.dispose();
columnFamiliesBuilder_ = null;
columnFamilies_ = other.columnFamilies_;
bitField0_ = (bitField0_ & ~0x00000040);
columnFamiliesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getColumnFamiliesFieldBuilder() : null;
} else {
columnFamiliesBuilder_.addAllMessages(other.columnFamilies_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
presetName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getSyslogFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getLogFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getDataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getExternalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
keepInMemory_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy m =
input.readMessage(
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.parser(),
extensionRegistry);
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
columnFamilies_.add(m);
} else {
columnFamiliesBuilder_.addMessage(m);
}
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string preset_name = 1;
* @param value The presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string preset_name = 1;
* @param value The bytes for presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private tech.ydb.proto.table.YdbTable.StoragePool syslog_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder> syslogBuilder_;
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return Whether the syslog field is set.
*/
public boolean hasSyslog() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return The syslog.
*/
public tech.ydb.proto.table.YdbTable.StoragePool getSyslog() {
if (syslogBuilder_ == null) {
return syslog_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : syslog_;
} else {
return syslogBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public Builder setSyslog(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (syslogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
syslog_ = value;
} else {
syslogBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public Builder setSyslog(
tech.ydb.proto.table.YdbTable.StoragePool.Builder builderForValue) {
if (syslogBuilder_ == null) {
syslog_ = builderForValue.build();
} else {
syslogBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public Builder mergeSyslog(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (syslogBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
syslog_ != null &&
syslog_ != tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance()) {
getSyslogBuilder().mergeFrom(value);
} else {
syslog_ = value;
}
} else {
syslogBuilder_.mergeFrom(value);
}
if (syslog_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public Builder clearSyslog() {
bitField0_ = (bitField0_ & ~0x00000002);
syslog_ = null;
if (syslogBuilder_ != null) {
syslogBuilder_.dispose();
syslogBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public tech.ydb.proto.table.YdbTable.StoragePool.Builder getSyslogBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSyslogFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getSyslogOrBuilder() {
if (syslogBuilder_ != null) {
return syslogBuilder_.getMessageOrBuilder();
} else {
return syslog_ == null ?
tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : syslog_;
}
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>
getSyslogFieldBuilder() {
if (syslogBuilder_ == null) {
syslogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>(
getSyslog(),
getParentForChildren(),
isClean());
syslog_ = null;
}
return syslogBuilder_;
}
private tech.ydb.proto.table.YdbTable.StoragePool log_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder> logBuilder_;
/**
* .Ydb.Table.StoragePool log = 3;
* @return Whether the log field is set.
*/
public boolean hasLog() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Table.StoragePool log = 3;
* @return The log.
*/
public tech.ydb.proto.table.YdbTable.StoragePool getLog() {
if (logBuilder_ == null) {
return log_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : log_;
} else {
return logBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public Builder setLog(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (logBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
log_ = value;
} else {
logBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public Builder setLog(
tech.ydb.proto.table.YdbTable.StoragePool.Builder builderForValue) {
if (logBuilder_ == null) {
log_ = builderForValue.build();
} else {
logBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public Builder mergeLog(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (logBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
log_ != null &&
log_ != tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance()) {
getLogBuilder().mergeFrom(value);
} else {
log_ = value;
}
} else {
logBuilder_.mergeFrom(value);
}
if (log_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public Builder clearLog() {
bitField0_ = (bitField0_ & ~0x00000004);
log_ = null;
if (logBuilder_ != null) {
logBuilder_.dispose();
logBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public tech.ydb.proto.table.YdbTable.StoragePool.Builder getLogBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getLogFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getLogOrBuilder() {
if (logBuilder_ != null) {
return logBuilder_.getMessageOrBuilder();
} else {
return log_ == null ?
tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : log_;
}
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>
getLogFieldBuilder() {
if (logBuilder_ == null) {
logBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>(
getLog(),
getParentForChildren(),
isClean());
log_ = null;
}
return logBuilder_;
}
private tech.ydb.proto.table.YdbTable.StoragePool data_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder> dataBuilder_;
/**
* .Ydb.Table.StoragePool data = 4;
* @return Whether the data field is set.
*/
public boolean hasData() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .Ydb.Table.StoragePool data = 4;
* @return The data.
*/
public tech.ydb.proto.table.YdbTable.StoragePool getData() {
if (dataBuilder_ == null) {
return data_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public Builder setData(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public Builder setData(
tech.ydb.proto.table.YdbTable.StoragePool.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public Builder mergeData(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
data_ != null &&
data_ != tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance()) {
getDataBuilder().mergeFrom(value);
} else {
data_ = value;
}
} else {
dataBuilder_.mergeFrom(value);
}
if (data_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000008);
data_ = null;
if (dataBuilder_ != null) {
dataBuilder_.dispose();
dataBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public tech.ydb.proto.table.YdbTable.StoragePool.Builder getDataBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private tech.ydb.proto.table.YdbTable.StoragePool external_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder> externalBuilder_;
/**
* .Ydb.Table.StoragePool external = 5;
* @return Whether the external field is set.
*/
public boolean hasExternal() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .Ydb.Table.StoragePool external = 5;
* @return The external.
*/
public tech.ydb.proto.table.YdbTable.StoragePool getExternal() {
if (externalBuilder_ == null) {
return external_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : external_;
} else {
return externalBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public Builder setExternal(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
external_ = value;
} else {
externalBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public Builder setExternal(
tech.ydb.proto.table.YdbTable.StoragePool.Builder builderForValue) {
if (externalBuilder_ == null) {
external_ = builderForValue.build();
} else {
externalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public Builder mergeExternal(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
external_ != null &&
external_ != tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance()) {
getExternalBuilder().mergeFrom(value);
} else {
external_ = value;
}
} else {
externalBuilder_.mergeFrom(value);
}
if (external_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public Builder clearExternal() {
bitField0_ = (bitField0_ & ~0x00000010);
external_ = null;
if (externalBuilder_ != null) {
externalBuilder_.dispose();
externalBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public tech.ydb.proto.table.YdbTable.StoragePool.Builder getExternalBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getExternalFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
if (externalBuilder_ != null) {
return externalBuilder_.getMessageOrBuilder();
} else {
return external_ == null ?
tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>
getExternalFieldBuilder() {
if (externalBuilder_ == null) {
externalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>(
getExternal(),
getParentForChildren(),
isClean());
external_ = null;
}
return externalBuilder_;
}
private int keepInMemory_ = 0;
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The enum numeric value on the wire for keepInMemory.
*/
@java.lang.Override public int getKeepInMemoryValue() {
return keepInMemory_;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @param value The enum numeric value on the wire for keepInMemory to set.
* @return This builder for chaining.
*/
public Builder setKeepInMemoryValue(int value) {
keepInMemory_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The keepInMemory.
*/
@java.lang.Override
public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(keepInMemory_);
return result == null ? tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @param value The keepInMemory to set.
* @return This builder for chaining.
*/
public Builder setKeepInMemory(tech.ydb.proto.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
keepInMemory_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return This builder for chaining.
*/
public Builder clearKeepInMemory() {
bitField0_ = (bitField0_ & ~0x00000020);
keepInMemory_ = 0;
onChanged();
return this;
}
private java.util.List columnFamilies_ =
java.util.Collections.emptyList();
private void ensureColumnFamiliesIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
columnFamilies_ = new java.util.ArrayList(columnFamilies_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder> columnFamiliesBuilder_;
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public java.util.List getColumnFamiliesList() {
if (columnFamiliesBuilder_ == null) {
return java.util.Collections.unmodifiableList(columnFamilies_);
} else {
return columnFamiliesBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public int getColumnFamiliesCount() {
if (columnFamiliesBuilder_ == null) {
return columnFamilies_.size();
} else {
return columnFamiliesBuilder_.getCount();
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy getColumnFamilies(int index) {
if (columnFamiliesBuilder_ == null) {
return columnFamilies_.get(index);
} else {
return columnFamiliesBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder setColumnFamilies(
int index, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy value) {
if (columnFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnFamiliesIsMutable();
columnFamilies_.set(index, value);
onChanged();
} else {
columnFamiliesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder setColumnFamilies(
int index, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder builderForValue) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
columnFamilies_.set(index, builderForValue.build());
onChanged();
} else {
columnFamiliesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addColumnFamilies(tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy value) {
if (columnFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnFamiliesIsMutable();
columnFamilies_.add(value);
onChanged();
} else {
columnFamiliesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addColumnFamilies(
int index, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy value) {
if (columnFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnFamiliesIsMutable();
columnFamilies_.add(index, value);
onChanged();
} else {
columnFamiliesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addColumnFamilies(
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder builderForValue) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
columnFamilies_.add(builderForValue.build());
onChanged();
} else {
columnFamiliesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addColumnFamilies(
int index, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder builderForValue) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
columnFamilies_.add(index, builderForValue.build());
onChanged();
} else {
columnFamiliesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addAllColumnFamilies(
java.lang.Iterable extends tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy> values) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, columnFamilies_);
onChanged();
} else {
columnFamiliesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder clearColumnFamilies() {
if (columnFamiliesBuilder_ == null) {
columnFamilies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
columnFamiliesBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder removeColumnFamilies(int index) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
columnFamilies_.remove(index);
onChanged();
} else {
columnFamiliesBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder getColumnFamiliesBuilder(
int index) {
return getColumnFamiliesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder getColumnFamiliesOrBuilder(
int index) {
if (columnFamiliesBuilder_ == null) {
return columnFamilies_.get(index); } else {
return columnFamiliesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public java.util.List extends tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder>
getColumnFamiliesOrBuilderList() {
if (columnFamiliesBuilder_ != null) {
return columnFamiliesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(columnFamilies_);
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder addColumnFamiliesBuilder() {
return getColumnFamiliesFieldBuilder().addBuilder(
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.getDefaultInstance());
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder addColumnFamiliesBuilder(
int index) {
return getColumnFamiliesFieldBuilder().addBuilder(
index, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.getDefaultInstance());
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public java.util.List
getColumnFamiliesBuilderList() {
return getColumnFamiliesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder>
getColumnFamiliesFieldBuilder() {
if (columnFamiliesBuilder_ == null) {
columnFamiliesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder>(
columnFamilies_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
columnFamilies_ = null;
}
return columnFamiliesBuilder_;
}
@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:Ydb.Table.StoragePolicy)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.StoragePolicy)
private static final tech.ydb.proto.table.YdbTable.StoragePolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.StoragePolicy();
}
public static tech.ydb.proto.table.YdbTable.StoragePolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StoragePolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColumnFamilyPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ColumnFamilyPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return Whether the data field is set.
*/
boolean hasData();
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return The data.
*/
tech.ydb.proto.table.YdbTable.StoragePool getData();
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder();
/**
* .Ydb.Table.StoragePool external = 3;
* @return Whether the external field is set.
*/
boolean hasExternal();
/**
* .Ydb.Table.StoragePool external = 3;
* @return The external.
*/
tech.ydb.proto.table.YdbTable.StoragePool getExternal();
/**
* .Ydb.Table.StoragePool external = 3;
*/
tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder();
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The enum numeric value on the wire for keepInMemory.
*/
int getKeepInMemoryValue();
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The keepInMemory.
*/
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getKeepInMemory();
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return The enum numeric value on the wire for compression.
*/
int getCompressionValue();
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return The compression.
*/
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression getCompression();
}
/**
* Protobuf type {@code Ydb.Table.ColumnFamilyPolicy}
*/
public static final class ColumnFamilyPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ColumnFamilyPolicy)
ColumnFamilyPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ColumnFamilyPolicy.newBuilder() to construct.
private ColumnFamilyPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ColumnFamilyPolicy() {
name_ = "";
keepInMemory_ = 0;
compression_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ColumnFamilyPolicy();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.class, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.ColumnFamilyPolicy.Compression}
*/
public enum Compression
implements com.google.protobuf.ProtocolMessageEnum {
/**
* COMPRESSION_UNSPECIFIED = 0;
*/
COMPRESSION_UNSPECIFIED(0),
/**
* UNCOMPRESSED = 1;
*/
UNCOMPRESSED(1),
/**
* COMPRESSED = 2;
*/
COMPRESSED(2),
UNRECOGNIZED(-1),
;
/**
* COMPRESSION_UNSPECIFIED = 0;
*/
public static final int COMPRESSION_UNSPECIFIED_VALUE = 0;
/**
* UNCOMPRESSED = 1;
*/
public static final int UNCOMPRESSED_VALUE = 1;
/**
* COMPRESSED = 2;
*/
public static final int COMPRESSED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Compression valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Compression forNumber(int value) {
switch (value) {
case 0: return COMPRESSION_UNSPECIFIED;
case 1: return UNCOMPRESSED;
case 2: return COMPRESSED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Compression> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Compression findValueByNumber(int number) {
return Compression.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.getDescriptor().getEnumTypes().get(0);
}
private static final Compression[] VALUES = values();
public static Compression valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Compression(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.ColumnFamilyPolicy.Compression)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_FIELD_NUMBER = 2;
private tech.ydb.proto.table.YdbTable.StoragePool data_;
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return The data.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool getData() {
return data_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
return data_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
public static final int EXTERNAL_FIELD_NUMBER = 3;
private tech.ydb.proto.table.YdbTable.StoragePool external_;
/**
* .Ydb.Table.StoragePool external = 3;
* @return Whether the external field is set.
*/
@java.lang.Override
public boolean hasExternal() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Ydb.Table.StoragePool external = 3;
* @return The external.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePool getExternal() {
return external_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
return external_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
public static final int KEEP_IN_MEMORY_FIELD_NUMBER = 4;
private int keepInMemory_ = 0;
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The enum numeric value on the wire for keepInMemory.
*/
@java.lang.Override public int getKeepInMemoryValue() {
return keepInMemory_;
}
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The keepInMemory.
*/
@java.lang.Override public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(keepInMemory_);
return result == null ? tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
public static final int COMPRESSION_FIELD_NUMBER = 5;
private int compression_ = 0;
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return The enum numeric value on the wire for compression.
*/
@java.lang.Override public int getCompressionValue() {
return compression_;
}
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return The compression.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression getCompression() {
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression result = tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression.forNumber(compression_);
return result == null ? tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getData());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getExternal());
}
if (keepInMemory_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(4, keepInMemory_);
}
if (compression_ != tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression.COMPRESSION_UNSPECIFIED.getNumber()) {
output.writeEnum(5, compression_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getData());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExternal());
}
if (keepInMemory_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, keepInMemory_);
}
if (compression_ != tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression.COMPRESSION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, compression_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy other = (tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (hasExternal() != other.hasExternal()) return false;
if (hasExternal()) {
if (!getExternal()
.equals(other.getExternal())) return false;
}
if (keepInMemory_ != other.keepInMemory_) return false;
if (compression_ != other.compression_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasExternal()) {
hash = (37 * hash) + EXTERNAL_FIELD_NUMBER;
hash = (53 * hash) + getExternal().hashCode();
}
hash = (37 * hash) + KEEP_IN_MEMORY_FIELD_NUMBER;
hash = (53 * hash) + keepInMemory_;
hash = (37 * hash) + COMPRESSION_FIELD_NUMBER;
hash = (53 * hash) + compression_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy 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 tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy 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 tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy 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(tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy 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 Ydb.Table.ColumnFamilyPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ColumnFamilyPolicy)
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.class, tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDataFieldBuilder();
getExternalFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
data_ = null;
if (dataBuilder_ != null) {
dataBuilder_.dispose();
dataBuilder_ = null;
}
external_ = null;
if (externalBuilder_ != null) {
externalBuilder_.dispose();
externalBuilder_ = null;
}
keepInMemory_ = 0;
compression_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy build() {
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy buildPartial() {
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy result = new tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.data_ = dataBuilder_ == null
? data_
: dataBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.external_ = externalBuilder_ == null
? external_
: externalBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.keepInMemory_ = keepInMemory_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.compression_ = compression_;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy) {
return mergeFrom((tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy other) {
if (other == tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasExternal()) {
mergeExternal(other.getExternal());
}
if (other.keepInMemory_ != 0) {
setKeepInMemoryValue(other.getKeepInMemoryValue());
}
if (other.compression_ != 0) {
setCompressionValue(other.getCompressionValue());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getDataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getExternalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
keepInMemory_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
compression_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private tech.ydb.proto.table.YdbTable.StoragePool data_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder> dataBuilder_;
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return Whether the data field is set.
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return The data.
*/
public tech.ydb.proto.table.YdbTable.StoragePool getData() {
if (dataBuilder_ == null) {
return data_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder setData(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder setData(
tech.ydb.proto.table.YdbTable.StoragePool.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder mergeData(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
data_ != null &&
data_ != tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance()) {
getDataBuilder().mergeFrom(value);
} else {
data_ = value;
}
} else {
dataBuilder_.mergeFrom(value);
}
if (data_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000002);
data_ = null;
if (dataBuilder_ != null) {
dataBuilder_.dispose();
dataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public tech.ydb.proto.table.YdbTable.StoragePool.Builder getDataBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private tech.ydb.proto.table.YdbTable.StoragePool external_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder> externalBuilder_;
/**
* .Ydb.Table.StoragePool external = 3;
* @return Whether the external field is set.
*/
public boolean hasExternal() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Table.StoragePool external = 3;
* @return The external.
*/
public tech.ydb.proto.table.YdbTable.StoragePool getExternal() {
if (externalBuilder_ == null) {
return external_ == null ? tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : external_;
} else {
return externalBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public Builder setExternal(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
external_ = value;
} else {
externalBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public Builder setExternal(
tech.ydb.proto.table.YdbTable.StoragePool.Builder builderForValue) {
if (externalBuilder_ == null) {
external_ = builderForValue.build();
} else {
externalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public Builder mergeExternal(tech.ydb.proto.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
external_ != null &&
external_ != tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance()) {
getExternalBuilder().mergeFrom(value);
} else {
external_ = value;
}
} else {
externalBuilder_.mergeFrom(value);
}
if (external_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public Builder clearExternal() {
bitField0_ = (bitField0_ & ~0x00000004);
external_ = null;
if (externalBuilder_ != null) {
externalBuilder_.dispose();
externalBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public tech.ydb.proto.table.YdbTable.StoragePool.Builder getExternalBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getExternalFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
if (externalBuilder_ != null) {
return externalBuilder_.getMessageOrBuilder();
} else {
return external_ == null ?
tech.ydb.proto.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>
getExternalFieldBuilder() {
if (externalBuilder_ == null) {
externalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder>(
getExternal(),
getParentForChildren(),
isClean());
external_ = null;
}
return externalBuilder_;
}
private int keepInMemory_ = 0;
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The enum numeric value on the wire for keepInMemory.
*/
@java.lang.Override public int getKeepInMemoryValue() {
return keepInMemory_;
}
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @param value The enum numeric value on the wire for keepInMemory to set.
* @return This builder for chaining.
*/
public Builder setKeepInMemoryValue(int value) {
keepInMemory_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The keepInMemory.
*/
@java.lang.Override
public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(keepInMemory_);
return result == null ? tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @param value The keepInMemory to set.
* @return This builder for chaining.
*/
public Builder setKeepInMemory(tech.ydb.proto.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
keepInMemory_ = value.getNumber();
onChanged();
return this;
}
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return This builder for chaining.
*/
public Builder clearKeepInMemory() {
bitField0_ = (bitField0_ & ~0x00000008);
keepInMemory_ = 0;
onChanged();
return this;
}
private int compression_ = 0;
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return The enum numeric value on the wire for compression.
*/
@java.lang.Override public int getCompressionValue() {
return compression_;
}
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @param value The enum numeric value on the wire for compression to set.
* @return This builder for chaining.
*/
public Builder setCompressionValue(int value) {
compression_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return The compression.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression getCompression() {
tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression result = tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression.forNumber(compression_);
return result == null ? tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression.UNRECOGNIZED : result;
}
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @param value The compression to set.
* @return This builder for chaining.
*/
public Builder setCompression(tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy.Compression value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
compression_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return This builder for chaining.
*/
public Builder clearCompression() {
bitField0_ = (bitField0_ & ~0x00000010);
compression_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.ColumnFamilyPolicy)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ColumnFamilyPolicy)
private static final tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy();
}
public static tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ColumnFamilyPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnFamilyPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CompactionPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.CompactionPolicy)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
}
/**
* Protobuf type {@code Ydb.Table.CompactionPolicy}
*/
public static final class CompactionPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.CompactionPolicy)
CompactionPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompactionPolicy.newBuilder() to construct.
private CompactionPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompactionPolicy() {
presetName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CompactionPolicy();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CompactionPolicy.class, tech.ydb.proto.table.YdbTable.CompactionPolicy.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
@java.lang.Override
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, presetName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.CompactionPolicy)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.CompactionPolicy other = (tech.ydb.proto.table.YdbTable.CompactionPolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy 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 tech.ydb.proto.table.YdbTable.CompactionPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy 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 tech.ydb.proto.table.YdbTable.CompactionPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy 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(tech.ydb.proto.table.YdbTable.CompactionPolicy 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 Ydb.Table.CompactionPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.CompactionPolicy)
tech.ydb.proto.table.YdbTable.CompactionPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CompactionPolicy.class, tech.ydb.proto.table.YdbTable.CompactionPolicy.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.CompactionPolicy.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
presetName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CompactionPolicy getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.CompactionPolicy.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CompactionPolicy build() {
tech.ydb.proto.table.YdbTable.CompactionPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CompactionPolicy buildPartial() {
tech.ydb.proto.table.YdbTable.CompactionPolicy result = new tech.ydb.proto.table.YdbTable.CompactionPolicy(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.CompactionPolicy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.presetName_ = presetName_;
}
}
@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 tech.ydb.proto.table.YdbTable.CompactionPolicy) {
return mergeFrom((tech.ydb.proto.table.YdbTable.CompactionPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.CompactionPolicy other) {
if (other == tech.ydb.proto.table.YdbTable.CompactionPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
presetName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string preset_name = 1;
* @param value The presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string preset_name = 1;
* @param value The bytes for presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.CompactionPolicy)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.CompactionPolicy)
private static final tech.ydb.proto.table.YdbTable.CompactionPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.CompactionPolicy();
}
public static tech.ydb.proto.table.YdbTable.CompactionPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompactionPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CompactionPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExplicitPartitionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ExplicitPartitions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
java.util.List
getSplitPointsList();
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
tech.ydb.proto.ValueProtos.TypedValue getSplitPoints(int index);
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
int getSplitPointsCount();
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
java.util.List extends tech.ydb.proto.ValueProtos.TypedValueOrBuilder>
getSplitPointsOrBuilderList();
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
tech.ydb.proto.ValueProtos.TypedValueOrBuilder getSplitPointsOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Table.ExplicitPartitions}
*/
public static final class ExplicitPartitions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ExplicitPartitions)
ExplicitPartitionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExplicitPartitions.newBuilder() to construct.
private ExplicitPartitions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExplicitPartitions() {
splitPoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExplicitPartitions();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ExplicitPartitions.class, tech.ydb.proto.table.YdbTable.ExplicitPartitions.Builder.class);
}
public static final int SPLIT_POINTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List splitPoints_;
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public java.util.List getSplitPointsList() {
return splitPoints_;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public java.util.List extends tech.ydb.proto.ValueProtos.TypedValueOrBuilder>
getSplitPointsOrBuilderList() {
return splitPoints_;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public int getSplitPointsCount() {
return splitPoints_.size();
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValue getSplitPoints(int index) {
return splitPoints_.get(index);
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValueOrBuilder getSplitPointsOrBuilder(
int index) {
return splitPoints_.get(index);
}
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 {
for (int i = 0; i < splitPoints_.size(); i++) {
output.writeMessage(1, splitPoints_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < splitPoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, splitPoints_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.ExplicitPartitions)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.ExplicitPartitions other = (tech.ydb.proto.table.YdbTable.ExplicitPartitions) obj;
if (!getSplitPointsList()
.equals(other.getSplitPointsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSplitPointsCount() > 0) {
hash = (37 * hash) + SPLIT_POINTS_FIELD_NUMBER;
hash = (53 * hash) + getSplitPointsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions 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 tech.ydb.proto.table.YdbTable.ExplicitPartitions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions 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 tech.ydb.proto.table.YdbTable.ExplicitPartitions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions 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(tech.ydb.proto.table.YdbTable.ExplicitPartitions 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 Ydb.Table.ExplicitPartitions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ExplicitPartitions)
tech.ydb.proto.table.YdbTable.ExplicitPartitionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ExplicitPartitions.class, tech.ydb.proto.table.YdbTable.ExplicitPartitions.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.ExplicitPartitions.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (splitPointsBuilder_ == null) {
splitPoints_ = java.util.Collections.emptyList();
} else {
splitPoints_ = null;
splitPointsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExplicitPartitions getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExplicitPartitions build() {
tech.ydb.proto.table.YdbTable.ExplicitPartitions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExplicitPartitions buildPartial() {
tech.ydb.proto.table.YdbTable.ExplicitPartitions result = new tech.ydb.proto.table.YdbTable.ExplicitPartitions(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.table.YdbTable.ExplicitPartitions result) {
if (splitPointsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
splitPoints_ = java.util.Collections.unmodifiableList(splitPoints_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.splitPoints_ = splitPoints_;
} else {
result.splitPoints_ = splitPointsBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.ExplicitPartitions result) {
int from_bitField0_ = bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.ExplicitPartitions) {
return mergeFrom((tech.ydb.proto.table.YdbTable.ExplicitPartitions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.ExplicitPartitions other) {
if (other == tech.ydb.proto.table.YdbTable.ExplicitPartitions.getDefaultInstance()) return this;
if (splitPointsBuilder_ == null) {
if (!other.splitPoints_.isEmpty()) {
if (splitPoints_.isEmpty()) {
splitPoints_ = other.splitPoints_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSplitPointsIsMutable();
splitPoints_.addAll(other.splitPoints_);
}
onChanged();
}
} else {
if (!other.splitPoints_.isEmpty()) {
if (splitPointsBuilder_.isEmpty()) {
splitPointsBuilder_.dispose();
splitPointsBuilder_ = null;
splitPoints_ = other.splitPoints_;
bitField0_ = (bitField0_ & ~0x00000001);
splitPointsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSplitPointsFieldBuilder() : null;
} else {
splitPointsBuilder_.addAllMessages(other.splitPoints_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tech.ydb.proto.ValueProtos.TypedValue m =
input.readMessage(
tech.ydb.proto.ValueProtos.TypedValue.parser(),
extensionRegistry);
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
splitPoints_.add(m);
} else {
splitPointsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List splitPoints_ =
java.util.Collections.emptyList();
private void ensureSplitPointsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
splitPoints_ = new java.util.ArrayList(splitPoints_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.ValueProtos.TypedValue, tech.ydb.proto.ValueProtos.TypedValue.Builder, tech.ydb.proto.ValueProtos.TypedValueOrBuilder> splitPointsBuilder_;
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public java.util.List getSplitPointsList() {
if (splitPointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(splitPoints_);
} else {
return splitPointsBuilder_.getMessageList();
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public int getSplitPointsCount() {
if (splitPointsBuilder_ == null) {
return splitPoints_.size();
} else {
return splitPointsBuilder_.getCount();
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public tech.ydb.proto.ValueProtos.TypedValue getSplitPoints(int index) {
if (splitPointsBuilder_ == null) {
return splitPoints_.get(index);
} else {
return splitPointsBuilder_.getMessage(index);
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder setSplitPoints(
int index, tech.ydb.proto.ValueProtos.TypedValue value) {
if (splitPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSplitPointsIsMutable();
splitPoints_.set(index, value);
onChanged();
} else {
splitPointsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder setSplitPoints(
int index, tech.ydb.proto.ValueProtos.TypedValue.Builder builderForValue) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
splitPoints_.set(index, builderForValue.build());
onChanged();
} else {
splitPointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder addSplitPoints(tech.ydb.proto.ValueProtos.TypedValue value) {
if (splitPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSplitPointsIsMutable();
splitPoints_.add(value);
onChanged();
} else {
splitPointsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder addSplitPoints(
int index, tech.ydb.proto.ValueProtos.TypedValue value) {
if (splitPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSplitPointsIsMutable();
splitPoints_.add(index, value);
onChanged();
} else {
splitPointsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder addSplitPoints(
tech.ydb.proto.ValueProtos.TypedValue.Builder builderForValue) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
splitPoints_.add(builderForValue.build());
onChanged();
} else {
splitPointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder addSplitPoints(
int index, tech.ydb.proto.ValueProtos.TypedValue.Builder builderForValue) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
splitPoints_.add(index, builderForValue.build());
onChanged();
} else {
splitPointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder addAllSplitPoints(
java.lang.Iterable extends tech.ydb.proto.ValueProtos.TypedValue> values) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, splitPoints_);
onChanged();
} else {
splitPointsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder clearSplitPoints() {
if (splitPointsBuilder_ == null) {
splitPoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
splitPointsBuilder_.clear();
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder removeSplitPoints(int index) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
splitPoints_.remove(index);
onChanged();
} else {
splitPointsBuilder_.remove(index);
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public tech.ydb.proto.ValueProtos.TypedValue.Builder getSplitPointsBuilder(
int index) {
return getSplitPointsFieldBuilder().getBuilder(index);
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public tech.ydb.proto.ValueProtos.TypedValueOrBuilder getSplitPointsOrBuilder(
int index) {
if (splitPointsBuilder_ == null) {
return splitPoints_.get(index); } else {
return splitPointsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public java.util.List extends tech.ydb.proto.ValueProtos.TypedValueOrBuilder>
getSplitPointsOrBuilderList() {
if (splitPointsBuilder_ != null) {
return splitPointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(splitPoints_);
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public tech.ydb.proto.ValueProtos.TypedValue.Builder addSplitPointsBuilder() {
return getSplitPointsFieldBuilder().addBuilder(
tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance());
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public tech.ydb.proto.ValueProtos.TypedValue.Builder addSplitPointsBuilder(
int index) {
return getSplitPointsFieldBuilder().addBuilder(
index, tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance());
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public java.util.List
getSplitPointsBuilderList() {
return getSplitPointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.ValueProtos.TypedValue, tech.ydb.proto.ValueProtos.TypedValue.Builder, tech.ydb.proto.ValueProtos.TypedValueOrBuilder>
getSplitPointsFieldBuilder() {
if (splitPointsBuilder_ == null) {
splitPointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.ValueProtos.TypedValue, tech.ydb.proto.ValueProtos.TypedValue.Builder, tech.ydb.proto.ValueProtos.TypedValueOrBuilder>(
splitPoints_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
splitPoints_ = null;
}
return splitPointsBuilder_;
}
@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:Ydb.Table.ExplicitPartitions)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ExplicitPartitions)
private static final tech.ydb.proto.table.YdbTable.ExplicitPartitions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.ExplicitPartitions();
}
public static tech.ydb.proto.table.YdbTable.ExplicitPartitions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExplicitPartitions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExplicitPartitions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PartitionStatsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.PartitionStats)
com.google.protobuf.MessageOrBuilder {
/**
*
* Approximate number of rows in shard
*
*
* uint64 rows_estimate = 1;
* @return The rowsEstimate.
*/
long getRowsEstimate();
/**
*
* Approximate size of shard (bytes)
*
*
* uint64 store_size = 2;
* @return The storeSize.
*/
long getStoreSize();
}
/**
* Protobuf type {@code Ydb.Table.PartitionStats}
*/
public static final class PartitionStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.PartitionStats)
PartitionStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use PartitionStats.newBuilder() to construct.
private PartitionStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PartitionStats() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PartitionStats();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitionStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitionStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.PartitionStats.class, tech.ydb.proto.table.YdbTable.PartitionStats.Builder.class);
}
public static final int ROWS_ESTIMATE_FIELD_NUMBER = 1;
private long rowsEstimate_ = 0L;
/**
*
* Approximate number of rows in shard
*
*
* uint64 rows_estimate = 1;
* @return The rowsEstimate.
*/
@java.lang.Override
public long getRowsEstimate() {
return rowsEstimate_;
}
public static final int STORE_SIZE_FIELD_NUMBER = 2;
private long storeSize_ = 0L;
/**
*
* Approximate size of shard (bytes)
*
*
* uint64 store_size = 2;
* @return The storeSize.
*/
@java.lang.Override
public long getStoreSize() {
return storeSize_;
}
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 (rowsEstimate_ != 0L) {
output.writeUInt64(1, rowsEstimate_);
}
if (storeSize_ != 0L) {
output.writeUInt64(2, storeSize_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (rowsEstimate_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, rowsEstimate_);
}
if (storeSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, storeSize_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.PartitionStats)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.PartitionStats other = (tech.ydb.proto.table.YdbTable.PartitionStats) obj;
if (getRowsEstimate()
!= other.getRowsEstimate()) return false;
if (getStoreSize()
!= other.getStoreSize()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ROWS_ESTIMATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRowsEstimate());
hash = (37 * hash) + STORE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStoreSize());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.PartitionStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.PartitionStats parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.PartitionStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.PartitionStats parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.PartitionStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.PartitionStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.PartitionStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.PartitionStats 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 tech.ydb.proto.table.YdbTable.PartitionStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.PartitionStats 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 tech.ydb.proto.table.YdbTable.PartitionStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.PartitionStats 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(tech.ydb.proto.table.YdbTable.PartitionStats 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 Ydb.Table.PartitionStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.PartitionStats)
tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitionStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitionStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.PartitionStats.class, tech.ydb.proto.table.YdbTable.PartitionStats.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.PartitionStats.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
rowsEstimate_ = 0L;
storeSize_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitionStats_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitionStats getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.PartitionStats.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitionStats build() {
tech.ydb.proto.table.YdbTable.PartitionStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitionStats buildPartial() {
tech.ydb.proto.table.YdbTable.PartitionStats result = new tech.ydb.proto.table.YdbTable.PartitionStats(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.PartitionStats result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rowsEstimate_ = rowsEstimate_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.storeSize_ = storeSize_;
}
}
@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 tech.ydb.proto.table.YdbTable.PartitionStats) {
return mergeFrom((tech.ydb.proto.table.YdbTable.PartitionStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.PartitionStats other) {
if (other == tech.ydb.proto.table.YdbTable.PartitionStats.getDefaultInstance()) return this;
if (other.getRowsEstimate() != 0L) {
setRowsEstimate(other.getRowsEstimate());
}
if (other.getStoreSize() != 0L) {
setStoreSize(other.getStoreSize());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
rowsEstimate_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
storeSize_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long rowsEstimate_ ;
/**
*
* Approximate number of rows in shard
*
*
* uint64 rows_estimate = 1;
* @return The rowsEstimate.
*/
@java.lang.Override
public long getRowsEstimate() {
return rowsEstimate_;
}
/**
*
* Approximate number of rows in shard
*
*
* uint64 rows_estimate = 1;
* @param value The rowsEstimate to set.
* @return This builder for chaining.
*/
public Builder setRowsEstimate(long value) {
rowsEstimate_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Approximate number of rows in shard
*
*
* uint64 rows_estimate = 1;
* @return This builder for chaining.
*/
public Builder clearRowsEstimate() {
bitField0_ = (bitField0_ & ~0x00000001);
rowsEstimate_ = 0L;
onChanged();
return this;
}
private long storeSize_ ;
/**
*
* Approximate size of shard (bytes)
*
*
* uint64 store_size = 2;
* @return The storeSize.
*/
@java.lang.Override
public long getStoreSize() {
return storeSize_;
}
/**
*
* Approximate size of shard (bytes)
*
*
* uint64 store_size = 2;
* @param value The storeSize to set.
* @return This builder for chaining.
*/
public Builder setStoreSize(long value) {
storeSize_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Approximate size of shard (bytes)
*
*
* uint64 store_size = 2;
* @return This builder for chaining.
*/
public Builder clearStoreSize() {
bitField0_ = (bitField0_ & ~0x00000002);
storeSize_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.PartitionStats)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.PartitionStats)
private static final tech.ydb.proto.table.YdbTable.PartitionStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.PartitionStats();
}
public static tech.ydb.proto.table.YdbTable.PartitionStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PartitionStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitionStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TableStatsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.TableStats)
com.google.protobuf.MessageOrBuilder {
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
java.util.List
getPartitionStatsList();
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
tech.ydb.proto.table.YdbTable.PartitionStats getPartitionStats(int index);
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
int getPartitionStatsCount();
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
java.util.List extends tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder>
getPartitionStatsOrBuilderList();
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder getPartitionStatsOrBuilder(
int index);
/**
*
* Approximate number of rows in table
*
*
* uint64 rows_estimate = 2;
* @return The rowsEstimate.
*/
long getRowsEstimate();
/**
*
* Approximate size of table (bytes)
*
*
* uint64 store_size = 3;
* @return The storeSize.
*/
long getStoreSize();
/**
*
* Number of partitions in table
*
*
* uint64 partitions = 4;
* @return The partitions.
*/
long getPartitions();
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return Whether the creationTime field is set.
*/
boolean hasCreationTime();
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return The creationTime.
*/
com.google.protobuf.Timestamp getCreationTime();
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder();
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return Whether the modificationTime field is set.
*/
boolean hasModificationTime();
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return The modificationTime.
*/
com.google.protobuf.Timestamp getModificationTime();
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
com.google.protobuf.TimestampOrBuilder getModificationTimeOrBuilder();
}
/**
* Protobuf type {@code Ydb.Table.TableStats}
*/
public static final class TableStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.TableStats)
TableStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableStats.newBuilder() to construct.
private TableStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableStats() {
partitionStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableStats();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TableStats.class, tech.ydb.proto.table.YdbTable.TableStats.Builder.class);
}
private int bitField0_;
public static final int PARTITION_STATS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List partitionStats_;
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public java.util.List getPartitionStatsList() {
return partitionStats_;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public java.util.List extends tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder>
getPartitionStatsOrBuilderList() {
return partitionStats_;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public int getPartitionStatsCount() {
return partitionStats_.size();
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitionStats getPartitionStats(int index) {
return partitionStats_.get(index);
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder getPartitionStatsOrBuilder(
int index) {
return partitionStats_.get(index);
}
public static final int ROWS_ESTIMATE_FIELD_NUMBER = 2;
private long rowsEstimate_ = 0L;
/**
*
* Approximate number of rows in table
*
*
* uint64 rows_estimate = 2;
* @return The rowsEstimate.
*/
@java.lang.Override
public long getRowsEstimate() {
return rowsEstimate_;
}
public static final int STORE_SIZE_FIELD_NUMBER = 3;
private long storeSize_ = 0L;
/**
*
* Approximate size of table (bytes)
*
*
* uint64 store_size = 3;
* @return The storeSize.
*/
@java.lang.Override
public long getStoreSize() {
return storeSize_;
}
public static final int PARTITIONS_FIELD_NUMBER = 4;
private long partitions_ = 0L;
/**
*
* Number of partitions in table
*
*
* uint64 partitions = 4;
* @return The partitions.
*/
@java.lang.Override
public long getPartitions() {
return partitions_;
}
public static final int CREATION_TIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp creationTime_;
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return Whether the creationTime field is set.
*/
@java.lang.Override
public boolean hasCreationTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return The creationTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreationTime() {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
public static final int MODIFICATION_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp modificationTime_;
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return Whether the modificationTime field is set.
*/
@java.lang.Override
public boolean hasModificationTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return The modificationTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getModificationTime() {
return modificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modificationTime_;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getModificationTimeOrBuilder() {
return modificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modificationTime_;
}
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 {
for (int i = 0; i < partitionStats_.size(); i++) {
output.writeMessage(1, partitionStats_.get(i));
}
if (rowsEstimate_ != 0L) {
output.writeUInt64(2, rowsEstimate_);
}
if (storeSize_ != 0L) {
output.writeUInt64(3, storeSize_);
}
if (partitions_ != 0L) {
output.writeUInt64(4, partitions_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getCreationTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getModificationTime());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < partitionStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, partitionStats_.get(i));
}
if (rowsEstimate_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, rowsEstimate_);
}
if (storeSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, storeSize_);
}
if (partitions_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, partitions_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCreationTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getModificationTime());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.TableStats)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.TableStats other = (tech.ydb.proto.table.YdbTable.TableStats) obj;
if (!getPartitionStatsList()
.equals(other.getPartitionStatsList())) return false;
if (getRowsEstimate()
!= other.getRowsEstimate()) return false;
if (getStoreSize()
!= other.getStoreSize()) return false;
if (getPartitions()
!= other.getPartitions()) return false;
if (hasCreationTime() != other.hasCreationTime()) return false;
if (hasCreationTime()) {
if (!getCreationTime()
.equals(other.getCreationTime())) return false;
}
if (hasModificationTime() != other.hasModificationTime()) return false;
if (hasModificationTime()) {
if (!getModificationTime()
.equals(other.getModificationTime())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getPartitionStatsCount() > 0) {
hash = (37 * hash) + PARTITION_STATS_FIELD_NUMBER;
hash = (53 * hash) + getPartitionStatsList().hashCode();
}
hash = (37 * hash) + ROWS_ESTIMATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRowsEstimate());
hash = (37 * hash) + STORE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStoreSize());
hash = (37 * hash) + PARTITIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPartitions());
if (hasCreationTime()) {
hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreationTime().hashCode();
}
if (hasModificationTime()) {
hash = (37 * hash) + MODIFICATION_TIME_FIELD_NUMBER;
hash = (53 * hash) + getModificationTime().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.TableStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableStats parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableStats parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableStats 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 tech.ydb.proto.table.YdbTable.TableStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableStats 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 tech.ydb.proto.table.YdbTable.TableStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableStats 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(tech.ydb.proto.table.YdbTable.TableStats 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 Ydb.Table.TableStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.TableStats)
tech.ydb.proto.table.YdbTable.TableStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TableStats.class, tech.ydb.proto.table.YdbTable.TableStats.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.TableStats.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPartitionStatsFieldBuilder();
getCreationTimeFieldBuilder();
getModificationTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (partitionStatsBuilder_ == null) {
partitionStats_ = java.util.Collections.emptyList();
} else {
partitionStats_ = null;
partitionStatsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
rowsEstimate_ = 0L;
storeSize_ = 0L;
partitions_ = 0L;
creationTime_ = null;
if (creationTimeBuilder_ != null) {
creationTimeBuilder_.dispose();
creationTimeBuilder_ = null;
}
modificationTime_ = null;
if (modificationTimeBuilder_ != null) {
modificationTimeBuilder_.dispose();
modificationTimeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableStats_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableStats getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.TableStats.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableStats build() {
tech.ydb.proto.table.YdbTable.TableStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableStats buildPartial() {
tech.ydb.proto.table.YdbTable.TableStats result = new tech.ydb.proto.table.YdbTable.TableStats(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(tech.ydb.proto.table.YdbTable.TableStats result) {
if (partitionStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
partitionStats_ = java.util.Collections.unmodifiableList(partitionStats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.partitionStats_ = partitionStats_;
} else {
result.partitionStats_ = partitionStatsBuilder_.build();
}
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.TableStats result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rowsEstimate_ = rowsEstimate_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.storeSize_ = storeSize_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.partitions_ = partitions_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.creationTime_ = creationTimeBuilder_ == null
? creationTime_
: creationTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.modificationTime_ = modificationTimeBuilder_ == null
? modificationTime_
: modificationTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.TableStats) {
return mergeFrom((tech.ydb.proto.table.YdbTable.TableStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.TableStats other) {
if (other == tech.ydb.proto.table.YdbTable.TableStats.getDefaultInstance()) return this;
if (partitionStatsBuilder_ == null) {
if (!other.partitionStats_.isEmpty()) {
if (partitionStats_.isEmpty()) {
partitionStats_ = other.partitionStats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePartitionStatsIsMutable();
partitionStats_.addAll(other.partitionStats_);
}
onChanged();
}
} else {
if (!other.partitionStats_.isEmpty()) {
if (partitionStatsBuilder_.isEmpty()) {
partitionStatsBuilder_.dispose();
partitionStatsBuilder_ = null;
partitionStats_ = other.partitionStats_;
bitField0_ = (bitField0_ & ~0x00000001);
partitionStatsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPartitionStatsFieldBuilder() : null;
} else {
partitionStatsBuilder_.addAllMessages(other.partitionStats_);
}
}
}
if (other.getRowsEstimate() != 0L) {
setRowsEstimate(other.getRowsEstimate());
}
if (other.getStoreSize() != 0L) {
setStoreSize(other.getStoreSize());
}
if (other.getPartitions() != 0L) {
setPartitions(other.getPartitions());
}
if (other.hasCreationTime()) {
mergeCreationTime(other.getCreationTime());
}
if (other.hasModificationTime()) {
mergeModificationTime(other.getModificationTime());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tech.ydb.proto.table.YdbTable.PartitionStats m =
input.readMessage(
tech.ydb.proto.table.YdbTable.PartitionStats.parser(),
extensionRegistry);
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
partitionStats_.add(m);
} else {
partitionStatsBuilder_.addMessage(m);
}
break;
} // case 10
case 16: {
rowsEstimate_ = input.readUInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
storeSize_ = input.readUInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
partitions_ = input.readUInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getCreationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getModificationTimeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List partitionStats_ =
java.util.Collections.emptyList();
private void ensurePartitionStatsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
partitionStats_ = new java.util.ArrayList(partitionStats_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.table.YdbTable.PartitionStats, tech.ydb.proto.table.YdbTable.PartitionStats.Builder, tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder> partitionStatsBuilder_;
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public java.util.List getPartitionStatsList() {
if (partitionStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(partitionStats_);
} else {
return partitionStatsBuilder_.getMessageList();
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public int getPartitionStatsCount() {
if (partitionStatsBuilder_ == null) {
return partitionStats_.size();
} else {
return partitionStatsBuilder_.getCount();
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public tech.ydb.proto.table.YdbTable.PartitionStats getPartitionStats(int index) {
if (partitionStatsBuilder_ == null) {
return partitionStats_.get(index);
} else {
return partitionStatsBuilder_.getMessage(index);
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder setPartitionStats(
int index, tech.ydb.proto.table.YdbTable.PartitionStats value) {
if (partitionStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionStatsIsMutable();
partitionStats_.set(index, value);
onChanged();
} else {
partitionStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder setPartitionStats(
int index, tech.ydb.proto.table.YdbTable.PartitionStats.Builder builderForValue) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
partitionStats_.set(index, builderForValue.build());
onChanged();
} else {
partitionStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addPartitionStats(tech.ydb.proto.table.YdbTable.PartitionStats value) {
if (partitionStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionStatsIsMutable();
partitionStats_.add(value);
onChanged();
} else {
partitionStatsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addPartitionStats(
int index, tech.ydb.proto.table.YdbTable.PartitionStats value) {
if (partitionStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionStatsIsMutable();
partitionStats_.add(index, value);
onChanged();
} else {
partitionStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addPartitionStats(
tech.ydb.proto.table.YdbTable.PartitionStats.Builder builderForValue) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
partitionStats_.add(builderForValue.build());
onChanged();
} else {
partitionStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addPartitionStats(
int index, tech.ydb.proto.table.YdbTable.PartitionStats.Builder builderForValue) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
partitionStats_.add(index, builderForValue.build());
onChanged();
} else {
partitionStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addAllPartitionStats(
java.lang.Iterable extends tech.ydb.proto.table.YdbTable.PartitionStats> values) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, partitionStats_);
onChanged();
} else {
partitionStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder clearPartitionStats() {
if (partitionStatsBuilder_ == null) {
partitionStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
partitionStatsBuilder_.clear();
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder removePartitionStats(int index) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
partitionStats_.remove(index);
onChanged();
} else {
partitionStatsBuilder_.remove(index);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public tech.ydb.proto.table.YdbTable.PartitionStats.Builder getPartitionStatsBuilder(
int index) {
return getPartitionStatsFieldBuilder().getBuilder(index);
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder getPartitionStatsOrBuilder(
int index) {
if (partitionStatsBuilder_ == null) {
return partitionStats_.get(index); } else {
return partitionStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public java.util.List extends tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder>
getPartitionStatsOrBuilderList() {
if (partitionStatsBuilder_ != null) {
return partitionStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(partitionStats_);
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public tech.ydb.proto.table.YdbTable.PartitionStats.Builder addPartitionStatsBuilder() {
return getPartitionStatsFieldBuilder().addBuilder(
tech.ydb.proto.table.YdbTable.PartitionStats.getDefaultInstance());
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public tech.ydb.proto.table.YdbTable.PartitionStats.Builder addPartitionStatsBuilder(
int index) {
return getPartitionStatsFieldBuilder().addBuilder(
index, tech.ydb.proto.table.YdbTable.PartitionStats.getDefaultInstance());
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public java.util.List
getPartitionStatsBuilderList() {
return getPartitionStatsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.table.YdbTable.PartitionStats, tech.ydb.proto.table.YdbTable.PartitionStats.Builder, tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder>
getPartitionStatsFieldBuilder() {
if (partitionStatsBuilder_ == null) {
partitionStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
tech.ydb.proto.table.YdbTable.PartitionStats, tech.ydb.proto.table.YdbTable.PartitionStats.Builder, tech.ydb.proto.table.YdbTable.PartitionStatsOrBuilder>(
partitionStats_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
partitionStats_ = null;
}
return partitionStatsBuilder_;
}
private long rowsEstimate_ ;
/**
*
* Approximate number of rows in table
*
*
* uint64 rows_estimate = 2;
* @return The rowsEstimate.
*/
@java.lang.Override
public long getRowsEstimate() {
return rowsEstimate_;
}
/**
*
* Approximate number of rows in table
*
*
* uint64 rows_estimate = 2;
* @param value The rowsEstimate to set.
* @return This builder for chaining.
*/
public Builder setRowsEstimate(long value) {
rowsEstimate_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Approximate number of rows in table
*
*
* uint64 rows_estimate = 2;
* @return This builder for chaining.
*/
public Builder clearRowsEstimate() {
bitField0_ = (bitField0_ & ~0x00000002);
rowsEstimate_ = 0L;
onChanged();
return this;
}
private long storeSize_ ;
/**
*
* Approximate size of table (bytes)
*
*
* uint64 store_size = 3;
* @return The storeSize.
*/
@java.lang.Override
public long getStoreSize() {
return storeSize_;
}
/**
*
* Approximate size of table (bytes)
*
*
* uint64 store_size = 3;
* @param value The storeSize to set.
* @return This builder for chaining.
*/
public Builder setStoreSize(long value) {
storeSize_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Approximate size of table (bytes)
*
*
* uint64 store_size = 3;
* @return This builder for chaining.
*/
public Builder clearStoreSize() {
bitField0_ = (bitField0_ & ~0x00000004);
storeSize_ = 0L;
onChanged();
return this;
}
private long partitions_ ;
/**
*
* Number of partitions in table
*
*
* uint64 partitions = 4;
* @return The partitions.
*/
@java.lang.Override
public long getPartitions() {
return partitions_;
}
/**
*
* Number of partitions in table
*
*
* uint64 partitions = 4;
* @param value The partitions to set.
* @return This builder for chaining.
*/
public Builder setPartitions(long value) {
partitions_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Number of partitions in table
*
*
* uint64 partitions = 4;
* @return This builder for chaining.
*/
public Builder clearPartitions() {
bitField0_ = (bitField0_ & ~0x00000008);
partitions_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Timestamp creationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_;
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return Whether the creationTime field is set.
*/
public boolean hasCreationTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return The creationTime.
*/
public com.google.protobuf.Timestamp getCreationTime() {
if (creationTimeBuilder_ == null) {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
} else {
return creationTimeBuilder_.getMessage();
}
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public Builder setCreationTime(com.google.protobuf.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
creationTime_ = value;
} else {
creationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public Builder setCreationTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (creationTimeBuilder_ == null) {
creationTime_ = builderForValue.build();
} else {
creationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public Builder mergeCreationTime(com.google.protobuf.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
creationTime_ != null &&
creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreationTimeBuilder().mergeFrom(value);
} else {
creationTime_ = value;
}
} else {
creationTimeBuilder_.mergeFrom(value);
}
if (creationTime_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public Builder clearCreationTime() {
bitField0_ = (bitField0_ & ~0x00000010);
creationTime_ = null;
if (creationTimeBuilder_ != null) {
creationTimeBuilder_.dispose();
creationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getCreationTimeFieldBuilder().getBuilder();
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
if (creationTimeBuilder_ != null) {
return creationTimeBuilder_.getMessageOrBuilder();
} else {
return creationTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreationTimeFieldBuilder() {
if (creationTimeBuilder_ == null) {
creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreationTime(),
getParentForChildren(),
isClean());
creationTime_ = null;
}
return creationTimeBuilder_;
}
private com.google.protobuf.Timestamp modificationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modificationTimeBuilder_;
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return Whether the modificationTime field is set.
*/
public boolean hasModificationTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return The modificationTime.
*/
public com.google.protobuf.Timestamp getModificationTime() {
if (modificationTimeBuilder_ == null) {
return modificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modificationTime_;
} else {
return modificationTimeBuilder_.getMessage();
}
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public Builder setModificationTime(com.google.protobuf.Timestamp value) {
if (modificationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modificationTime_ = value;
} else {
modificationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public Builder setModificationTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (modificationTimeBuilder_ == null) {
modificationTime_ = builderForValue.build();
} else {
modificationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public Builder mergeModificationTime(com.google.protobuf.Timestamp value) {
if (modificationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
modificationTime_ != null &&
modificationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getModificationTimeBuilder().mergeFrom(value);
} else {
modificationTime_ = value;
}
} else {
modificationTimeBuilder_.mergeFrom(value);
}
if (modificationTime_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public Builder clearModificationTime() {
bitField0_ = (bitField0_ & ~0x00000020);
modificationTime_ = null;
if (modificationTimeBuilder_ != null) {
modificationTimeBuilder_.dispose();
modificationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public com.google.protobuf.Timestamp.Builder getModificationTimeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getModificationTimeFieldBuilder().getBuilder();
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getModificationTimeOrBuilder() {
if (modificationTimeBuilder_ != null) {
return modificationTimeBuilder_.getMessageOrBuilder();
} else {
return modificationTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : modificationTime_;
}
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getModificationTimeFieldBuilder() {
if (modificationTimeBuilder_ == null) {
modificationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getModificationTime(),
getParentForChildren(),
isClean());
modificationTime_ = null;
}
return modificationTimeBuilder_;
}
@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:Ydb.Table.TableStats)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.TableStats)
private static final tech.ydb.proto.table.YdbTable.TableStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.TableStats();
}
public static tech.ydb.proto.table.YdbTable.TableStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PartitioningPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.PartitioningPolicy)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The enum numeric value on the wire for autoPartitioning.
*/
int getAutoPartitioningValue();
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The autoPartitioning.
*/
tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy getAutoPartitioning();
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return Whether the uniformPartitions field is set.
*/
boolean hasUniformPartitions();
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return The uniformPartitions.
*/
long getUniformPartitions();
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return Whether the explicitPartitions field is set.
*/
boolean hasExplicitPartitions();
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return The explicitPartitions.
*/
tech.ydb.proto.table.YdbTable.ExplicitPartitions getExplicitPartitions();
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
tech.ydb.proto.table.YdbTable.ExplicitPartitionsOrBuilder getExplicitPartitionsOrBuilder();
tech.ydb.proto.table.YdbTable.PartitioningPolicy.PartitionsCase getPartitionsCase();
}
/**
* Protobuf type {@code Ydb.Table.PartitioningPolicy}
*/
public static final class PartitioningPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.PartitioningPolicy)
PartitioningPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use PartitioningPolicy.newBuilder() to construct.
private PartitioningPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PartitioningPolicy() {
presetName_ = "";
autoPartitioning_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PartitioningPolicy();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.PartitioningPolicy.class, tech.ydb.proto.table.YdbTable.PartitioningPolicy.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy}
*/
public enum AutoPartitioningPolicy
implements com.google.protobuf.ProtocolMessageEnum {
/**
* AUTO_PARTITIONING_POLICY_UNSPECIFIED = 0;
*/
AUTO_PARTITIONING_POLICY_UNSPECIFIED(0),
/**
* DISABLED = 1;
*/
DISABLED(1),
/**
* AUTO_SPLIT = 2;
*/
AUTO_SPLIT(2),
/**
* AUTO_SPLIT_MERGE = 3;
*/
AUTO_SPLIT_MERGE(3),
UNRECOGNIZED(-1),
;
/**
* AUTO_PARTITIONING_POLICY_UNSPECIFIED = 0;
*/
public static final int AUTO_PARTITIONING_POLICY_UNSPECIFIED_VALUE = 0;
/**
* DISABLED = 1;
*/
public static final int DISABLED_VALUE = 1;
/**
* AUTO_SPLIT = 2;
*/
public static final int AUTO_SPLIT_VALUE = 2;
/**
* AUTO_SPLIT_MERGE = 3;
*/
public static final int AUTO_SPLIT_MERGE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AutoPartitioningPolicy valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AutoPartitioningPolicy forNumber(int value) {
switch (value) {
case 0: return AUTO_PARTITIONING_POLICY_UNSPECIFIED;
case 1: return DISABLED;
case 2: return AUTO_SPLIT;
case 3: return AUTO_SPLIT_MERGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AutoPartitioningPolicy> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AutoPartitioningPolicy findValueByNumber(int number) {
return AutoPartitioningPolicy.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.PartitioningPolicy.getDescriptor().getEnumTypes().get(0);
}
private static final AutoPartitioningPolicy[] VALUES = values();
public static AutoPartitioningPolicy valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private AutoPartitioningPolicy(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy)
}
private int partitionsCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object partitions_;
public enum PartitionsCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
UNIFORM_PARTITIONS(3),
EXPLICIT_PARTITIONS(4),
PARTITIONS_NOT_SET(0);
private final int value;
private PartitionsCase(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 PartitionsCase valueOf(int value) {
return forNumber(value);
}
public static PartitionsCase forNumber(int value) {
switch (value) {
case 3: return UNIFORM_PARTITIONS;
case 4: return EXPLICIT_PARTITIONS;
case 0: return PARTITIONS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PartitionsCase
getPartitionsCase() {
return PartitionsCase.forNumber(
partitionsCase_);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
@java.lang.Override
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTO_PARTITIONING_FIELD_NUMBER = 2;
private int autoPartitioning_ = 0;
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The enum numeric value on the wire for autoPartitioning.
*/
@java.lang.Override public int getAutoPartitioningValue() {
return autoPartitioning_;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The autoPartitioning.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy getAutoPartitioning() {
tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy result = tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.forNumber(autoPartitioning_);
return result == null ? tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.UNRECOGNIZED : result;
}
public static final int UNIFORM_PARTITIONS_FIELD_NUMBER = 3;
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return Whether the uniformPartitions field is set.
*/
@java.lang.Override
public boolean hasUniformPartitions() {
return partitionsCase_ == 3;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return The uniformPartitions.
*/
@java.lang.Override
public long getUniformPartitions() {
if (partitionsCase_ == 3) {
return (java.lang.Long) partitions_;
}
return 0L;
}
public static final int EXPLICIT_PARTITIONS_FIELD_NUMBER = 4;
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return Whether the explicitPartitions field is set.
*/
@java.lang.Override
public boolean hasExplicitPartitions() {
return partitionsCase_ == 4;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return The explicitPartitions.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExplicitPartitions getExplicitPartitions() {
if (partitionsCase_ == 4) {
return (tech.ydb.proto.table.YdbTable.ExplicitPartitions) partitions_;
}
return tech.ydb.proto.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExplicitPartitionsOrBuilder getExplicitPartitionsOrBuilder() {
if (partitionsCase_ == 4) {
return (tech.ydb.proto.table.YdbTable.ExplicitPartitions) partitions_;
}
return tech.ydb.proto.table.YdbTable.ExplicitPartitions.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, presetName_);
}
if (autoPartitioning_ != tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.AUTO_PARTITIONING_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(2, autoPartitioning_);
}
if (partitionsCase_ == 3) {
output.writeUInt64(
3, (long)((java.lang.Long) partitions_));
}
if (partitionsCase_ == 4) {
output.writeMessage(4, (tech.ydb.proto.table.YdbTable.ExplicitPartitions) partitions_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
if (autoPartitioning_ != tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.AUTO_PARTITIONING_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, autoPartitioning_);
}
if (partitionsCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
3, (long)((java.lang.Long) partitions_));
}
if (partitionsCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (tech.ydb.proto.table.YdbTable.ExplicitPartitions) partitions_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.PartitioningPolicy)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.PartitioningPolicy other = (tech.ydb.proto.table.YdbTable.PartitioningPolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (autoPartitioning_ != other.autoPartitioning_) return false;
if (!getPartitionsCase().equals(other.getPartitionsCase())) return false;
switch (partitionsCase_) {
case 3:
if (getUniformPartitions()
!= other.getUniformPartitions()) return false;
break;
case 4:
if (!getExplicitPartitions()
.equals(other.getExplicitPartitions())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
hash = (37 * hash) + AUTO_PARTITIONING_FIELD_NUMBER;
hash = (53 * hash) + autoPartitioning_;
switch (partitionsCase_) {
case 3:
hash = (37 * hash) + UNIFORM_PARTITIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUniformPartitions());
break;
case 4:
hash = (37 * hash) + EXPLICIT_PARTITIONS_FIELD_NUMBER;
hash = (53 * hash) + getExplicitPartitions().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy 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 tech.ydb.proto.table.YdbTable.PartitioningPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy 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 tech.ydb.proto.table.YdbTable.PartitioningPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy 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(tech.ydb.proto.table.YdbTable.PartitioningPolicy 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 Ydb.Table.PartitioningPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.PartitioningPolicy)
tech.ydb.proto.table.YdbTable.PartitioningPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.PartitioningPolicy.class, tech.ydb.proto.table.YdbTable.PartitioningPolicy.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.PartitioningPolicy.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
presetName_ = "";
autoPartitioning_ = 0;
if (explicitPartitionsBuilder_ != null) {
explicitPartitionsBuilder_.clear();
}
partitionsCase_ = 0;
partitions_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitioningPolicy getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.PartitioningPolicy.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitioningPolicy build() {
tech.ydb.proto.table.YdbTable.PartitioningPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitioningPolicy buildPartial() {
tech.ydb.proto.table.YdbTable.PartitioningPolicy result = new tech.ydb.proto.table.YdbTable.PartitioningPolicy(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.PartitioningPolicy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.presetName_ = presetName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.autoPartitioning_ = autoPartitioning_;
}
}
private void buildPartialOneofs(tech.ydb.proto.table.YdbTable.PartitioningPolicy result) {
result.partitionsCase_ = partitionsCase_;
result.partitions_ = this.partitions_;
if (partitionsCase_ == 4 &&
explicitPartitionsBuilder_ != null) {
result.partitions_ = explicitPartitionsBuilder_.build();
}
}
@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 tech.ydb.proto.table.YdbTable.PartitioningPolicy) {
return mergeFrom((tech.ydb.proto.table.YdbTable.PartitioningPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.PartitioningPolicy other) {
if (other == tech.ydb.proto.table.YdbTable.PartitioningPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.autoPartitioning_ != 0) {
setAutoPartitioningValue(other.getAutoPartitioningValue());
}
switch (other.getPartitionsCase()) {
case UNIFORM_PARTITIONS: {
setUniformPartitions(other.getUniformPartitions());
break;
}
case EXPLICIT_PARTITIONS: {
mergeExplicitPartitions(other.getExplicitPartitions());
break;
}
case PARTITIONS_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
presetName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
autoPartitioning_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
partitions_ = input.readUInt64();
partitionsCase_ = 3;
break;
} // case 24
case 34: {
input.readMessage(
getExplicitPartitionsFieldBuilder().getBuilder(),
extensionRegistry);
partitionsCase_ = 4;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int partitionsCase_ = 0;
private java.lang.Object partitions_;
public PartitionsCase
getPartitionsCase() {
return PartitionsCase.forNumber(
partitionsCase_);
}
public Builder clearPartitions() {
partitionsCase_ = 0;
partitions_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string preset_name = 1;
* @param value The presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string preset_name = 1;
* @param value The bytes for presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int autoPartitioning_ = 0;
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The enum numeric value on the wire for autoPartitioning.
*/
@java.lang.Override public int getAutoPartitioningValue() {
return autoPartitioning_;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @param value The enum numeric value on the wire for autoPartitioning to set.
* @return This builder for chaining.
*/
public Builder setAutoPartitioningValue(int value) {
autoPartitioning_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The autoPartitioning.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy getAutoPartitioning() {
tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy result = tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.forNumber(autoPartitioning_);
return result == null ? tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.UNRECOGNIZED : result;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @param value The autoPartitioning to set.
* @return This builder for chaining.
*/
public Builder setAutoPartitioning(tech.ydb.proto.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
autoPartitioning_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return This builder for chaining.
*/
public Builder clearAutoPartitioning() {
bitField0_ = (bitField0_ & ~0x00000002);
autoPartitioning_ = 0;
onChanged();
return this;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return Whether the uniformPartitions field is set.
*/
public boolean hasUniformPartitions() {
return partitionsCase_ == 3;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return The uniformPartitions.
*/
public long getUniformPartitions() {
if (partitionsCase_ == 3) {
return (java.lang.Long) partitions_;
}
return 0L;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @param value The uniformPartitions to set.
* @return This builder for chaining.
*/
public Builder setUniformPartitions(long value) {
partitionsCase_ = 3;
partitions_ = value;
onChanged();
return this;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return This builder for chaining.
*/
public Builder clearUniformPartitions() {
if (partitionsCase_ == 3) {
partitionsCase_ = 0;
partitions_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ExplicitPartitions, tech.ydb.proto.table.YdbTable.ExplicitPartitions.Builder, tech.ydb.proto.table.YdbTable.ExplicitPartitionsOrBuilder> explicitPartitionsBuilder_;
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return Whether the explicitPartitions field is set.
*/
@java.lang.Override
public boolean hasExplicitPartitions() {
return partitionsCase_ == 4;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return The explicitPartitions.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExplicitPartitions getExplicitPartitions() {
if (explicitPartitionsBuilder_ == null) {
if (partitionsCase_ == 4) {
return (tech.ydb.proto.table.YdbTable.ExplicitPartitions) partitions_;
}
return tech.ydb.proto.table.YdbTable.ExplicitPartitions.getDefaultInstance();
} else {
if (partitionsCase_ == 4) {
return explicitPartitionsBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public Builder setExplicitPartitions(tech.ydb.proto.table.YdbTable.ExplicitPartitions value) {
if (explicitPartitionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
partitions_ = value;
onChanged();
} else {
explicitPartitionsBuilder_.setMessage(value);
}
partitionsCase_ = 4;
return this;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public Builder setExplicitPartitions(
tech.ydb.proto.table.YdbTable.ExplicitPartitions.Builder builderForValue) {
if (explicitPartitionsBuilder_ == null) {
partitions_ = builderForValue.build();
onChanged();
} else {
explicitPartitionsBuilder_.setMessage(builderForValue.build());
}
partitionsCase_ = 4;
return this;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public Builder mergeExplicitPartitions(tech.ydb.proto.table.YdbTable.ExplicitPartitions value) {
if (explicitPartitionsBuilder_ == null) {
if (partitionsCase_ == 4 &&
partitions_ != tech.ydb.proto.table.YdbTable.ExplicitPartitions.getDefaultInstance()) {
partitions_ = tech.ydb.proto.table.YdbTable.ExplicitPartitions.newBuilder((tech.ydb.proto.table.YdbTable.ExplicitPartitions) partitions_)
.mergeFrom(value).buildPartial();
} else {
partitions_ = value;
}
onChanged();
} else {
if (partitionsCase_ == 4) {
explicitPartitionsBuilder_.mergeFrom(value);
} else {
explicitPartitionsBuilder_.setMessage(value);
}
}
partitionsCase_ = 4;
return this;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public Builder clearExplicitPartitions() {
if (explicitPartitionsBuilder_ == null) {
if (partitionsCase_ == 4) {
partitionsCase_ = 0;
partitions_ = null;
onChanged();
}
} else {
if (partitionsCase_ == 4) {
partitionsCase_ = 0;
partitions_ = null;
}
explicitPartitionsBuilder_.clear();
}
return this;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public tech.ydb.proto.table.YdbTable.ExplicitPartitions.Builder getExplicitPartitionsBuilder() {
return getExplicitPartitionsFieldBuilder().getBuilder();
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExplicitPartitionsOrBuilder getExplicitPartitionsOrBuilder() {
if ((partitionsCase_ == 4) && (explicitPartitionsBuilder_ != null)) {
return explicitPartitionsBuilder_.getMessageOrBuilder();
} else {
if (partitionsCase_ == 4) {
return (tech.ydb.proto.table.YdbTable.ExplicitPartitions) partitions_;
}
return tech.ydb.proto.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ExplicitPartitions, tech.ydb.proto.table.YdbTable.ExplicitPartitions.Builder, tech.ydb.proto.table.YdbTable.ExplicitPartitionsOrBuilder>
getExplicitPartitionsFieldBuilder() {
if (explicitPartitionsBuilder_ == null) {
if (!(partitionsCase_ == 4)) {
partitions_ = tech.ydb.proto.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
explicitPartitionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ExplicitPartitions, tech.ydb.proto.table.YdbTable.ExplicitPartitions.Builder, tech.ydb.proto.table.YdbTable.ExplicitPartitionsOrBuilder>(
(tech.ydb.proto.table.YdbTable.ExplicitPartitions) partitions_,
getParentForChildren(),
isClean());
partitions_ = null;
}
partitionsCase_ = 4;
onChanged();
return explicitPartitionsBuilder_;
}
@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:Ydb.Table.PartitioningPolicy)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.PartitioningPolicy)
private static final tech.ydb.proto.table.YdbTable.PartitioningPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.PartitioningPolicy();
}
public static tech.ydb.proto.table.YdbTable.PartitioningPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PartitioningPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitioningPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecutionPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ExecutionPolicy)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
}
/**
* Protobuf type {@code Ydb.Table.ExecutionPolicy}
*/
public static final class ExecutionPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ExecutionPolicy)
ExecutionPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecutionPolicy.newBuilder() to construct.
private ExecutionPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecutionPolicy() {
presetName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecutionPolicy();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ExecutionPolicy.class, tech.ydb.proto.table.YdbTable.ExecutionPolicy.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
@java.lang.Override
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, presetName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.ExecutionPolicy)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.ExecutionPolicy other = (tech.ydb.proto.table.YdbTable.ExecutionPolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy 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 tech.ydb.proto.table.YdbTable.ExecutionPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy 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 tech.ydb.proto.table.YdbTable.ExecutionPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy 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(tech.ydb.proto.table.YdbTable.ExecutionPolicy 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 Ydb.Table.ExecutionPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ExecutionPolicy)
tech.ydb.proto.table.YdbTable.ExecutionPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ExecutionPolicy.class, tech.ydb.proto.table.YdbTable.ExecutionPolicy.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.ExecutionPolicy.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
presetName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExecutionPolicy getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.ExecutionPolicy.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExecutionPolicy build() {
tech.ydb.proto.table.YdbTable.ExecutionPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExecutionPolicy buildPartial() {
tech.ydb.proto.table.YdbTable.ExecutionPolicy result = new tech.ydb.proto.table.YdbTable.ExecutionPolicy(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.ExecutionPolicy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.presetName_ = presetName_;
}
}
@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 tech.ydb.proto.table.YdbTable.ExecutionPolicy) {
return mergeFrom((tech.ydb.proto.table.YdbTable.ExecutionPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.ExecutionPolicy other) {
if (other == tech.ydb.proto.table.YdbTable.ExecutionPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
presetName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string preset_name = 1;
* @param value The presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string preset_name = 1;
* @param value The bytes for presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.ExecutionPolicy)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ExecutionPolicy)
private static final tech.ydb.proto.table.YdbTable.ExecutionPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.ExecutionPolicy();
}
public static tech.ydb.proto.table.YdbTable.ExecutionPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecutionPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExecutionPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReplicationPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ReplicationPolicy)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
/**
*
* If value is non-zero then it specifies a number of read-only
* replicas to create for a table. Zero value means preset
* setting usage.
*
*
* uint32 replicas_count = 2;
* @return The replicasCount.
*/
int getReplicasCount();
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @return The enum numeric value on the wire for createPerAvailabilityZone.
*/
int getCreatePerAvailabilityZoneValue();
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @return The createPerAvailabilityZone.
*/
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getCreatePerAvailabilityZone();
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @return The enum numeric value on the wire for allowPromotion.
*/
int getAllowPromotionValue();
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @return The allowPromotion.
*/
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getAllowPromotion();
}
/**
* Protobuf type {@code Ydb.Table.ReplicationPolicy}
*/
public static final class ReplicationPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ReplicationPolicy)
ReplicationPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReplicationPolicy.newBuilder() to construct.
private ReplicationPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReplicationPolicy() {
presetName_ = "";
createPerAvailabilityZone_ = 0;
allowPromotion_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReplicationPolicy();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ReplicationPolicy.class, tech.ydb.proto.table.YdbTable.ReplicationPolicy.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
@java.lang.Override
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REPLICAS_COUNT_FIELD_NUMBER = 2;
private int replicasCount_ = 0;
/**
*
* If value is non-zero then it specifies a number of read-only
* replicas to create for a table. Zero value means preset
* setting usage.
*
*
* uint32 replicas_count = 2;
* @return The replicasCount.
*/
@java.lang.Override
public int getReplicasCount() {
return replicasCount_;
}
public static final int CREATE_PER_AVAILABILITY_ZONE_FIELD_NUMBER = 3;
private int createPerAvailabilityZone_ = 0;
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @return The enum numeric value on the wire for createPerAvailabilityZone.
*/
@java.lang.Override public int getCreatePerAvailabilityZoneValue() {
return createPerAvailabilityZone_;
}
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @return The createPerAvailabilityZone.
*/
@java.lang.Override public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getCreatePerAvailabilityZone() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(createPerAvailabilityZone_);
return result == null ? tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
public static final int ALLOW_PROMOTION_FIELD_NUMBER = 4;
private int allowPromotion_ = 0;
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @return The enum numeric value on the wire for allowPromotion.
*/
@java.lang.Override public int getAllowPromotionValue() {
return allowPromotion_;
}
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @return The allowPromotion.
*/
@java.lang.Override public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getAllowPromotion() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(allowPromotion_);
return result == null ? tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, presetName_);
}
if (replicasCount_ != 0) {
output.writeUInt32(2, replicasCount_);
}
if (createPerAvailabilityZone_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(3, createPerAvailabilityZone_);
}
if (allowPromotion_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(4, allowPromotion_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
if (replicasCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, replicasCount_);
}
if (createPerAvailabilityZone_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, createPerAvailabilityZone_);
}
if (allowPromotion_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, allowPromotion_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.ReplicationPolicy)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.ReplicationPolicy other = (tech.ydb.proto.table.YdbTable.ReplicationPolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (getReplicasCount()
!= other.getReplicasCount()) return false;
if (createPerAvailabilityZone_ != other.createPerAvailabilityZone_) return false;
if (allowPromotion_ != other.allowPromotion_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
hash = (37 * hash) + REPLICAS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getReplicasCount();
hash = (37 * hash) + CREATE_PER_AVAILABILITY_ZONE_FIELD_NUMBER;
hash = (53 * hash) + createPerAvailabilityZone_;
hash = (37 * hash) + ALLOW_PROMOTION_FIELD_NUMBER;
hash = (53 * hash) + allowPromotion_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy 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 tech.ydb.proto.table.YdbTable.ReplicationPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy 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 tech.ydb.proto.table.YdbTable.ReplicationPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy 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(tech.ydb.proto.table.YdbTable.ReplicationPolicy 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 Ydb.Table.ReplicationPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ReplicationPolicy)
tech.ydb.proto.table.YdbTable.ReplicationPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ReplicationPolicy.class, tech.ydb.proto.table.YdbTable.ReplicationPolicy.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.ReplicationPolicy.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
presetName_ = "";
replicasCount_ = 0;
createPerAvailabilityZone_ = 0;
allowPromotion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ReplicationPolicy getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.ReplicationPolicy.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ReplicationPolicy build() {
tech.ydb.proto.table.YdbTable.ReplicationPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ReplicationPolicy buildPartial() {
tech.ydb.proto.table.YdbTable.ReplicationPolicy result = new tech.ydb.proto.table.YdbTable.ReplicationPolicy(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.ReplicationPolicy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.presetName_ = presetName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.replicasCount_ = replicasCount_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.createPerAvailabilityZone_ = createPerAvailabilityZone_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.allowPromotion_ = allowPromotion_;
}
}
@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 tech.ydb.proto.table.YdbTable.ReplicationPolicy) {
return mergeFrom((tech.ydb.proto.table.YdbTable.ReplicationPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.ReplicationPolicy other) {
if (other == tech.ydb.proto.table.YdbTable.ReplicationPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getReplicasCount() != 0) {
setReplicasCount(other.getReplicasCount());
}
if (other.createPerAvailabilityZone_ != 0) {
setCreatePerAvailabilityZoneValue(other.getCreatePerAvailabilityZoneValue());
}
if (other.allowPromotion_ != 0) {
setAllowPromotionValue(other.getAllowPromotionValue());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
presetName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
replicasCount_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
createPerAvailabilityZone_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
allowPromotion_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string preset_name = 1;
* @param value The presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string preset_name = 1;
* @param value The bytes for presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int replicasCount_ ;
/**
*
* If value is non-zero then it specifies a number of read-only
* replicas to create for a table. Zero value means preset
* setting usage.
*
*
* uint32 replicas_count = 2;
* @return The replicasCount.
*/
@java.lang.Override
public int getReplicasCount() {
return replicasCount_;
}
/**
*
* If value is non-zero then it specifies a number of read-only
* replicas to create for a table. Zero value means preset
* setting usage.
*
*
* uint32 replicas_count = 2;
* @param value The replicasCount to set.
* @return This builder for chaining.
*/
public Builder setReplicasCount(int value) {
replicasCount_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* If value is non-zero then it specifies a number of read-only
* replicas to create for a table. Zero value means preset
* setting usage.
*
*
* uint32 replicas_count = 2;
* @return This builder for chaining.
*/
public Builder clearReplicasCount() {
bitField0_ = (bitField0_ & ~0x00000002);
replicasCount_ = 0;
onChanged();
return this;
}
private int createPerAvailabilityZone_ = 0;
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @return The enum numeric value on the wire for createPerAvailabilityZone.
*/
@java.lang.Override public int getCreatePerAvailabilityZoneValue() {
return createPerAvailabilityZone_;
}
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @param value The enum numeric value on the wire for createPerAvailabilityZone to set.
* @return This builder for chaining.
*/
public Builder setCreatePerAvailabilityZoneValue(int value) {
createPerAvailabilityZone_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @return The createPerAvailabilityZone.
*/
@java.lang.Override
public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getCreatePerAvailabilityZone() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(createPerAvailabilityZone_);
return result == null ? tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @param value The createPerAvailabilityZone to set.
* @return This builder for chaining.
*/
public Builder setCreatePerAvailabilityZone(tech.ydb.proto.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
createPerAvailabilityZone_ = value.getNumber();
onChanged();
return this;
}
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @return This builder for chaining.
*/
public Builder clearCreatePerAvailabilityZone() {
bitField0_ = (bitField0_ & ~0x00000004);
createPerAvailabilityZone_ = 0;
onChanged();
return this;
}
private int allowPromotion_ = 0;
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @return The enum numeric value on the wire for allowPromotion.
*/
@java.lang.Override public int getAllowPromotionValue() {
return allowPromotion_;
}
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @param value The enum numeric value on the wire for allowPromotion to set.
* @return This builder for chaining.
*/
public Builder setAllowPromotionValue(int value) {
allowPromotion_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @return The allowPromotion.
*/
@java.lang.Override
public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getAllowPromotion() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(allowPromotion_);
return result == null ? tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @param value The allowPromotion to set.
* @return This builder for chaining.
*/
public Builder setAllowPromotion(tech.ydb.proto.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
allowPromotion_ = value.getNumber();
onChanged();
return this;
}
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @return This builder for chaining.
*/
public Builder clearAllowPromotion() {
bitField0_ = (bitField0_ & ~0x00000008);
allowPromotion_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.ReplicationPolicy)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ReplicationPolicy)
private static final tech.ydb.proto.table.YdbTable.ReplicationPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.ReplicationPolicy();
}
public static tech.ydb.proto.table.YdbTable.ReplicationPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReplicationPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ReplicationPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CachingPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.CachingPolicy)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
}
/**
* Protobuf type {@code Ydb.Table.CachingPolicy}
*/
public static final class CachingPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.CachingPolicy)
CachingPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use CachingPolicy.newBuilder() to construct.
private CachingPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CachingPolicy() {
presetName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CachingPolicy();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CachingPolicy.class, tech.ydb.proto.table.YdbTable.CachingPolicy.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
@java.lang.Override
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, presetName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.CachingPolicy)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.CachingPolicy other = (tech.ydb.proto.table.YdbTable.CachingPolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy 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 tech.ydb.proto.table.YdbTable.CachingPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy 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 tech.ydb.proto.table.YdbTable.CachingPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy 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(tech.ydb.proto.table.YdbTable.CachingPolicy 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 Ydb.Table.CachingPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.CachingPolicy)
tech.ydb.proto.table.YdbTable.CachingPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.CachingPolicy.class, tech.ydb.proto.table.YdbTable.CachingPolicy.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.CachingPolicy.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
presetName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CachingPolicy getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.CachingPolicy.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CachingPolicy build() {
tech.ydb.proto.table.YdbTable.CachingPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CachingPolicy buildPartial() {
tech.ydb.proto.table.YdbTable.CachingPolicy result = new tech.ydb.proto.table.YdbTable.CachingPolicy(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.CachingPolicy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.presetName_ = presetName_;
}
}
@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 tech.ydb.proto.table.YdbTable.CachingPolicy) {
return mergeFrom((tech.ydb.proto.table.YdbTable.CachingPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.CachingPolicy other) {
if (other == tech.ydb.proto.table.YdbTable.CachingPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
presetName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string preset_name = 1;
* @param value The presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string preset_name = 1;
* @param value The bytes for presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.CachingPolicy)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.CachingPolicy)
private static final tech.ydb.proto.table.YdbTable.CachingPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.CachingPolicy();
}
public static tech.ydb.proto.table.YdbTable.CachingPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CachingPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CachingPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TableProfileOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.TableProfile)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return Whether the storagePolicy field is set.
*/
boolean hasStoragePolicy();
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return The storagePolicy.
*/
tech.ydb.proto.table.YdbTable.StoragePolicy getStoragePolicy();
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
tech.ydb.proto.table.YdbTable.StoragePolicyOrBuilder getStoragePolicyOrBuilder();
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return Whether the compactionPolicy field is set.
*/
boolean hasCompactionPolicy();
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return The compactionPolicy.
*/
tech.ydb.proto.table.YdbTable.CompactionPolicy getCompactionPolicy();
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
tech.ydb.proto.table.YdbTable.CompactionPolicyOrBuilder getCompactionPolicyOrBuilder();
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return Whether the partitioningPolicy field is set.
*/
boolean hasPartitioningPolicy();
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return The partitioningPolicy.
*/
tech.ydb.proto.table.YdbTable.PartitioningPolicy getPartitioningPolicy();
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
tech.ydb.proto.table.YdbTable.PartitioningPolicyOrBuilder getPartitioningPolicyOrBuilder();
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return Whether the executionPolicy field is set.
*/
boolean hasExecutionPolicy();
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return The executionPolicy.
*/
tech.ydb.proto.table.YdbTable.ExecutionPolicy getExecutionPolicy();
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
tech.ydb.proto.table.YdbTable.ExecutionPolicyOrBuilder getExecutionPolicyOrBuilder();
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return Whether the replicationPolicy field is set.
*/
boolean hasReplicationPolicy();
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return The replicationPolicy.
*/
tech.ydb.proto.table.YdbTable.ReplicationPolicy getReplicationPolicy();
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
tech.ydb.proto.table.YdbTable.ReplicationPolicyOrBuilder getReplicationPolicyOrBuilder();
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return Whether the cachingPolicy field is set.
*/
boolean hasCachingPolicy();
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return The cachingPolicy.
*/
tech.ydb.proto.table.YdbTable.CachingPolicy getCachingPolicy();
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
tech.ydb.proto.table.YdbTable.CachingPolicyOrBuilder getCachingPolicyOrBuilder();
}
/**
* Protobuf type {@code Ydb.Table.TableProfile}
*/
public static final class TableProfile extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.TableProfile)
TableProfileOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableProfile.newBuilder() to construct.
private TableProfile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableProfile() {
presetName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableProfile();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableProfile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TableProfile.class, tech.ydb.proto.table.YdbTable.TableProfile.Builder.class);
}
private int bitField0_;
public static final int PRESET_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
@java.lang.Override
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STORAGE_POLICY_FIELD_NUMBER = 2;
private tech.ydb.proto.table.YdbTable.StoragePolicy storagePolicy_;
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return Whether the storagePolicy field is set.
*/
@java.lang.Override
public boolean hasStoragePolicy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return The storagePolicy.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePolicy getStoragePolicy() {
return storagePolicy_ == null ? tech.ydb.proto.table.YdbTable.StoragePolicy.getDefaultInstance() : storagePolicy_;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StoragePolicyOrBuilder getStoragePolicyOrBuilder() {
return storagePolicy_ == null ? tech.ydb.proto.table.YdbTable.StoragePolicy.getDefaultInstance() : storagePolicy_;
}
public static final int COMPACTION_POLICY_FIELD_NUMBER = 3;
private tech.ydb.proto.table.YdbTable.CompactionPolicy compactionPolicy_;
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return Whether the compactionPolicy field is set.
*/
@java.lang.Override
public boolean hasCompactionPolicy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return The compactionPolicy.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CompactionPolicy getCompactionPolicy() {
return compactionPolicy_ == null ? tech.ydb.proto.table.YdbTable.CompactionPolicy.getDefaultInstance() : compactionPolicy_;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CompactionPolicyOrBuilder getCompactionPolicyOrBuilder() {
return compactionPolicy_ == null ? tech.ydb.proto.table.YdbTable.CompactionPolicy.getDefaultInstance() : compactionPolicy_;
}
public static final int PARTITIONING_POLICY_FIELD_NUMBER = 4;
private tech.ydb.proto.table.YdbTable.PartitioningPolicy partitioningPolicy_;
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return Whether the partitioningPolicy field is set.
*/
@java.lang.Override
public boolean hasPartitioningPolicy() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return The partitioningPolicy.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitioningPolicy getPartitioningPolicy() {
return partitioningPolicy_ == null ? tech.ydb.proto.table.YdbTable.PartitioningPolicy.getDefaultInstance() : partitioningPolicy_;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.PartitioningPolicyOrBuilder getPartitioningPolicyOrBuilder() {
return partitioningPolicy_ == null ? tech.ydb.proto.table.YdbTable.PartitioningPolicy.getDefaultInstance() : partitioningPolicy_;
}
public static final int EXECUTION_POLICY_FIELD_NUMBER = 5;
private tech.ydb.proto.table.YdbTable.ExecutionPolicy executionPolicy_;
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return Whether the executionPolicy field is set.
*/
@java.lang.Override
public boolean hasExecutionPolicy() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return The executionPolicy.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExecutionPolicy getExecutionPolicy() {
return executionPolicy_ == null ? tech.ydb.proto.table.YdbTable.ExecutionPolicy.getDefaultInstance() : executionPolicy_;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ExecutionPolicyOrBuilder getExecutionPolicyOrBuilder() {
return executionPolicy_ == null ? tech.ydb.proto.table.YdbTable.ExecutionPolicy.getDefaultInstance() : executionPolicy_;
}
public static final int REPLICATION_POLICY_FIELD_NUMBER = 6;
private tech.ydb.proto.table.YdbTable.ReplicationPolicy replicationPolicy_;
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return Whether the replicationPolicy field is set.
*/
@java.lang.Override
public boolean hasReplicationPolicy() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return The replicationPolicy.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ReplicationPolicy getReplicationPolicy() {
return replicationPolicy_ == null ? tech.ydb.proto.table.YdbTable.ReplicationPolicy.getDefaultInstance() : replicationPolicy_;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ReplicationPolicyOrBuilder getReplicationPolicyOrBuilder() {
return replicationPolicy_ == null ? tech.ydb.proto.table.YdbTable.ReplicationPolicy.getDefaultInstance() : replicationPolicy_;
}
public static final int CACHING_POLICY_FIELD_NUMBER = 7;
private tech.ydb.proto.table.YdbTable.CachingPolicy cachingPolicy_;
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return Whether the cachingPolicy field is set.
*/
@java.lang.Override
public boolean hasCachingPolicy() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return The cachingPolicy.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CachingPolicy getCachingPolicy() {
return cachingPolicy_ == null ? tech.ydb.proto.table.YdbTable.CachingPolicy.getDefaultInstance() : cachingPolicy_;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.CachingPolicyOrBuilder getCachingPolicyOrBuilder() {
return cachingPolicy_ == null ? tech.ydb.proto.table.YdbTable.CachingPolicy.getDefaultInstance() : cachingPolicy_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, presetName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getStoragePolicy());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getCompactionPolicy());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getPartitioningPolicy());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(5, getExecutionPolicy());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(6, getReplicationPolicy());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(7, getCachingPolicy());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStoragePolicy());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCompactionPolicy());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPartitioningPolicy());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getExecutionPolicy());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getReplicationPolicy());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getCachingPolicy());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.TableProfile)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.TableProfile other = (tech.ydb.proto.table.YdbTable.TableProfile) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (hasStoragePolicy() != other.hasStoragePolicy()) return false;
if (hasStoragePolicy()) {
if (!getStoragePolicy()
.equals(other.getStoragePolicy())) return false;
}
if (hasCompactionPolicy() != other.hasCompactionPolicy()) return false;
if (hasCompactionPolicy()) {
if (!getCompactionPolicy()
.equals(other.getCompactionPolicy())) return false;
}
if (hasPartitioningPolicy() != other.hasPartitioningPolicy()) return false;
if (hasPartitioningPolicy()) {
if (!getPartitioningPolicy()
.equals(other.getPartitioningPolicy())) return false;
}
if (hasExecutionPolicy() != other.hasExecutionPolicy()) return false;
if (hasExecutionPolicy()) {
if (!getExecutionPolicy()
.equals(other.getExecutionPolicy())) return false;
}
if (hasReplicationPolicy() != other.hasReplicationPolicy()) return false;
if (hasReplicationPolicy()) {
if (!getReplicationPolicy()
.equals(other.getReplicationPolicy())) return false;
}
if (hasCachingPolicy() != other.hasCachingPolicy()) return false;
if (hasCachingPolicy()) {
if (!getCachingPolicy()
.equals(other.getCachingPolicy())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
if (hasStoragePolicy()) {
hash = (37 * hash) + STORAGE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getStoragePolicy().hashCode();
}
if (hasCompactionPolicy()) {
hash = (37 * hash) + COMPACTION_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getCompactionPolicy().hashCode();
}
if (hasPartitioningPolicy()) {
hash = (37 * hash) + PARTITIONING_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getPartitioningPolicy().hashCode();
}
if (hasExecutionPolicy()) {
hash = (37 * hash) + EXECUTION_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getExecutionPolicy().hashCode();
}
if (hasReplicationPolicy()) {
hash = (37 * hash) + REPLICATION_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getReplicationPolicy().hashCode();
}
if (hasCachingPolicy()) {
hash = (37 * hash) + CACHING_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getCachingPolicy().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.TableProfile parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableProfile parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableProfile parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableProfile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TableProfile parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.TableProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableProfile 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 tech.ydb.proto.table.YdbTable.TableProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableProfile 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 tech.ydb.proto.table.YdbTable.TableProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TableProfile 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(tech.ydb.proto.table.YdbTable.TableProfile 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 Ydb.Table.TableProfile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.TableProfile)
tech.ydb.proto.table.YdbTable.TableProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableProfile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TableProfile.class, tech.ydb.proto.table.YdbTable.TableProfile.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.TableProfile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStoragePolicyFieldBuilder();
getCompactionPolicyFieldBuilder();
getPartitioningPolicyFieldBuilder();
getExecutionPolicyFieldBuilder();
getReplicationPolicyFieldBuilder();
getCachingPolicyFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
presetName_ = "";
storagePolicy_ = null;
if (storagePolicyBuilder_ != null) {
storagePolicyBuilder_.dispose();
storagePolicyBuilder_ = null;
}
compactionPolicy_ = null;
if (compactionPolicyBuilder_ != null) {
compactionPolicyBuilder_.dispose();
compactionPolicyBuilder_ = null;
}
partitioningPolicy_ = null;
if (partitioningPolicyBuilder_ != null) {
partitioningPolicyBuilder_.dispose();
partitioningPolicyBuilder_ = null;
}
executionPolicy_ = null;
if (executionPolicyBuilder_ != null) {
executionPolicyBuilder_.dispose();
executionPolicyBuilder_ = null;
}
replicationPolicy_ = null;
if (replicationPolicyBuilder_ != null) {
replicationPolicyBuilder_.dispose();
replicationPolicyBuilder_ = null;
}
cachingPolicy_ = null;
if (cachingPolicyBuilder_ != null) {
cachingPolicyBuilder_.dispose();
cachingPolicyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TableProfile_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableProfile getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.TableProfile.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableProfile build() {
tech.ydb.proto.table.YdbTable.TableProfile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableProfile buildPartial() {
tech.ydb.proto.table.YdbTable.TableProfile result = new tech.ydb.proto.table.YdbTable.TableProfile(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.TableProfile result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.presetName_ = presetName_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.storagePolicy_ = storagePolicyBuilder_ == null
? storagePolicy_
: storagePolicyBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.compactionPolicy_ = compactionPolicyBuilder_ == null
? compactionPolicy_
: compactionPolicyBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.partitioningPolicy_ = partitioningPolicyBuilder_ == null
? partitioningPolicy_
: partitioningPolicyBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.executionPolicy_ = executionPolicyBuilder_ == null
? executionPolicy_
: executionPolicyBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.replicationPolicy_ = replicationPolicyBuilder_ == null
? replicationPolicy_
: replicationPolicyBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.cachingPolicy_ = cachingPolicyBuilder_ == null
? cachingPolicy_
: cachingPolicyBuilder_.build();
to_bitField0_ |= 0x00000020;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.TableProfile) {
return mergeFrom((tech.ydb.proto.table.YdbTable.TableProfile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.TableProfile other) {
if (other == tech.ydb.proto.table.YdbTable.TableProfile.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasStoragePolicy()) {
mergeStoragePolicy(other.getStoragePolicy());
}
if (other.hasCompactionPolicy()) {
mergeCompactionPolicy(other.getCompactionPolicy());
}
if (other.hasPartitioningPolicy()) {
mergePartitioningPolicy(other.getPartitioningPolicy());
}
if (other.hasExecutionPolicy()) {
mergeExecutionPolicy(other.getExecutionPolicy());
}
if (other.hasReplicationPolicy()) {
mergeReplicationPolicy(other.getReplicationPolicy());
}
if (other.hasCachingPolicy()) {
mergeCachingPolicy(other.getCachingPolicy());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
presetName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getStoragePolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getCompactionPolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getPartitioningPolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getExecutionPolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getReplicationPolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getCachingPolicyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object presetName_ = "";
/**
* string preset_name = 1;
* @return The presetName.
*/
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string preset_name = 1;
* @param value The presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string preset_name = 1;
* @param value The bytes for presetName to set.
* @return This builder for chaining.
*/
public Builder setPresetNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
presetName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private tech.ydb.proto.table.YdbTable.StoragePolicy storagePolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePolicy, tech.ydb.proto.table.YdbTable.StoragePolicy.Builder, tech.ydb.proto.table.YdbTable.StoragePolicyOrBuilder> storagePolicyBuilder_;
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return Whether the storagePolicy field is set.
*/
public boolean hasStoragePolicy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return The storagePolicy.
*/
public tech.ydb.proto.table.YdbTable.StoragePolicy getStoragePolicy() {
if (storagePolicyBuilder_ == null) {
return storagePolicy_ == null ? tech.ydb.proto.table.YdbTable.StoragePolicy.getDefaultInstance() : storagePolicy_;
} else {
return storagePolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public Builder setStoragePolicy(tech.ydb.proto.table.YdbTable.StoragePolicy value) {
if (storagePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storagePolicy_ = value;
} else {
storagePolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public Builder setStoragePolicy(
tech.ydb.proto.table.YdbTable.StoragePolicy.Builder builderForValue) {
if (storagePolicyBuilder_ == null) {
storagePolicy_ = builderForValue.build();
} else {
storagePolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public Builder mergeStoragePolicy(tech.ydb.proto.table.YdbTable.StoragePolicy value) {
if (storagePolicyBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
storagePolicy_ != null &&
storagePolicy_ != tech.ydb.proto.table.YdbTable.StoragePolicy.getDefaultInstance()) {
getStoragePolicyBuilder().mergeFrom(value);
} else {
storagePolicy_ = value;
}
} else {
storagePolicyBuilder_.mergeFrom(value);
}
if (storagePolicy_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public Builder clearStoragePolicy() {
bitField0_ = (bitField0_ & ~0x00000002);
storagePolicy_ = null;
if (storagePolicyBuilder_ != null) {
storagePolicyBuilder_.dispose();
storagePolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public tech.ydb.proto.table.YdbTable.StoragePolicy.Builder getStoragePolicyBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStoragePolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public tech.ydb.proto.table.YdbTable.StoragePolicyOrBuilder getStoragePolicyOrBuilder() {
if (storagePolicyBuilder_ != null) {
return storagePolicyBuilder_.getMessageOrBuilder();
} else {
return storagePolicy_ == null ?
tech.ydb.proto.table.YdbTable.StoragePolicy.getDefaultInstance() : storagePolicy_;
}
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePolicy, tech.ydb.proto.table.YdbTable.StoragePolicy.Builder, tech.ydb.proto.table.YdbTable.StoragePolicyOrBuilder>
getStoragePolicyFieldBuilder() {
if (storagePolicyBuilder_ == null) {
storagePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePolicy, tech.ydb.proto.table.YdbTable.StoragePolicy.Builder, tech.ydb.proto.table.YdbTable.StoragePolicyOrBuilder>(
getStoragePolicy(),
getParentForChildren(),
isClean());
storagePolicy_ = null;
}
return storagePolicyBuilder_;
}
private tech.ydb.proto.table.YdbTable.CompactionPolicy compactionPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.CompactionPolicy, tech.ydb.proto.table.YdbTable.CompactionPolicy.Builder, tech.ydb.proto.table.YdbTable.CompactionPolicyOrBuilder> compactionPolicyBuilder_;
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return Whether the compactionPolicy field is set.
*/
public boolean hasCompactionPolicy() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return The compactionPolicy.
*/
public tech.ydb.proto.table.YdbTable.CompactionPolicy getCompactionPolicy() {
if (compactionPolicyBuilder_ == null) {
return compactionPolicy_ == null ? tech.ydb.proto.table.YdbTable.CompactionPolicy.getDefaultInstance() : compactionPolicy_;
} else {
return compactionPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public Builder setCompactionPolicy(tech.ydb.proto.table.YdbTable.CompactionPolicy value) {
if (compactionPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
compactionPolicy_ = value;
} else {
compactionPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public Builder setCompactionPolicy(
tech.ydb.proto.table.YdbTable.CompactionPolicy.Builder builderForValue) {
if (compactionPolicyBuilder_ == null) {
compactionPolicy_ = builderForValue.build();
} else {
compactionPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public Builder mergeCompactionPolicy(tech.ydb.proto.table.YdbTable.CompactionPolicy value) {
if (compactionPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
compactionPolicy_ != null &&
compactionPolicy_ != tech.ydb.proto.table.YdbTable.CompactionPolicy.getDefaultInstance()) {
getCompactionPolicyBuilder().mergeFrom(value);
} else {
compactionPolicy_ = value;
}
} else {
compactionPolicyBuilder_.mergeFrom(value);
}
if (compactionPolicy_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public Builder clearCompactionPolicy() {
bitField0_ = (bitField0_ & ~0x00000004);
compactionPolicy_ = null;
if (compactionPolicyBuilder_ != null) {
compactionPolicyBuilder_.dispose();
compactionPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public tech.ydb.proto.table.YdbTable.CompactionPolicy.Builder getCompactionPolicyBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCompactionPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public tech.ydb.proto.table.YdbTable.CompactionPolicyOrBuilder getCompactionPolicyOrBuilder() {
if (compactionPolicyBuilder_ != null) {
return compactionPolicyBuilder_.getMessageOrBuilder();
} else {
return compactionPolicy_ == null ?
tech.ydb.proto.table.YdbTable.CompactionPolicy.getDefaultInstance() : compactionPolicy_;
}
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.CompactionPolicy, tech.ydb.proto.table.YdbTable.CompactionPolicy.Builder, tech.ydb.proto.table.YdbTable.CompactionPolicyOrBuilder>
getCompactionPolicyFieldBuilder() {
if (compactionPolicyBuilder_ == null) {
compactionPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.CompactionPolicy, tech.ydb.proto.table.YdbTable.CompactionPolicy.Builder, tech.ydb.proto.table.YdbTable.CompactionPolicyOrBuilder>(
getCompactionPolicy(),
getParentForChildren(),
isClean());
compactionPolicy_ = null;
}
return compactionPolicyBuilder_;
}
private tech.ydb.proto.table.YdbTable.PartitioningPolicy partitioningPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.PartitioningPolicy, tech.ydb.proto.table.YdbTable.PartitioningPolicy.Builder, tech.ydb.proto.table.YdbTable.PartitioningPolicyOrBuilder> partitioningPolicyBuilder_;
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return Whether the partitioningPolicy field is set.
*/
public boolean hasPartitioningPolicy() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return The partitioningPolicy.
*/
public tech.ydb.proto.table.YdbTable.PartitioningPolicy getPartitioningPolicy() {
if (partitioningPolicyBuilder_ == null) {
return partitioningPolicy_ == null ? tech.ydb.proto.table.YdbTable.PartitioningPolicy.getDefaultInstance() : partitioningPolicy_;
} else {
return partitioningPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public Builder setPartitioningPolicy(tech.ydb.proto.table.YdbTable.PartitioningPolicy value) {
if (partitioningPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
partitioningPolicy_ = value;
} else {
partitioningPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public Builder setPartitioningPolicy(
tech.ydb.proto.table.YdbTable.PartitioningPolicy.Builder builderForValue) {
if (partitioningPolicyBuilder_ == null) {
partitioningPolicy_ = builderForValue.build();
} else {
partitioningPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public Builder mergePartitioningPolicy(tech.ydb.proto.table.YdbTable.PartitioningPolicy value) {
if (partitioningPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
partitioningPolicy_ != null &&
partitioningPolicy_ != tech.ydb.proto.table.YdbTable.PartitioningPolicy.getDefaultInstance()) {
getPartitioningPolicyBuilder().mergeFrom(value);
} else {
partitioningPolicy_ = value;
}
} else {
partitioningPolicyBuilder_.mergeFrom(value);
}
if (partitioningPolicy_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public Builder clearPartitioningPolicy() {
bitField0_ = (bitField0_ & ~0x00000008);
partitioningPolicy_ = null;
if (partitioningPolicyBuilder_ != null) {
partitioningPolicyBuilder_.dispose();
partitioningPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public tech.ydb.proto.table.YdbTable.PartitioningPolicy.Builder getPartitioningPolicyBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getPartitioningPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public tech.ydb.proto.table.YdbTable.PartitioningPolicyOrBuilder getPartitioningPolicyOrBuilder() {
if (partitioningPolicyBuilder_ != null) {
return partitioningPolicyBuilder_.getMessageOrBuilder();
} else {
return partitioningPolicy_ == null ?
tech.ydb.proto.table.YdbTable.PartitioningPolicy.getDefaultInstance() : partitioningPolicy_;
}
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.PartitioningPolicy, tech.ydb.proto.table.YdbTable.PartitioningPolicy.Builder, tech.ydb.proto.table.YdbTable.PartitioningPolicyOrBuilder>
getPartitioningPolicyFieldBuilder() {
if (partitioningPolicyBuilder_ == null) {
partitioningPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.PartitioningPolicy, tech.ydb.proto.table.YdbTable.PartitioningPolicy.Builder, tech.ydb.proto.table.YdbTable.PartitioningPolicyOrBuilder>(
getPartitioningPolicy(),
getParentForChildren(),
isClean());
partitioningPolicy_ = null;
}
return partitioningPolicyBuilder_;
}
private tech.ydb.proto.table.YdbTable.ExecutionPolicy executionPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ExecutionPolicy, tech.ydb.proto.table.YdbTable.ExecutionPolicy.Builder, tech.ydb.proto.table.YdbTable.ExecutionPolicyOrBuilder> executionPolicyBuilder_;
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return Whether the executionPolicy field is set.
*/
public boolean hasExecutionPolicy() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return The executionPolicy.
*/
public tech.ydb.proto.table.YdbTable.ExecutionPolicy getExecutionPolicy() {
if (executionPolicyBuilder_ == null) {
return executionPolicy_ == null ? tech.ydb.proto.table.YdbTable.ExecutionPolicy.getDefaultInstance() : executionPolicy_;
} else {
return executionPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public Builder setExecutionPolicy(tech.ydb.proto.table.YdbTable.ExecutionPolicy value) {
if (executionPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executionPolicy_ = value;
} else {
executionPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public Builder setExecutionPolicy(
tech.ydb.proto.table.YdbTable.ExecutionPolicy.Builder builderForValue) {
if (executionPolicyBuilder_ == null) {
executionPolicy_ = builderForValue.build();
} else {
executionPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public Builder mergeExecutionPolicy(tech.ydb.proto.table.YdbTable.ExecutionPolicy value) {
if (executionPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
executionPolicy_ != null &&
executionPolicy_ != tech.ydb.proto.table.YdbTable.ExecutionPolicy.getDefaultInstance()) {
getExecutionPolicyBuilder().mergeFrom(value);
} else {
executionPolicy_ = value;
}
} else {
executionPolicyBuilder_.mergeFrom(value);
}
if (executionPolicy_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public Builder clearExecutionPolicy() {
bitField0_ = (bitField0_ & ~0x00000010);
executionPolicy_ = null;
if (executionPolicyBuilder_ != null) {
executionPolicyBuilder_.dispose();
executionPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public tech.ydb.proto.table.YdbTable.ExecutionPolicy.Builder getExecutionPolicyBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getExecutionPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public tech.ydb.proto.table.YdbTable.ExecutionPolicyOrBuilder getExecutionPolicyOrBuilder() {
if (executionPolicyBuilder_ != null) {
return executionPolicyBuilder_.getMessageOrBuilder();
} else {
return executionPolicy_ == null ?
tech.ydb.proto.table.YdbTable.ExecutionPolicy.getDefaultInstance() : executionPolicy_;
}
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ExecutionPolicy, tech.ydb.proto.table.YdbTable.ExecutionPolicy.Builder, tech.ydb.proto.table.YdbTable.ExecutionPolicyOrBuilder>
getExecutionPolicyFieldBuilder() {
if (executionPolicyBuilder_ == null) {
executionPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ExecutionPolicy, tech.ydb.proto.table.YdbTable.ExecutionPolicy.Builder, tech.ydb.proto.table.YdbTable.ExecutionPolicyOrBuilder>(
getExecutionPolicy(),
getParentForChildren(),
isClean());
executionPolicy_ = null;
}
return executionPolicyBuilder_;
}
private tech.ydb.proto.table.YdbTable.ReplicationPolicy replicationPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ReplicationPolicy, tech.ydb.proto.table.YdbTable.ReplicationPolicy.Builder, tech.ydb.proto.table.YdbTable.ReplicationPolicyOrBuilder> replicationPolicyBuilder_;
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return Whether the replicationPolicy field is set.
*/
public boolean hasReplicationPolicy() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return The replicationPolicy.
*/
public tech.ydb.proto.table.YdbTable.ReplicationPolicy getReplicationPolicy() {
if (replicationPolicyBuilder_ == null) {
return replicationPolicy_ == null ? tech.ydb.proto.table.YdbTable.ReplicationPolicy.getDefaultInstance() : replicationPolicy_;
} else {
return replicationPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public Builder setReplicationPolicy(tech.ydb.proto.table.YdbTable.ReplicationPolicy value) {
if (replicationPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
replicationPolicy_ = value;
} else {
replicationPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public Builder setReplicationPolicy(
tech.ydb.proto.table.YdbTable.ReplicationPolicy.Builder builderForValue) {
if (replicationPolicyBuilder_ == null) {
replicationPolicy_ = builderForValue.build();
} else {
replicationPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public Builder mergeReplicationPolicy(tech.ydb.proto.table.YdbTable.ReplicationPolicy value) {
if (replicationPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
replicationPolicy_ != null &&
replicationPolicy_ != tech.ydb.proto.table.YdbTable.ReplicationPolicy.getDefaultInstance()) {
getReplicationPolicyBuilder().mergeFrom(value);
} else {
replicationPolicy_ = value;
}
} else {
replicationPolicyBuilder_.mergeFrom(value);
}
if (replicationPolicy_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public Builder clearReplicationPolicy() {
bitField0_ = (bitField0_ & ~0x00000020);
replicationPolicy_ = null;
if (replicationPolicyBuilder_ != null) {
replicationPolicyBuilder_.dispose();
replicationPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public tech.ydb.proto.table.YdbTable.ReplicationPolicy.Builder getReplicationPolicyBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getReplicationPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public tech.ydb.proto.table.YdbTable.ReplicationPolicyOrBuilder getReplicationPolicyOrBuilder() {
if (replicationPolicyBuilder_ != null) {
return replicationPolicyBuilder_.getMessageOrBuilder();
} else {
return replicationPolicy_ == null ?
tech.ydb.proto.table.YdbTable.ReplicationPolicy.getDefaultInstance() : replicationPolicy_;
}
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ReplicationPolicy, tech.ydb.proto.table.YdbTable.ReplicationPolicy.Builder, tech.ydb.proto.table.YdbTable.ReplicationPolicyOrBuilder>
getReplicationPolicyFieldBuilder() {
if (replicationPolicyBuilder_ == null) {
replicationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ReplicationPolicy, tech.ydb.proto.table.YdbTable.ReplicationPolicy.Builder, tech.ydb.proto.table.YdbTable.ReplicationPolicyOrBuilder>(
getReplicationPolicy(),
getParentForChildren(),
isClean());
replicationPolicy_ = null;
}
return replicationPolicyBuilder_;
}
private tech.ydb.proto.table.YdbTable.CachingPolicy cachingPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.CachingPolicy, tech.ydb.proto.table.YdbTable.CachingPolicy.Builder, tech.ydb.proto.table.YdbTable.CachingPolicyOrBuilder> cachingPolicyBuilder_;
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return Whether the cachingPolicy field is set.
*/
public boolean hasCachingPolicy() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return The cachingPolicy.
*/
public tech.ydb.proto.table.YdbTable.CachingPolicy getCachingPolicy() {
if (cachingPolicyBuilder_ == null) {
return cachingPolicy_ == null ? tech.ydb.proto.table.YdbTable.CachingPolicy.getDefaultInstance() : cachingPolicy_;
} else {
return cachingPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public Builder setCachingPolicy(tech.ydb.proto.table.YdbTable.CachingPolicy value) {
if (cachingPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cachingPolicy_ = value;
} else {
cachingPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public Builder setCachingPolicy(
tech.ydb.proto.table.YdbTable.CachingPolicy.Builder builderForValue) {
if (cachingPolicyBuilder_ == null) {
cachingPolicy_ = builderForValue.build();
} else {
cachingPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public Builder mergeCachingPolicy(tech.ydb.proto.table.YdbTable.CachingPolicy value) {
if (cachingPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
cachingPolicy_ != null &&
cachingPolicy_ != tech.ydb.proto.table.YdbTable.CachingPolicy.getDefaultInstance()) {
getCachingPolicyBuilder().mergeFrom(value);
} else {
cachingPolicy_ = value;
}
} else {
cachingPolicyBuilder_.mergeFrom(value);
}
if (cachingPolicy_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public Builder clearCachingPolicy() {
bitField0_ = (bitField0_ & ~0x00000040);
cachingPolicy_ = null;
if (cachingPolicyBuilder_ != null) {
cachingPolicyBuilder_.dispose();
cachingPolicyBuilder_ = null;
}
onChanged();
return this;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public tech.ydb.proto.table.YdbTable.CachingPolicy.Builder getCachingPolicyBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getCachingPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public tech.ydb.proto.table.YdbTable.CachingPolicyOrBuilder getCachingPolicyOrBuilder() {
if (cachingPolicyBuilder_ != null) {
return cachingPolicyBuilder_.getMessageOrBuilder();
} else {
return cachingPolicy_ == null ?
tech.ydb.proto.table.YdbTable.CachingPolicy.getDefaultInstance() : cachingPolicy_;
}
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.CachingPolicy, tech.ydb.proto.table.YdbTable.CachingPolicy.Builder, tech.ydb.proto.table.YdbTable.CachingPolicyOrBuilder>
getCachingPolicyFieldBuilder() {
if (cachingPolicyBuilder_ == null) {
cachingPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.CachingPolicy, tech.ydb.proto.table.YdbTable.CachingPolicy.Builder, tech.ydb.proto.table.YdbTable.CachingPolicyOrBuilder>(
getCachingPolicy(),
getParentForChildren(),
isClean());
cachingPolicy_ = null;
}
return cachingPolicyBuilder_;
}
@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:Ydb.Table.TableProfile)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.TableProfile)
private static final tech.ydb.proto.table.YdbTable.TableProfile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.TableProfile();
}
public static tech.ydb.proto.table.YdbTable.TableProfile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableProfile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TableProfile getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SequenceDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.SequenceDescription)
com.google.protobuf.MessageOrBuilder {
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* minimum value, defaults to 1 or Min<i64>
*
*
* optional sint64 min_value = 2;
* @return Whether the minValue field is set.
*/
boolean hasMinValue();
/**
*
* minimum value, defaults to 1 or Min<i64>
*
*
* optional sint64 min_value = 2;
* @return The minValue.
*/
long getMinValue();
/**
*
* maximum value, defaults to Max<i64> or -1
*
*
* optional sint64 max_value = 3;
* @return Whether the maxValue field is set.
*/
boolean hasMaxValue();
/**
*
* maximum value, defaults to Max<i64> or -1
*
*
* optional sint64 max_value = 3;
* @return The maxValue.
*/
long getMaxValue();
/**
*
* start value, defaults to min_value
*
*
* optional sint64 start_value = 4;
* @return Whether the startValue field is set.
*/
boolean hasStartValue();
/**
*
* start value, defaults to min_value
*
*
* optional sint64 start_value = 4;
* @return The startValue.
*/
long getStartValue();
/**
*
* number of items to cache, defaults to 1
*
*
* optional uint64 cache = 5;
* @return Whether the cache field is set.
*/
boolean hasCache();
/**
*
* number of items to cache, defaults to 1
*
*
* optional uint64 cache = 5;
* @return The cache.
*/
long getCache();
/**
*
* increment at each call, defaults to 1
*
*
* optional sint64 increment = 6;
* @return Whether the increment field is set.
*/
boolean hasIncrement();
/**
*
* increment at each call, defaults to 1
*
*
* optional sint64 increment = 6;
* @return The increment.
*/
long getIncrement();
/**
*
* true when cycle on overflow is allowed
*
*
* optional bool cycle = 7;
* @return Whether the cycle field is set.
*/
boolean hasCycle();
/**
*
* true when cycle on overflow is allowed
*
*
* optional bool cycle = 7;
* @return The cycle.
*/
boolean getCycle();
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
* @return Whether the setVal field is set.
*/
boolean hasSetVal();
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
* @return The setVal.
*/
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal getSetVal();
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
*/
tech.ydb.proto.table.YdbTable.SequenceDescription.SetValOrBuilder getSetValOrBuilder();
}
/**
* Protobuf type {@code Ydb.Table.SequenceDescription}
*/
public static final class SequenceDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.SequenceDescription)
SequenceDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SequenceDescription.newBuilder() to construct.
private SequenceDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SequenceDescription() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SequenceDescription();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.SequenceDescription.class, tech.ydb.proto.table.YdbTable.SequenceDescription.Builder.class);
}
public interface SetValOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.SequenceDescription.SetVal)
com.google.protobuf.MessageOrBuilder {
/**
* optional sint64 next_value = 1;
* @return Whether the nextValue field is set.
*/
boolean hasNextValue();
/**
* optional sint64 next_value = 1;
* @return The nextValue.
*/
long getNextValue();
/**
* optional bool next_used = 2;
* @return Whether the nextUsed field is set.
*/
boolean hasNextUsed();
/**
* optional bool next_used = 2;
* @return The nextUsed.
*/
boolean getNextUsed();
}
/**
* Protobuf type {@code Ydb.Table.SequenceDescription.SetVal}
*/
public static final class SetVal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.SequenceDescription.SetVal)
SetValOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetVal.newBuilder() to construct.
private SetVal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetVal() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SetVal();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_SetVal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_SetVal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.class, tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.Builder.class);
}
private int bitField0_;
public static final int NEXT_VALUE_FIELD_NUMBER = 1;
private long nextValue_ = 0L;
/**
* optional sint64 next_value = 1;
* @return Whether the nextValue field is set.
*/
@java.lang.Override
public boolean hasNextValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional sint64 next_value = 1;
* @return The nextValue.
*/
@java.lang.Override
public long getNextValue() {
return nextValue_;
}
public static final int NEXT_USED_FIELD_NUMBER = 2;
private boolean nextUsed_ = false;
/**
* optional bool next_used = 2;
* @return Whether the nextUsed field is set.
*/
@java.lang.Override
public boolean hasNextUsed() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool next_used = 2;
* @return The nextUsed.
*/
@java.lang.Override
public boolean getNextUsed() {
return nextUsed_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeSInt64(1, nextValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, nextUsed_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(1, nextValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, nextUsed_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal other = (tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal) obj;
if (hasNextValue() != other.hasNextValue()) return false;
if (hasNextValue()) {
if (getNextValue()
!= other.getNextValue()) return false;
}
if (hasNextUsed() != other.hasNextUsed()) return false;
if (hasNextUsed()) {
if (getNextUsed()
!= other.getNextUsed()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNextValue()) {
hash = (37 * hash) + NEXT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNextValue());
}
if (hasNextUsed()) {
hash = (37 * hash) + NEXT_USED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNextUsed());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal 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 tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal 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 tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal 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(tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal 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 Ydb.Table.SequenceDescription.SetVal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.SequenceDescription.SetVal)
tech.ydb.proto.table.YdbTable.SequenceDescription.SetValOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_SetVal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_SetVal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.class, tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
nextValue_ = 0L;
nextUsed_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_SetVal_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal build() {
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal buildPartial() {
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal result = new tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.nextValue_ = nextValue_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.nextUsed_ = nextUsed_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal) {
return mergeFrom((tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal other) {
if (other == tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.getDefaultInstance()) return this;
if (other.hasNextValue()) {
setNextValue(other.getNextValue());
}
if (other.hasNextUsed()) {
setNextUsed(other.getNextUsed());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
nextValue_ = input.readSInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
nextUsed_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long nextValue_ ;
/**
* optional sint64 next_value = 1;
* @return Whether the nextValue field is set.
*/
@java.lang.Override
public boolean hasNextValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional sint64 next_value = 1;
* @return The nextValue.
*/
@java.lang.Override
public long getNextValue() {
return nextValue_;
}
/**
* optional sint64 next_value = 1;
* @param value The nextValue to set.
* @return This builder for chaining.
*/
public Builder setNextValue(long value) {
nextValue_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional sint64 next_value = 1;
* @return This builder for chaining.
*/
public Builder clearNextValue() {
bitField0_ = (bitField0_ & ~0x00000001);
nextValue_ = 0L;
onChanged();
return this;
}
private boolean nextUsed_ ;
/**
* optional bool next_used = 2;
* @return Whether the nextUsed field is set.
*/
@java.lang.Override
public boolean hasNextUsed() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool next_used = 2;
* @return The nextUsed.
*/
@java.lang.Override
public boolean getNextUsed() {
return nextUsed_;
}
/**
* optional bool next_used = 2;
* @param value The nextUsed to set.
* @return This builder for chaining.
*/
public Builder setNextUsed(boolean value) {
nextUsed_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional bool next_used = 2;
* @return This builder for chaining.
*/
public Builder clearNextUsed() {
bitField0_ = (bitField0_ & ~0x00000002);
nextUsed_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.SequenceDescription.SetVal)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.SequenceDescription.SetVal)
private static final tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal();
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SetVal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MIN_VALUE_FIELD_NUMBER = 2;
private long minValue_ = 0L;
/**
*
* minimum value, defaults to 1 or Min<i64>
*
*
* optional sint64 min_value = 2;
* @return Whether the minValue field is set.
*/
@java.lang.Override
public boolean hasMinValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* minimum value, defaults to 1 or Min<i64>
*
*
* optional sint64 min_value = 2;
* @return The minValue.
*/
@java.lang.Override
public long getMinValue() {
return minValue_;
}
public static final int MAX_VALUE_FIELD_NUMBER = 3;
private long maxValue_ = 0L;
/**
*
* maximum value, defaults to Max<i64> or -1
*
*
* optional sint64 max_value = 3;
* @return Whether the maxValue field is set.
*/
@java.lang.Override
public boolean hasMaxValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* maximum value, defaults to Max<i64> or -1
*
*
* optional sint64 max_value = 3;
* @return The maxValue.
*/
@java.lang.Override
public long getMaxValue() {
return maxValue_;
}
public static final int START_VALUE_FIELD_NUMBER = 4;
private long startValue_ = 0L;
/**
*
* start value, defaults to min_value
*
*
* optional sint64 start_value = 4;
* @return Whether the startValue field is set.
*/
@java.lang.Override
public boolean hasStartValue() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* start value, defaults to min_value
*
*
* optional sint64 start_value = 4;
* @return The startValue.
*/
@java.lang.Override
public long getStartValue() {
return startValue_;
}
public static final int CACHE_FIELD_NUMBER = 5;
private long cache_ = 0L;
/**
*
* number of items to cache, defaults to 1
*
*
* optional uint64 cache = 5;
* @return Whether the cache field is set.
*/
@java.lang.Override
public boolean hasCache() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* number of items to cache, defaults to 1
*
*
* optional uint64 cache = 5;
* @return The cache.
*/
@java.lang.Override
public long getCache() {
return cache_;
}
public static final int INCREMENT_FIELD_NUMBER = 6;
private long increment_ = 0L;
/**
*
* increment at each call, defaults to 1
*
*
* optional sint64 increment = 6;
* @return Whether the increment field is set.
*/
@java.lang.Override
public boolean hasIncrement() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* increment at each call, defaults to 1
*
*
* optional sint64 increment = 6;
* @return The increment.
*/
@java.lang.Override
public long getIncrement() {
return increment_;
}
public static final int CYCLE_FIELD_NUMBER = 7;
private boolean cycle_ = false;
/**
*
* true when cycle on overflow is allowed
*
*
* optional bool cycle = 7;
* @return Whether the cycle field is set.
*/
@java.lang.Override
public boolean hasCycle() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* true when cycle on overflow is allowed
*
*
* optional bool cycle = 7;
* @return The cycle.
*/
@java.lang.Override
public boolean getCycle() {
return cycle_;
}
public static final int SET_VAL_FIELD_NUMBER = 8;
private tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal setVal_;
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
* @return Whether the setVal field is set.
*/
@java.lang.Override
public boolean hasSetVal() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
* @return The setVal.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal getSetVal() {
return setVal_ == null ? tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.getDefaultInstance() : setVal_;
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription.SetValOrBuilder getSetValOrBuilder() {
return setVal_ == null ? tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.getDefaultInstance() : setVal_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeSInt64(2, minValue_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeSInt64(3, maxValue_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeSInt64(4, startValue_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt64(5, cache_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeSInt64(6, increment_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(7, cycle_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(8, getSetVal());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(2, minValue_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(3, maxValue_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(4, startValue_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, cache_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(6, increment_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, cycle_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getSetVal());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.SequenceDescription)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.SequenceDescription other = (tech.ydb.proto.table.YdbTable.SequenceDescription) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasMinValue() != other.hasMinValue()) return false;
if (hasMinValue()) {
if (getMinValue()
!= other.getMinValue()) return false;
}
if (hasMaxValue() != other.hasMaxValue()) return false;
if (hasMaxValue()) {
if (getMaxValue()
!= other.getMaxValue()) return false;
}
if (hasStartValue() != other.hasStartValue()) return false;
if (hasStartValue()) {
if (getStartValue()
!= other.getStartValue()) return false;
}
if (hasCache() != other.hasCache()) return false;
if (hasCache()) {
if (getCache()
!= other.getCache()) return false;
}
if (hasIncrement() != other.hasIncrement()) return false;
if (hasIncrement()) {
if (getIncrement()
!= other.getIncrement()) return false;
}
if (hasCycle() != other.hasCycle()) return false;
if (hasCycle()) {
if (getCycle()
!= other.getCycle()) return false;
}
if (hasSetVal() != other.hasSetVal()) return false;
if (hasSetVal()) {
if (!getSetVal()
.equals(other.getSetVal())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasMinValue()) {
hash = (37 * hash) + MIN_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinValue());
}
if (hasMaxValue()) {
hash = (37 * hash) + MAX_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxValue());
}
if (hasStartValue()) {
hash = (37 * hash) + START_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartValue());
}
if (hasCache()) {
hash = (37 * hash) + CACHE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCache());
}
if (hasIncrement()) {
hash = (37 * hash) + INCREMENT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIncrement());
}
if (hasCycle()) {
hash = (37 * hash) + CYCLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCycle());
}
if (hasSetVal()) {
hash = (37 * hash) + SET_VAL_FIELD_NUMBER;
hash = (53 * hash) + getSetVal().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription 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 tech.ydb.proto.table.YdbTable.SequenceDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription 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 tech.ydb.proto.table.YdbTable.SequenceDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription 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(tech.ydb.proto.table.YdbTable.SequenceDescription 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 Ydb.Table.SequenceDescription}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.SequenceDescription)
tech.ydb.proto.table.YdbTable.SequenceDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.SequenceDescription.class, tech.ydb.proto.table.YdbTable.SequenceDescription.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.SequenceDescription.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSetValFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
minValue_ = 0L;
maxValue_ = 0L;
startValue_ = 0L;
cache_ = 0L;
increment_ = 0L;
cycle_ = false;
setVal_ = null;
if (setValBuilder_ != null) {
setValBuilder_.dispose();
setValBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_SequenceDescription_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.SequenceDescription.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription build() {
tech.ydb.proto.table.YdbTable.SequenceDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription buildPartial() {
tech.ydb.proto.table.YdbTable.SequenceDescription result = new tech.ydb.proto.table.YdbTable.SequenceDescription(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.SequenceDescription result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.minValue_ = minValue_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.maxValue_ = maxValue_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.startValue_ = startValue_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.cache_ = cache_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.increment_ = increment_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.cycle_ = cycle_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.setVal_ = setValBuilder_ == null
? setVal_
: setValBuilder_.build();
to_bitField0_ |= 0x00000080;
}
result.bitField0_ |= to_bitField0_;
}
@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 tech.ydb.proto.table.YdbTable.SequenceDescription) {
return mergeFrom((tech.ydb.proto.table.YdbTable.SequenceDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.SequenceDescription other) {
if (other == tech.ydb.proto.table.YdbTable.SequenceDescription.getDefaultInstance()) return this;
if (other.hasName()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasMinValue()) {
setMinValue(other.getMinValue());
}
if (other.hasMaxValue()) {
setMaxValue(other.getMaxValue());
}
if (other.hasStartValue()) {
setStartValue(other.getStartValue());
}
if (other.hasCache()) {
setCache(other.getCache());
}
if (other.hasIncrement()) {
setIncrement(other.getIncrement());
}
if (other.hasCycle()) {
setCycle(other.getCycle());
}
if (other.hasSetVal()) {
mergeSetVal(other.getSetVal());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
minValue_ = input.readSInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
maxValue_ = input.readSInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
startValue_ = input.readSInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
cache_ = input.readUInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
increment_ = input.readSInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
cycle_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
input.readMessage(
getSetValFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* mandatorys
*
*
* optional string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* mandatorys
*
*
* optional string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* mandatorys
*
*
* optional string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long minValue_ ;
/**
*
* minimum value, defaults to 1 or Min<i64>
*
*
* optional sint64 min_value = 2;
* @return Whether the minValue field is set.
*/
@java.lang.Override
public boolean hasMinValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* minimum value, defaults to 1 or Min<i64>
*
*
* optional sint64 min_value = 2;
* @return The minValue.
*/
@java.lang.Override
public long getMinValue() {
return minValue_;
}
/**
*
* minimum value, defaults to 1 or Min<i64>
*
*
* optional sint64 min_value = 2;
* @param value The minValue to set.
* @return This builder for chaining.
*/
public Builder setMinValue(long value) {
minValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* minimum value, defaults to 1 or Min<i64>
*
*
* optional sint64 min_value = 2;
* @return This builder for chaining.
*/
public Builder clearMinValue() {
bitField0_ = (bitField0_ & ~0x00000002);
minValue_ = 0L;
onChanged();
return this;
}
private long maxValue_ ;
/**
*
* maximum value, defaults to Max<i64> or -1
*
*
* optional sint64 max_value = 3;
* @return Whether the maxValue field is set.
*/
@java.lang.Override
public boolean hasMaxValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* maximum value, defaults to Max<i64> or -1
*
*
* optional sint64 max_value = 3;
* @return The maxValue.
*/
@java.lang.Override
public long getMaxValue() {
return maxValue_;
}
/**
*
* maximum value, defaults to Max<i64> or -1
*
*
* optional sint64 max_value = 3;
* @param value The maxValue to set.
* @return This builder for chaining.
*/
public Builder setMaxValue(long value) {
maxValue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* maximum value, defaults to Max<i64> or -1
*
*
* optional sint64 max_value = 3;
* @return This builder for chaining.
*/
public Builder clearMaxValue() {
bitField0_ = (bitField0_ & ~0x00000004);
maxValue_ = 0L;
onChanged();
return this;
}
private long startValue_ ;
/**
*
* start value, defaults to min_value
*
*
* optional sint64 start_value = 4;
* @return Whether the startValue field is set.
*/
@java.lang.Override
public boolean hasStartValue() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* start value, defaults to min_value
*
*
* optional sint64 start_value = 4;
* @return The startValue.
*/
@java.lang.Override
public long getStartValue() {
return startValue_;
}
/**
*
* start value, defaults to min_value
*
*
* optional sint64 start_value = 4;
* @param value The startValue to set.
* @return This builder for chaining.
*/
public Builder setStartValue(long value) {
startValue_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* start value, defaults to min_value
*
*
* optional sint64 start_value = 4;
* @return This builder for chaining.
*/
public Builder clearStartValue() {
bitField0_ = (bitField0_ & ~0x00000008);
startValue_ = 0L;
onChanged();
return this;
}
private long cache_ ;
/**
*
* number of items to cache, defaults to 1
*
*
* optional uint64 cache = 5;
* @return Whether the cache field is set.
*/
@java.lang.Override
public boolean hasCache() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* number of items to cache, defaults to 1
*
*
* optional uint64 cache = 5;
* @return The cache.
*/
@java.lang.Override
public long getCache() {
return cache_;
}
/**
*
* number of items to cache, defaults to 1
*
*
* optional uint64 cache = 5;
* @param value The cache to set.
* @return This builder for chaining.
*/
public Builder setCache(long value) {
cache_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* number of items to cache, defaults to 1
*
*
* optional uint64 cache = 5;
* @return This builder for chaining.
*/
public Builder clearCache() {
bitField0_ = (bitField0_ & ~0x00000010);
cache_ = 0L;
onChanged();
return this;
}
private long increment_ ;
/**
*
* increment at each call, defaults to 1
*
*
* optional sint64 increment = 6;
* @return Whether the increment field is set.
*/
@java.lang.Override
public boolean hasIncrement() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* increment at each call, defaults to 1
*
*
* optional sint64 increment = 6;
* @return The increment.
*/
@java.lang.Override
public long getIncrement() {
return increment_;
}
/**
*
* increment at each call, defaults to 1
*
*
* optional sint64 increment = 6;
* @param value The increment to set.
* @return This builder for chaining.
*/
public Builder setIncrement(long value) {
increment_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* increment at each call, defaults to 1
*
*
* optional sint64 increment = 6;
* @return This builder for chaining.
*/
public Builder clearIncrement() {
bitField0_ = (bitField0_ & ~0x00000020);
increment_ = 0L;
onChanged();
return this;
}
private boolean cycle_ ;
/**
*
* true when cycle on overflow is allowed
*
*
* optional bool cycle = 7;
* @return Whether the cycle field is set.
*/
@java.lang.Override
public boolean hasCycle() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* true when cycle on overflow is allowed
*
*
* optional bool cycle = 7;
* @return The cycle.
*/
@java.lang.Override
public boolean getCycle() {
return cycle_;
}
/**
*
* true when cycle on overflow is allowed
*
*
* optional bool cycle = 7;
* @param value The cycle to set.
* @return This builder for chaining.
*/
public Builder setCycle(boolean value) {
cycle_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* true when cycle on overflow is allowed
*
*
* optional bool cycle = 7;
* @return This builder for chaining.
*/
public Builder clearCycle() {
bitField0_ = (bitField0_ & ~0x00000040);
cycle_ = false;
onChanged();
return this;
}
private tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal setVal_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal, tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.Builder, tech.ydb.proto.table.YdbTable.SequenceDescription.SetValOrBuilder> setValBuilder_;
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
* @return Whether the setVal field is set.
*/
public boolean hasSetVal() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
* @return The setVal.
*/
public tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal getSetVal() {
if (setValBuilder_ == null) {
return setVal_ == null ? tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.getDefaultInstance() : setVal_;
} else {
return setValBuilder_.getMessage();
}
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
*/
public Builder setSetVal(tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal value) {
if (setValBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
setVal_ = value;
} else {
setValBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
*/
public Builder setSetVal(
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.Builder builderForValue) {
if (setValBuilder_ == null) {
setVal_ = builderForValue.build();
} else {
setValBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
*/
public Builder mergeSetVal(tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal value) {
if (setValBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
setVal_ != null &&
setVal_ != tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.getDefaultInstance()) {
getSetValBuilder().mergeFrom(value);
} else {
setVal_ = value;
}
} else {
setValBuilder_.mergeFrom(value);
}
if (setVal_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
*/
public Builder clearSetVal() {
bitField0_ = (bitField0_ & ~0x00000080);
setVal_ = null;
if (setValBuilder_ != null) {
setValBuilder_.dispose();
setValBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
*/
public tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.Builder getSetValBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getSetValFieldBuilder().getBuilder();
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
*/
public tech.ydb.proto.table.YdbTable.SequenceDescription.SetValOrBuilder getSetValOrBuilder() {
if (setValBuilder_ != null) {
return setValBuilder_.getMessageOrBuilder();
} else {
return setVal_ == null ?
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.getDefaultInstance() : setVal_;
}
}
/**
*
* set_val(next_value, next_used) is executed atomically when creating
*
*
* optional .Ydb.Table.SequenceDescription.SetVal set_val = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal, tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.Builder, tech.ydb.proto.table.YdbTable.SequenceDescription.SetValOrBuilder>
getSetValFieldBuilder() {
if (setValBuilder_ == null) {
setValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal, tech.ydb.proto.table.YdbTable.SequenceDescription.SetVal.Builder, tech.ydb.proto.table.YdbTable.SequenceDescription.SetValOrBuilder>(
getSetVal(),
getParentForChildren(),
isClean());
setVal_ = null;
}
return setValBuilder_;
}
@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:Ydb.Table.SequenceDescription)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.SequenceDescription)
private static final tech.ydb.proto.table.YdbTable.SequenceDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.SequenceDescription();
}
public static tech.ydb.proto.table.YdbTable.SequenceDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SequenceDescription parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColumnMetaOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ColumnMeta)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of column
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of column
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
boolean hasType();
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return The type.
*/
tech.ydb.proto.ValueProtos.Type getType();
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
tech.ydb.proto.ValueProtos.TypeOrBuilder getTypeOrBuilder();
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The family.
*/
java.lang.String getFamily();
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The bytes for family.
*/
com.google.protobuf.ByteString
getFamilyBytes();
/**
*
* Column nullability
*
*
* optional bool not_null = 4;
* @return Whether the notNull field is set.
*/
boolean hasNotNull();
/**
*
* Column nullability
*
*
* optional bool not_null = 4;
* @return The notNull.
*/
boolean getNotNull();
/**
* .Ydb.TypedValue from_literal = 5;
* @return Whether the fromLiteral field is set.
*/
boolean hasFromLiteral();
/**
* .Ydb.TypedValue from_literal = 5;
* @return The fromLiteral.
*/
tech.ydb.proto.ValueProtos.TypedValue getFromLiteral();
/**
* .Ydb.TypedValue from_literal = 5;
*/
tech.ydb.proto.ValueProtos.TypedValueOrBuilder getFromLiteralOrBuilder();
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
* @return Whether the fromSequence field is set.
*/
boolean hasFromSequence();
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
* @return The fromSequence.
*/
tech.ydb.proto.table.YdbTable.SequenceDescription getFromSequence();
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
*/
tech.ydb.proto.table.YdbTable.SequenceDescriptionOrBuilder getFromSequenceOrBuilder();
tech.ydb.proto.table.YdbTable.ColumnMeta.DefaultValueCase getDefaultValueCase();
}
/**
* Protobuf type {@code Ydb.Table.ColumnMeta}
*/
public static final class ColumnMeta extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ColumnMeta)
ColumnMetaOrBuilder {
private static final long serialVersionUID = 0L;
// Use ColumnMeta.newBuilder() to construct.
private ColumnMeta(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ColumnMeta() {
name_ = "";
family_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ColumnMeta();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ColumnMeta.class, tech.ydb.proto.table.YdbTable.ColumnMeta.Builder.class);
}
private int bitField0_;
private int defaultValueCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object defaultValue_;
public enum DefaultValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FROM_LITERAL(5),
FROM_SEQUENCE(6),
DEFAULTVALUE_NOT_SET(0);
private final int value;
private DefaultValueCase(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 DefaultValueCase valueOf(int value) {
return forNumber(value);
}
public static DefaultValueCase forNumber(int value) {
switch (value) {
case 5: return FROM_LITERAL;
case 6: return FROM_SEQUENCE;
case 0: return DEFAULTVALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DefaultValueCase
getDefaultValueCase() {
return DefaultValueCase.forNumber(
defaultValueCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* Name of column
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of column
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private tech.ydb.proto.ValueProtos.Type type_;
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return The type.
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.Type getType() {
return type_ == null ? tech.ydb.proto.ValueProtos.Type.getDefaultInstance() : type_;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypeOrBuilder getTypeOrBuilder() {
return type_ == null ? tech.ydb.proto.ValueProtos.Type.getDefaultInstance() : type_;
}
public static final int FAMILY_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object family_ = "";
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The family.
*/
@java.lang.Override
public java.lang.String getFamily() {
java.lang.Object ref = family_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
family_ = s;
return s;
}
}
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The bytes for family.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFamilyBytes() {
java.lang.Object ref = family_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
family_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NOT_NULL_FIELD_NUMBER = 4;
private boolean notNull_ = false;
/**
*
* Column nullability
*
*
* optional bool not_null = 4;
* @return Whether the notNull field is set.
*/
@java.lang.Override
public boolean hasNotNull() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Column nullability
*
*
* optional bool not_null = 4;
* @return The notNull.
*/
@java.lang.Override
public boolean getNotNull() {
return notNull_;
}
public static final int FROM_LITERAL_FIELD_NUMBER = 5;
/**
* .Ydb.TypedValue from_literal = 5;
* @return Whether the fromLiteral field is set.
*/
@java.lang.Override
public boolean hasFromLiteral() {
return defaultValueCase_ == 5;
}
/**
* .Ydb.TypedValue from_literal = 5;
* @return The fromLiteral.
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValue getFromLiteral() {
if (defaultValueCase_ == 5) {
return (tech.ydb.proto.ValueProtos.TypedValue) defaultValue_;
}
return tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance();
}
/**
* .Ydb.TypedValue from_literal = 5;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValueOrBuilder getFromLiteralOrBuilder() {
if (defaultValueCase_ == 5) {
return (tech.ydb.proto.ValueProtos.TypedValue) defaultValue_;
}
return tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance();
}
public static final int FROM_SEQUENCE_FIELD_NUMBER = 6;
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
* @return Whether the fromSequence field is set.
*/
@java.lang.Override
public boolean hasFromSequence() {
return defaultValueCase_ == 6;
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
* @return The fromSequence.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription getFromSequence() {
if (defaultValueCase_ == 6) {
return (tech.ydb.proto.table.YdbTable.SequenceDescription) defaultValue_;
}
return tech.ydb.proto.table.YdbTable.SequenceDescription.getDefaultInstance();
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescriptionOrBuilder getFromSequenceOrBuilder() {
if (defaultValueCase_ == 6) {
return (tech.ydb.proto.table.YdbTable.SequenceDescription) defaultValue_;
}
return tech.ydb.proto.table.YdbTable.SequenceDescription.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getType());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(family_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, family_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(4, notNull_);
}
if (defaultValueCase_ == 5) {
output.writeMessage(5, (tech.ydb.proto.ValueProtos.TypedValue) defaultValue_);
}
if (defaultValueCase_ == 6) {
output.writeMessage(6, (tech.ydb.proto.table.YdbTable.SequenceDescription) defaultValue_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getType());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(family_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, family_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, notNull_);
}
if (defaultValueCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (tech.ydb.proto.ValueProtos.TypedValue) defaultValue_);
}
if (defaultValueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (tech.ydb.proto.table.YdbTable.SequenceDescription) defaultValue_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.ColumnMeta)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.ColumnMeta other = (tech.ydb.proto.table.YdbTable.ColumnMeta) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (!getFamily()
.equals(other.getFamily())) return false;
if (hasNotNull() != other.hasNotNull()) return false;
if (hasNotNull()) {
if (getNotNull()
!= other.getNotNull()) return false;
}
if (!getDefaultValueCase().equals(other.getDefaultValueCase())) return false;
switch (defaultValueCase_) {
case 5:
if (!getFromLiteral()
.equals(other.getFromLiteral())) return false;
break;
case 6:
if (!getFromSequence()
.equals(other.getFromSequence())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
hash = (37 * hash) + FAMILY_FIELD_NUMBER;
hash = (53 * hash) + getFamily().hashCode();
if (hasNotNull()) {
hash = (37 * hash) + NOT_NULL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNotNull());
}
switch (defaultValueCase_) {
case 5:
hash = (37 * hash) + FROM_LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getFromLiteral().hashCode();
break;
case 6:
hash = (37 * hash) + FROM_SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + getFromSequence().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta 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 tech.ydb.proto.table.YdbTable.ColumnMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta 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 tech.ydb.proto.table.YdbTable.ColumnMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta 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(tech.ydb.proto.table.YdbTable.ColumnMeta 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 Ydb.Table.ColumnMeta}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ColumnMeta)
tech.ydb.proto.table.YdbTable.ColumnMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ColumnMeta.class, tech.ydb.proto.table.YdbTable.ColumnMeta.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.ColumnMeta.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTypeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
type_ = null;
if (typeBuilder_ != null) {
typeBuilder_.dispose();
typeBuilder_ = null;
}
family_ = "";
notNull_ = false;
if (fromLiteralBuilder_ != null) {
fromLiteralBuilder_.clear();
}
if (fromSequenceBuilder_ != null) {
fromSequenceBuilder_.clear();
}
defaultValueCase_ = 0;
defaultValue_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnMeta getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.ColumnMeta.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnMeta build() {
tech.ydb.proto.table.YdbTable.ColumnMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnMeta buildPartial() {
tech.ydb.proto.table.YdbTable.ColumnMeta result = new tech.ydb.proto.table.YdbTable.ColumnMeta(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.ColumnMeta result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.type_ = typeBuilder_ == null
? type_
: typeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.family_ = family_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.notNull_ = notNull_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(tech.ydb.proto.table.YdbTable.ColumnMeta result) {
result.defaultValueCase_ = defaultValueCase_;
result.defaultValue_ = this.defaultValue_;
if (defaultValueCase_ == 5 &&
fromLiteralBuilder_ != null) {
result.defaultValue_ = fromLiteralBuilder_.build();
}
if (defaultValueCase_ == 6 &&
fromSequenceBuilder_ != null) {
result.defaultValue_ = fromSequenceBuilder_.build();
}
}
@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 tech.ydb.proto.table.YdbTable.ColumnMeta) {
return mergeFrom((tech.ydb.proto.table.YdbTable.ColumnMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.ColumnMeta other) {
if (other == tech.ydb.proto.table.YdbTable.ColumnMeta.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasType()) {
mergeType(other.getType());
}
if (!other.getFamily().isEmpty()) {
family_ = other.family_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasNotNull()) {
setNotNull(other.getNotNull());
}
switch (other.getDefaultValueCase()) {
case FROM_LITERAL: {
mergeFromLiteral(other.getFromLiteral());
break;
}
case FROM_SEQUENCE: {
mergeFromSequence(other.getFromSequence());
break;
}
case DEFAULTVALUE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getTypeFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
family_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
notNull_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getFromLiteralFieldBuilder().getBuilder(),
extensionRegistry);
defaultValueCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getFromSequenceFieldBuilder().getBuilder(),
extensionRegistry);
defaultValueCase_ = 6;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int defaultValueCase_ = 0;
private java.lang.Object defaultValue_;
public DefaultValueCase
getDefaultValueCase() {
return DefaultValueCase.forNumber(
defaultValueCase_);
}
public Builder clearDefaultValue() {
defaultValueCase_ = 0;
defaultValue_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Name of column
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of column
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of column
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Name of column
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Name of column
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private tech.ydb.proto.ValueProtos.Type type_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.Type, tech.ydb.proto.ValueProtos.Type.Builder, tech.ydb.proto.ValueProtos.TypeOrBuilder> typeBuilder_;
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
public boolean hasType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return The type.
*/
public tech.ydb.proto.ValueProtos.Type getType() {
if (typeBuilder_ == null) {
return type_ == null ? tech.ydb.proto.ValueProtos.Type.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder setType(tech.ydb.proto.ValueProtos.Type value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
} else {
typeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder setType(
tech.ydb.proto.ValueProtos.Type.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder mergeType(tech.ydb.proto.ValueProtos.Type value) {
if (typeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
type_ != null &&
type_ != tech.ydb.proto.ValueProtos.Type.getDefaultInstance()) {
getTypeBuilder().mergeFrom(value);
} else {
type_ = value;
}
} else {
typeBuilder_.mergeFrom(value);
}
if (type_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = null;
if (typeBuilder_ != null) {
typeBuilder_.dispose();
typeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public tech.ydb.proto.ValueProtos.Type.Builder getTypeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public tech.ydb.proto.ValueProtos.TypeOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
tech.ydb.proto.ValueProtos.Type.getDefaultInstance() : type_;
}
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.Type, tech.ydb.proto.ValueProtos.Type.Builder, tech.ydb.proto.ValueProtos.TypeOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.Type, tech.ydb.proto.ValueProtos.Type.Builder, tech.ydb.proto.ValueProtos.TypeOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
private java.lang.Object family_ = "";
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The family.
*/
public java.lang.String getFamily() {
java.lang.Object ref = family_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
family_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The bytes for family.
*/
public com.google.protobuf.ByteString
getFamilyBytes() {
java.lang.Object ref = family_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
family_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Column family name of the column
*
*
* string family = 3;
* @param value The family to set.
* @return This builder for chaining.
*/
public Builder setFamily(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
family_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return This builder for chaining.
*/
public Builder clearFamily() {
family_ = getDefaultInstance().getFamily();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Column family name of the column
*
*
* string family = 3;
* @param value The bytes for family to set.
* @return This builder for chaining.
*/
public Builder setFamilyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
family_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private boolean notNull_ ;
/**
*
* Column nullability
*
*
* optional bool not_null = 4;
* @return Whether the notNull field is set.
*/
@java.lang.Override
public boolean hasNotNull() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Column nullability
*
*
* optional bool not_null = 4;
* @return The notNull.
*/
@java.lang.Override
public boolean getNotNull() {
return notNull_;
}
/**
*
* Column nullability
*
*
* optional bool not_null = 4;
* @param value The notNull to set.
* @return This builder for chaining.
*/
public Builder setNotNull(boolean value) {
notNull_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Column nullability
*
*
* optional bool not_null = 4;
* @return This builder for chaining.
*/
public Builder clearNotNull() {
bitField0_ = (bitField0_ & ~0x00000008);
notNull_ = false;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.TypedValue, tech.ydb.proto.ValueProtos.TypedValue.Builder, tech.ydb.proto.ValueProtos.TypedValueOrBuilder> fromLiteralBuilder_;
/**
* .Ydb.TypedValue from_literal = 5;
* @return Whether the fromLiteral field is set.
*/
@java.lang.Override
public boolean hasFromLiteral() {
return defaultValueCase_ == 5;
}
/**
* .Ydb.TypedValue from_literal = 5;
* @return The fromLiteral.
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValue getFromLiteral() {
if (fromLiteralBuilder_ == null) {
if (defaultValueCase_ == 5) {
return (tech.ydb.proto.ValueProtos.TypedValue) defaultValue_;
}
return tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance();
} else {
if (defaultValueCase_ == 5) {
return fromLiteralBuilder_.getMessage();
}
return tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance();
}
}
/**
* .Ydb.TypedValue from_literal = 5;
*/
public Builder setFromLiteral(tech.ydb.proto.ValueProtos.TypedValue value) {
if (fromLiteralBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultValue_ = value;
onChanged();
} else {
fromLiteralBuilder_.setMessage(value);
}
defaultValueCase_ = 5;
return this;
}
/**
* .Ydb.TypedValue from_literal = 5;
*/
public Builder setFromLiteral(
tech.ydb.proto.ValueProtos.TypedValue.Builder builderForValue) {
if (fromLiteralBuilder_ == null) {
defaultValue_ = builderForValue.build();
onChanged();
} else {
fromLiteralBuilder_.setMessage(builderForValue.build());
}
defaultValueCase_ = 5;
return this;
}
/**
* .Ydb.TypedValue from_literal = 5;
*/
public Builder mergeFromLiteral(tech.ydb.proto.ValueProtos.TypedValue value) {
if (fromLiteralBuilder_ == null) {
if (defaultValueCase_ == 5 &&
defaultValue_ != tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance()) {
defaultValue_ = tech.ydb.proto.ValueProtos.TypedValue.newBuilder((tech.ydb.proto.ValueProtos.TypedValue) defaultValue_)
.mergeFrom(value).buildPartial();
} else {
defaultValue_ = value;
}
onChanged();
} else {
if (defaultValueCase_ == 5) {
fromLiteralBuilder_.mergeFrom(value);
} else {
fromLiteralBuilder_.setMessage(value);
}
}
defaultValueCase_ = 5;
return this;
}
/**
* .Ydb.TypedValue from_literal = 5;
*/
public Builder clearFromLiteral() {
if (fromLiteralBuilder_ == null) {
if (defaultValueCase_ == 5) {
defaultValueCase_ = 0;
defaultValue_ = null;
onChanged();
}
} else {
if (defaultValueCase_ == 5) {
defaultValueCase_ = 0;
defaultValue_ = null;
}
fromLiteralBuilder_.clear();
}
return this;
}
/**
* .Ydb.TypedValue from_literal = 5;
*/
public tech.ydb.proto.ValueProtos.TypedValue.Builder getFromLiteralBuilder() {
return getFromLiteralFieldBuilder().getBuilder();
}
/**
* .Ydb.TypedValue from_literal = 5;
*/
@java.lang.Override
public tech.ydb.proto.ValueProtos.TypedValueOrBuilder getFromLiteralOrBuilder() {
if ((defaultValueCase_ == 5) && (fromLiteralBuilder_ != null)) {
return fromLiteralBuilder_.getMessageOrBuilder();
} else {
if (defaultValueCase_ == 5) {
return (tech.ydb.proto.ValueProtos.TypedValue) defaultValue_;
}
return tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance();
}
}
/**
* .Ydb.TypedValue from_literal = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.TypedValue, tech.ydb.proto.ValueProtos.TypedValue.Builder, tech.ydb.proto.ValueProtos.TypedValueOrBuilder>
getFromLiteralFieldBuilder() {
if (fromLiteralBuilder_ == null) {
if (!(defaultValueCase_ == 5)) {
defaultValue_ = tech.ydb.proto.ValueProtos.TypedValue.getDefaultInstance();
}
fromLiteralBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.ValueProtos.TypedValue, tech.ydb.proto.ValueProtos.TypedValue.Builder, tech.ydb.proto.ValueProtos.TypedValueOrBuilder>(
(tech.ydb.proto.ValueProtos.TypedValue) defaultValue_,
getParentForChildren(),
isClean());
defaultValue_ = null;
}
defaultValueCase_ = 5;
onChanged();
return fromLiteralBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.SequenceDescription, tech.ydb.proto.table.YdbTable.SequenceDescription.Builder, tech.ydb.proto.table.YdbTable.SequenceDescriptionOrBuilder> fromSequenceBuilder_;
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
* @return Whether the fromSequence field is set.
*/
@java.lang.Override
public boolean hasFromSequence() {
return defaultValueCase_ == 6;
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
* @return The fromSequence.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescription getFromSequence() {
if (fromSequenceBuilder_ == null) {
if (defaultValueCase_ == 6) {
return (tech.ydb.proto.table.YdbTable.SequenceDescription) defaultValue_;
}
return tech.ydb.proto.table.YdbTable.SequenceDescription.getDefaultInstance();
} else {
if (defaultValueCase_ == 6) {
return fromSequenceBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.SequenceDescription.getDefaultInstance();
}
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
*/
public Builder setFromSequence(tech.ydb.proto.table.YdbTable.SequenceDescription value) {
if (fromSequenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultValue_ = value;
onChanged();
} else {
fromSequenceBuilder_.setMessage(value);
}
defaultValueCase_ = 6;
return this;
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
*/
public Builder setFromSequence(
tech.ydb.proto.table.YdbTable.SequenceDescription.Builder builderForValue) {
if (fromSequenceBuilder_ == null) {
defaultValue_ = builderForValue.build();
onChanged();
} else {
fromSequenceBuilder_.setMessage(builderForValue.build());
}
defaultValueCase_ = 6;
return this;
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
*/
public Builder mergeFromSequence(tech.ydb.proto.table.YdbTable.SequenceDescription value) {
if (fromSequenceBuilder_ == null) {
if (defaultValueCase_ == 6 &&
defaultValue_ != tech.ydb.proto.table.YdbTable.SequenceDescription.getDefaultInstance()) {
defaultValue_ = tech.ydb.proto.table.YdbTable.SequenceDescription.newBuilder((tech.ydb.proto.table.YdbTable.SequenceDescription) defaultValue_)
.mergeFrom(value).buildPartial();
} else {
defaultValue_ = value;
}
onChanged();
} else {
if (defaultValueCase_ == 6) {
fromSequenceBuilder_.mergeFrom(value);
} else {
fromSequenceBuilder_.setMessage(value);
}
}
defaultValueCase_ = 6;
return this;
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
*/
public Builder clearFromSequence() {
if (fromSequenceBuilder_ == null) {
if (defaultValueCase_ == 6) {
defaultValueCase_ = 0;
defaultValue_ = null;
onChanged();
}
} else {
if (defaultValueCase_ == 6) {
defaultValueCase_ = 0;
defaultValue_ = null;
}
fromSequenceBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
*/
public tech.ydb.proto.table.YdbTable.SequenceDescription.Builder getFromSequenceBuilder() {
return getFromSequenceFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.SequenceDescriptionOrBuilder getFromSequenceOrBuilder() {
if ((defaultValueCase_ == 6) && (fromSequenceBuilder_ != null)) {
return fromSequenceBuilder_.getMessageOrBuilder();
} else {
if (defaultValueCase_ == 6) {
return (tech.ydb.proto.table.YdbTable.SequenceDescription) defaultValue_;
}
return tech.ydb.proto.table.YdbTable.SequenceDescription.getDefaultInstance();
}
}
/**
* .Ydb.Table.SequenceDescription from_sequence = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.SequenceDescription, tech.ydb.proto.table.YdbTable.SequenceDescription.Builder, tech.ydb.proto.table.YdbTable.SequenceDescriptionOrBuilder>
getFromSequenceFieldBuilder() {
if (fromSequenceBuilder_ == null) {
if (!(defaultValueCase_ == 6)) {
defaultValue_ = tech.ydb.proto.table.YdbTable.SequenceDescription.getDefaultInstance();
}
fromSequenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.SequenceDescription, tech.ydb.proto.table.YdbTable.SequenceDescription.Builder, tech.ydb.proto.table.YdbTable.SequenceDescriptionOrBuilder>(
(tech.ydb.proto.table.YdbTable.SequenceDescription) defaultValue_,
getParentForChildren(),
isClean());
defaultValue_ = null;
}
defaultValueCase_ = 6;
onChanged();
return fromSequenceBuilder_;
}
@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:Ydb.Table.ColumnMeta)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ColumnMeta)
private static final tech.ydb.proto.table.YdbTable.ColumnMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.ColumnMeta();
}
public static tech.ydb.proto.table.YdbTable.ColumnMeta getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ColumnMeta parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ColumnMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DateTypeColumnModeSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.DateTypeColumnModeSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The columnName.
*/
java.lang.String getColumnName();
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
com.google.protobuf.ByteString
getColumnNameBytes();
/**
* uint32 expire_after_seconds = 2;
* @return The expireAfterSeconds.
*/
int getExpireAfterSeconds();
}
/**
*
* The row will be considered as expired at the moment of time, when the value
* stored in <column_name> is less than or equal to the current time (in epoch
* time format), and <expire_after_seconds> has passed since that moment;
* i.e. the expiration threshold is the value of <column_name> plus <expire_after_seconds>.
*
*
* Protobuf type {@code Ydb.Table.DateTypeColumnModeSettings}
*/
public static final class DateTypeColumnModeSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.DateTypeColumnModeSettings)
DateTypeColumnModeSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DateTypeColumnModeSettings.newBuilder() to construct.
private DateTypeColumnModeSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DateTypeColumnModeSettings() {
columnName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DateTypeColumnModeSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.class, tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.Builder.class);
}
public static final int COLUMN_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object columnName_ = "";
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The columnName.
*/
@java.lang.Override
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnName_ = s;
return s;
}
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getColumnNameBytes() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPIRE_AFTER_SECONDS_FIELD_NUMBER = 2;
private int expireAfterSeconds_ = 0;
/**
* uint32 expire_after_seconds = 2;
* @return The expireAfterSeconds.
*/
@java.lang.Override
public int getExpireAfterSeconds() {
return expireAfterSeconds_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_);
}
if (expireAfterSeconds_ != 0) {
output.writeUInt32(2, expireAfterSeconds_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_);
}
if (expireAfterSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, expireAfterSeconds_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings other = (tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) obj;
if (!getColumnName()
.equals(other.getColumnName())) return false;
if (getExpireAfterSeconds()
!= other.getExpireAfterSeconds()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + COLUMN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getColumnName().hashCode();
hash = (37 * hash) + EXPIRE_AFTER_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getExpireAfterSeconds();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings 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 tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings 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 tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings 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(tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings 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;
}
/**
*
* The row will be considered as expired at the moment of time, when the value
* stored in <column_name> is less than or equal to the current time (in epoch
* time format), and <expire_after_seconds> has passed since that moment;
* i.e. the expiration threshold is the value of <column_name> plus <expire_after_seconds>.
*
*
* Protobuf type {@code Ydb.Table.DateTypeColumnModeSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.DateTypeColumnModeSettings)
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.class, tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
columnName_ = "";
expireAfterSeconds_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings build() {
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings buildPartial() {
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings result = new tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.columnName_ = columnName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.expireAfterSeconds_ = expireAfterSeconds_;
}
}
@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 tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) {
return mergeFrom((tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings other) {
if (other == tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance()) return this;
if (!other.getColumnName().isEmpty()) {
columnName_ = other.columnName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getExpireAfterSeconds() != 0) {
setExpireAfterSeconds(other.getExpireAfterSeconds());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
columnName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
expireAfterSeconds_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object columnName_ = "";
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The columnName.
*/
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
public com.google.protobuf.ByteString
getColumnNameBytes() {
java.lang.Object ref = columnName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @param value The columnName to set.
* @return This builder for chaining.
*/
public Builder setColumnName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
columnName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return This builder for chaining.
*/
public Builder clearColumnName() {
columnName_ = getDefaultInstance().getColumnName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @param value The bytes for columnName to set.
* @return This builder for chaining.
*/
public Builder setColumnNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
columnName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int expireAfterSeconds_ ;
/**
* uint32 expire_after_seconds = 2;
* @return The expireAfterSeconds.
*/
@java.lang.Override
public int getExpireAfterSeconds() {
return expireAfterSeconds_;
}
/**
* uint32 expire_after_seconds = 2;
* @param value The expireAfterSeconds to set.
* @return This builder for chaining.
*/
public Builder setExpireAfterSeconds(int value) {
expireAfterSeconds_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* uint32 expire_after_seconds = 2;
* @return This builder for chaining.
*/
public Builder clearExpireAfterSeconds() {
bitField0_ = (bitField0_ & ~0x00000002);
expireAfterSeconds_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.DateTypeColumnModeSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.DateTypeColumnModeSettings)
private static final tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings();
}
public static tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DateTypeColumnModeSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueSinceUnixEpochModeSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ValueSinceUnixEpochModeSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The columnName.
*/
java.lang.String getColumnName();
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
com.google.protobuf.ByteString
getColumnNameBytes();
/**
*
* Interpretation of the value stored in <column_name>
*
*
* .Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;
* @return The enum numeric value on the wire for columnUnit.
*/
int getColumnUnitValue();
/**
*
* Interpretation of the value stored in <column_name>
*
*
* .Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;
* @return The columnUnit.
*/
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit getColumnUnit();
/**
*
* This option is always interpreted as seconds regardless of the
* <column_unit> value.
*
*
* uint32 expire_after_seconds = 3;
* @return The expireAfterSeconds.
*/
int getExpireAfterSeconds();
}
/**
*
* Same as DateTypeColumnModeSettings (above), but useful when type of the
* value stored in <column_name> is not a date type.
*
*
* Protobuf type {@code Ydb.Table.ValueSinceUnixEpochModeSettings}
*/
public static final class ValueSinceUnixEpochModeSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ValueSinceUnixEpochModeSettings)
ValueSinceUnixEpochModeSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueSinceUnixEpochModeSettings.newBuilder() to construct.
private ValueSinceUnixEpochModeSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueSinceUnixEpochModeSettings() {
columnName_ = "";
columnUnit_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueSinceUnixEpochModeSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.class, tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.ValueSinceUnixEpochModeSettings.Unit}
*/
public enum Unit
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNIT_UNSPECIFIED = 0;
*/
UNIT_UNSPECIFIED(0),
/**
* UNIT_SECONDS = 1;
*/
UNIT_SECONDS(1),
/**
* UNIT_MILLISECONDS = 2;
*/
UNIT_MILLISECONDS(2),
/**
* UNIT_MICROSECONDS = 3;
*/
UNIT_MICROSECONDS(3),
/**
* UNIT_NANOSECONDS = 4;
*/
UNIT_NANOSECONDS(4),
UNRECOGNIZED(-1),
;
/**
* UNIT_UNSPECIFIED = 0;
*/
public static final int UNIT_UNSPECIFIED_VALUE = 0;
/**
* UNIT_SECONDS = 1;
*/
public static final int UNIT_SECONDS_VALUE = 1;
/**
* UNIT_MILLISECONDS = 2;
*/
public static final int UNIT_MILLISECONDS_VALUE = 2;
/**
* UNIT_MICROSECONDS = 3;
*/
public static final int UNIT_MICROSECONDS_VALUE = 3;
/**
* UNIT_NANOSECONDS = 4;
*/
public static final int UNIT_NANOSECONDS_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Unit valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Unit forNumber(int value) {
switch (value) {
case 0: return UNIT_UNSPECIFIED;
case 1: return UNIT_SECONDS;
case 2: return UNIT_MILLISECONDS;
case 3: return UNIT_MICROSECONDS;
case 4: return UNIT_NANOSECONDS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Unit> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Unit findValueByNumber(int number) {
return Unit.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDescriptor().getEnumTypes().get(0);
}
private static final Unit[] VALUES = values();
public static Unit valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Unit(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.ValueSinceUnixEpochModeSettings.Unit)
}
public static final int COLUMN_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object columnName_ = "";
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The columnName.
*/
@java.lang.Override
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnName_ = s;
return s;
}
}
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getColumnNameBytes() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COLUMN_UNIT_FIELD_NUMBER = 2;
private int columnUnit_ = 0;
/**
*
* Interpretation of the value stored in <column_name>
*
*
* .Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;
* @return The enum numeric value on the wire for columnUnit.
*/
@java.lang.Override public int getColumnUnitValue() {
return columnUnit_;
}
/**
*
* Interpretation of the value stored in <column_name>
*
*
* .Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;
* @return The columnUnit.
*/
@java.lang.Override public tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit getColumnUnit() {
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit result = tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit.forNumber(columnUnit_);
return result == null ? tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit.UNRECOGNIZED : result;
}
public static final int EXPIRE_AFTER_SECONDS_FIELD_NUMBER = 3;
private int expireAfterSeconds_ = 0;
/**
*
* This option is always interpreted as seconds regardless of the
* <column_unit> value.
*
*
* uint32 expire_after_seconds = 3;
* @return The expireAfterSeconds.
*/
@java.lang.Override
public int getExpireAfterSeconds() {
return expireAfterSeconds_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_);
}
if (columnUnit_ != tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit.UNIT_UNSPECIFIED.getNumber()) {
output.writeEnum(2, columnUnit_);
}
if (expireAfterSeconds_ != 0) {
output.writeUInt32(3, expireAfterSeconds_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_);
}
if (columnUnit_ != tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit.UNIT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, columnUnit_);
}
if (expireAfterSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, expireAfterSeconds_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings other = (tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) obj;
if (!getColumnName()
.equals(other.getColumnName())) return false;
if (columnUnit_ != other.columnUnit_) return false;
if (getExpireAfterSeconds()
!= other.getExpireAfterSeconds()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + COLUMN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getColumnName().hashCode();
hash = (37 * hash) + COLUMN_UNIT_FIELD_NUMBER;
hash = (53 * hash) + columnUnit_;
hash = (37 * hash) + EXPIRE_AFTER_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getExpireAfterSeconds();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings 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 tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings 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 tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings 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(tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings 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;
}
/**
*
* Same as DateTypeColumnModeSettings (above), but useful when type of the
* value stored in <column_name> is not a date type.
*
*
* Protobuf type {@code Ydb.Table.ValueSinceUnixEpochModeSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ValueSinceUnixEpochModeSettings)
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.class, tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
columnName_ = "";
columnUnit_ = 0;
expireAfterSeconds_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings build() {
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings buildPartial() {
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings result = new tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.columnName_ = columnName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.columnUnit_ = columnUnit_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.expireAfterSeconds_ = expireAfterSeconds_;
}
}
@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 tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) {
return mergeFrom((tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings other) {
if (other == tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance()) return this;
if (!other.getColumnName().isEmpty()) {
columnName_ = other.columnName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.columnUnit_ != 0) {
setColumnUnitValue(other.getColumnUnitValue());
}
if (other.getExpireAfterSeconds() != 0) {
setExpireAfterSeconds(other.getExpireAfterSeconds());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
columnName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
columnUnit_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
expireAfterSeconds_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object columnName_ = "";
/**
*