Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* 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 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();
/**
*
* 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),
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 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 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));
}
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();
}
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 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 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();
}
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_ & 0x00000010) != 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();
}
}
@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_ |= 0x00000010;
} 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 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
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 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_ |= 0x00000010;
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_ |= 0x00000010;
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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
* 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_ |= 0x00000010;
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.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),
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 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 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_);
}
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_);
}
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 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 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();
}
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_ & 0x00000010) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
dataColumns_.makeImmutable();
result.dataColumns_ = dataColumns_;
}
if (((from_bitField0_ & 0x00000040) != 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();
}
}
@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_ |= 0x00000020;
} 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 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_ |= 0x00000010;
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_ |= 0x00000040;
break;
} // case 56
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;
}
/**
*
*
* 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 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_ |= 0x00000010;
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_ |= 0x00000010;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000010);
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_ |= 0x00000020;
}
/**
*
* 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_ |= 0x00000020;
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_ |= 0x00000020;
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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
* 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_ |= 0x00000020;
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_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Size of index data in bytes
*
*
* uint64 size_bytes = 7;
* @return This builder for chaining.
*/
public Builder clearSizeBytes() {
bitField0_ = (bitField0_ & ~0x00000040);
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),
/**
*
*
* map<string, string> attributes = 7 [(.Ydb.length) = { ... }
*/
java.lang.String getAttributesOrThrow(
java.lang.String key);
}
/**
* 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;
}
@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
*
*
* 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);
}
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);
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__);
}
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 (!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 = (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();
}
}
@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();
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();
}
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;
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
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
*
* 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)
}
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();
}
/**
*
*
* 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);
}
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);
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__);
}
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 (!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 = (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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
mode_ = 0;
format_ = 0;
state_ = 0;
virtualTimestamps_ = false;
internalGetMutableAttributes().clear();
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();
}
}
@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;
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
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
*
* 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)
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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 {
/**
*
*
* 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);
}
/**
*
* 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.
*
* 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 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();
/**
*
*
* 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();
}
/**
* 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_;
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;
}
}
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_);
}
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_);
}
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 (!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();
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_ = "";
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); }
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_;
}
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.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();
}
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
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 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;
}
/**
*
*
* 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;
}
@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 {
/**
*
*
* 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_ = "";
/**
*
*
* 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 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>
*
* 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
*
* 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.
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* 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 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;
* @param value The enum numeric value on the wire for columnUnit to set.
* @return This builder for chaining.
*/
public Builder setColumnUnitValue(int value) {
columnUnit_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* 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;
}
/**
*
* Interpretation of the value stored in <column_name>
*
*
* .Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;
* @param value The columnUnit to set.
* @return This builder for chaining.
*/
public Builder setColumnUnit(tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
columnUnit_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Interpretation of the value stored in <column_name>
*
*
* .Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;
* @return This builder for chaining.
*/
public Builder clearColumnUnit() {
bitField0_ = (bitField0_ & ~0x00000002);
columnUnit_ = 0;
onChanged();
return this;
}
private int expireAfterSeconds_ ;
/**
*
* 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_;
}
/**
*
* This option is always interpreted as seconds regardless of the
* <column_unit> value.
*
*
* uint32 expire_after_seconds = 3;
* @param value The expireAfterSeconds to set.
* @return This builder for chaining.
*/
public Builder setExpireAfterSeconds(int value) {
expireAfterSeconds_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* This option is always interpreted as seconds regardless of the
* <column_unit> value.
*
*
* uint32 expire_after_seconds = 3;
* @return This builder for chaining.
*/
public Builder clearExpireAfterSeconds() {
bitField0_ = (bitField0_ & ~0x00000004);
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.ValueSinceUnixEpochModeSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ValueSinceUnixEpochModeSettings)
private static final tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings();
}
public static tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueSinceUnixEpochModeSettings 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.ValueSinceUnixEpochModeSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TtlSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.TtlSettings)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
* @return Whether the dateTypeColumn field is set.
*/
boolean hasDateTypeColumn();
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
* @return The dateTypeColumn.
*/
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings getDateTypeColumn();
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettingsOrBuilder getDateTypeColumnOrBuilder();
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
* @return Whether the valueSinceUnixEpoch field is set.
*/
boolean hasValueSinceUnixEpoch();
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
* @return The valueSinceUnixEpoch.
*/
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings getValueSinceUnixEpoch();
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder getValueSinceUnixEpochOrBuilder();
/**
*
* How often to run BRO on the same partition.
* BRO will not be started more often, but may be started less often.
*
*
* uint32 run_interval_seconds = 3;
* @return The runIntervalSeconds.
*/
int getRunIntervalSeconds();
tech.ydb.proto.table.YdbTable.TtlSettings.ModeCase getModeCase();
}
/**
* Protobuf type {@code Ydb.Table.TtlSettings}
*/
public static final class TtlSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.TtlSettings)
TtlSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TtlSettings.newBuilder() to construct.
private TtlSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TtlSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TtlSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TtlSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TtlSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TtlSettings.class, tech.ydb.proto.table.YdbTable.TtlSettings.Builder.class);
}
private int modeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object mode_;
public enum ModeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
DATE_TYPE_COLUMN(1),
VALUE_SINCE_UNIX_EPOCH(2),
MODE_NOT_SET(0);
private final int value;
private ModeCase(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 ModeCase valueOf(int value) {
return forNumber(value);
}
public static ModeCase forNumber(int value) {
switch (value) {
case 1: return DATE_TYPE_COLUMN;
case 2: return VALUE_SINCE_UNIX_EPOCH;
case 0: return MODE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ModeCase
getModeCase() {
return ModeCase.forNumber(
modeCase_);
}
public static final int DATE_TYPE_COLUMN_FIELD_NUMBER = 1;
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
* @return Whether the dateTypeColumn field is set.
*/
@java.lang.Override
public boolean hasDateTypeColumn() {
return modeCase_ == 1;
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
* @return The dateTypeColumn.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings getDateTypeColumn() {
if (modeCase_ == 1) {
return (tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) mode_;
}
return tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettingsOrBuilder getDateTypeColumnOrBuilder() {
if (modeCase_ == 1) {
return (tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) mode_;
}
return tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
public static final int VALUE_SINCE_UNIX_EPOCH_FIELD_NUMBER = 2;
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
* @return Whether the valueSinceUnixEpoch field is set.
*/
@java.lang.Override
public boolean hasValueSinceUnixEpoch() {
return modeCase_ == 2;
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
* @return The valueSinceUnixEpoch.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings getValueSinceUnixEpoch() {
if (modeCase_ == 2) {
return (tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_;
}
return tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder getValueSinceUnixEpochOrBuilder() {
if (modeCase_ == 2) {
return (tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_;
}
return tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
public static final int RUN_INTERVAL_SECONDS_FIELD_NUMBER = 3;
private int runIntervalSeconds_ = 0;
/**
*
* How often to run BRO on the same partition.
* BRO will not be started more often, but may be started less often.
*
*
* uint32 run_interval_seconds = 3;
* @return The runIntervalSeconds.
*/
@java.lang.Override
public int getRunIntervalSeconds() {
return runIntervalSeconds_;
}
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 (modeCase_ == 1) {
output.writeMessage(1, (tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) mode_);
}
if (modeCase_ == 2) {
output.writeMessage(2, (tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_);
}
if (runIntervalSeconds_ != 0) {
output.writeUInt32(3, runIntervalSeconds_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (modeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) mode_);
}
if (modeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_);
}
if (runIntervalSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, runIntervalSeconds_);
}
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.TtlSettings)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.TtlSettings other = (tech.ydb.proto.table.YdbTable.TtlSettings) obj;
if (getRunIntervalSeconds()
!= other.getRunIntervalSeconds()) return false;
if (!getModeCase().equals(other.getModeCase())) return false;
switch (modeCase_) {
case 1:
if (!getDateTypeColumn()
.equals(other.getDateTypeColumn())) return false;
break;
case 2:
if (!getValueSinceUnixEpoch()
.equals(other.getValueSinceUnixEpoch())) 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) + RUN_INTERVAL_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getRunIntervalSeconds();
switch (modeCase_) {
case 1:
hash = (37 * hash) + DATE_TYPE_COLUMN_FIELD_NUMBER;
hash = (53 * hash) + getDateTypeColumn().hashCode();
break;
case 2:
hash = (37 * hash) + VALUE_SINCE_UNIX_EPOCH_FIELD_NUMBER;
hash = (53 * hash) + getValueSinceUnixEpoch().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.TtlSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TtlSettings 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.TtlSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TtlSettings 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.TtlSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.TtlSettings 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.TtlSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TtlSettings 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.TtlSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.TtlSettings 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.TtlSettings 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.TtlSettings 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.TtlSettings 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.TtlSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.TtlSettings)
tech.ydb.proto.table.YdbTable.TtlSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TtlSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TtlSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.TtlSettings.class, tech.ydb.proto.table.YdbTable.TtlSettings.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.TtlSettings.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (dateTypeColumnBuilder_ != null) {
dateTypeColumnBuilder_.clear();
}
if (valueSinceUnixEpochBuilder_ != null) {
valueSinceUnixEpochBuilder_.clear();
}
runIntervalSeconds_ = 0;
modeCase_ = 0;
mode_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_TtlSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TtlSettings getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.TtlSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TtlSettings build() {
tech.ydb.proto.table.YdbTable.TtlSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.TtlSettings buildPartial() {
tech.ydb.proto.table.YdbTable.TtlSettings result = new tech.ydb.proto.table.YdbTable.TtlSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.TtlSettings result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.runIntervalSeconds_ = runIntervalSeconds_;
}
}
private void buildPartialOneofs(tech.ydb.proto.table.YdbTable.TtlSettings result) {
result.modeCase_ = modeCase_;
result.mode_ = this.mode_;
if (modeCase_ == 1 &&
dateTypeColumnBuilder_ != null) {
result.mode_ = dateTypeColumnBuilder_.build();
}
if (modeCase_ == 2 &&
valueSinceUnixEpochBuilder_ != null) {
result.mode_ = valueSinceUnixEpochBuilder_.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.TtlSettings) {
return mergeFrom((tech.ydb.proto.table.YdbTable.TtlSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.TtlSettings other) {
if (other == tech.ydb.proto.table.YdbTable.TtlSettings.getDefaultInstance()) return this;
if (other.getRunIntervalSeconds() != 0) {
setRunIntervalSeconds(other.getRunIntervalSeconds());
}
switch (other.getModeCase()) {
case DATE_TYPE_COLUMN: {
mergeDateTypeColumn(other.getDateTypeColumn());
break;
}
case VALUE_SINCE_UNIX_EPOCH: {
mergeValueSinceUnixEpoch(other.getValueSinceUnixEpoch());
break;
}
case MODE_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: {
input.readMessage(
getDateTypeColumnFieldBuilder().getBuilder(),
extensionRegistry);
modeCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getValueSinceUnixEpochFieldBuilder().getBuilder(),
extensionRegistry);
modeCase_ = 2;
break;
} // case 18
case 24: {
runIntervalSeconds_ = 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 modeCase_ = 0;
private java.lang.Object mode_;
public ModeCase
getModeCase() {
return ModeCase.forNumber(
modeCase_);
}
public Builder clearMode() {
modeCase_ = 0;
mode_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings, tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.Builder, tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettingsOrBuilder> dateTypeColumnBuilder_;
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
* @return Whether the dateTypeColumn field is set.
*/
@java.lang.Override
public boolean hasDateTypeColumn() {
return modeCase_ == 1;
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
* @return The dateTypeColumn.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings getDateTypeColumn() {
if (dateTypeColumnBuilder_ == null) {
if (modeCase_ == 1) {
return (tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) mode_;
}
return tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
} else {
if (modeCase_ == 1) {
return dateTypeColumnBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
public Builder setDateTypeColumn(tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings value) {
if (dateTypeColumnBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value;
onChanged();
} else {
dateTypeColumnBuilder_.setMessage(value);
}
modeCase_ = 1;
return this;
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
public Builder setDateTypeColumn(
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.Builder builderForValue) {
if (dateTypeColumnBuilder_ == null) {
mode_ = builderForValue.build();
onChanged();
} else {
dateTypeColumnBuilder_.setMessage(builderForValue.build());
}
modeCase_ = 1;
return this;
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
public Builder mergeDateTypeColumn(tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings value) {
if (dateTypeColumnBuilder_ == null) {
if (modeCase_ == 1 &&
mode_ != tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance()) {
mode_ = tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.newBuilder((tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) mode_)
.mergeFrom(value).buildPartial();
} else {
mode_ = value;
}
onChanged();
} else {
if (modeCase_ == 1) {
dateTypeColumnBuilder_.mergeFrom(value);
} else {
dateTypeColumnBuilder_.setMessage(value);
}
}
modeCase_ = 1;
return this;
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
public Builder clearDateTypeColumn() {
if (dateTypeColumnBuilder_ == null) {
if (modeCase_ == 1) {
modeCase_ = 0;
mode_ = null;
onChanged();
}
} else {
if (modeCase_ == 1) {
modeCase_ = 0;
mode_ = null;
}
dateTypeColumnBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
public tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.Builder getDateTypeColumnBuilder() {
return getDateTypeColumnFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettingsOrBuilder getDateTypeColumnOrBuilder() {
if ((modeCase_ == 1) && (dateTypeColumnBuilder_ != null)) {
return dateTypeColumnBuilder_.getMessageOrBuilder();
} else {
if (modeCase_ == 1) {
return (tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) mode_;
}
return tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings, tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.Builder, tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettingsOrBuilder>
getDateTypeColumnFieldBuilder() {
if (dateTypeColumnBuilder_ == null) {
if (!(modeCase_ == 1)) {
mode_ = tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
dateTypeColumnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings, tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings.Builder, tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettingsOrBuilder>(
(tech.ydb.proto.table.YdbTable.DateTypeColumnModeSettings) mode_,
getParentForChildren(),
isClean());
mode_ = null;
}
modeCase_ = 1;
onChanged();
return dateTypeColumnBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings, tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder, tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder> valueSinceUnixEpochBuilder_;
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
* @return Whether the valueSinceUnixEpoch field is set.
*/
@java.lang.Override
public boolean hasValueSinceUnixEpoch() {
return modeCase_ == 2;
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
* @return The valueSinceUnixEpoch.
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings getValueSinceUnixEpoch() {
if (valueSinceUnixEpochBuilder_ == null) {
if (modeCase_ == 2) {
return (tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_;
}
return tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
} else {
if (modeCase_ == 2) {
return valueSinceUnixEpochBuilder_.getMessage();
}
return tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
public Builder setValueSinceUnixEpoch(tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings value) {
if (valueSinceUnixEpochBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value;
onChanged();
} else {
valueSinceUnixEpochBuilder_.setMessage(value);
}
modeCase_ = 2;
return this;
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
public Builder setValueSinceUnixEpoch(
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder builderForValue) {
if (valueSinceUnixEpochBuilder_ == null) {
mode_ = builderForValue.build();
onChanged();
} else {
valueSinceUnixEpochBuilder_.setMessage(builderForValue.build());
}
modeCase_ = 2;
return this;
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
public Builder mergeValueSinceUnixEpoch(tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings value) {
if (valueSinceUnixEpochBuilder_ == null) {
if (modeCase_ == 2 &&
mode_ != tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance()) {
mode_ = tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.newBuilder((tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_)
.mergeFrom(value).buildPartial();
} else {
mode_ = value;
}
onChanged();
} else {
if (modeCase_ == 2) {
valueSinceUnixEpochBuilder_.mergeFrom(value);
} else {
valueSinceUnixEpochBuilder_.setMessage(value);
}
}
modeCase_ = 2;
return this;
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
public Builder clearValueSinceUnixEpoch() {
if (valueSinceUnixEpochBuilder_ == null) {
if (modeCase_ == 2) {
modeCase_ = 0;
mode_ = null;
onChanged();
}
} else {
if (modeCase_ == 2) {
modeCase_ = 0;
mode_ = null;
}
valueSinceUnixEpochBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
public tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder getValueSinceUnixEpochBuilder() {
return getValueSinceUnixEpochFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
@java.lang.Override
public tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder getValueSinceUnixEpochOrBuilder() {
if ((modeCase_ == 2) && (valueSinceUnixEpochBuilder_ != null)) {
return valueSinceUnixEpochBuilder_.getMessageOrBuilder();
} else {
if (modeCase_ == 2) {
return (tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_;
}
return tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings, tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder, tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder>
getValueSinceUnixEpochFieldBuilder() {
if (valueSinceUnixEpochBuilder_ == null) {
if (!(modeCase_ == 2)) {
mode_ = tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
valueSinceUnixEpochBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings, tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder, tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder>(
(tech.ydb.proto.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_,
getParentForChildren(),
isClean());
mode_ = null;
}
modeCase_ = 2;
onChanged();
return valueSinceUnixEpochBuilder_;
}
private int runIntervalSeconds_ ;
/**
*
* How often to run BRO on the same partition.
* BRO will not be started more often, but may be started less often.
*
*
* uint32 run_interval_seconds = 3;
* @return The runIntervalSeconds.
*/
@java.lang.Override
public int getRunIntervalSeconds() {
return runIntervalSeconds_;
}
/**
*
* How often to run BRO on the same partition.
* BRO will not be started more often, but may be started less often.
*
*
* uint32 run_interval_seconds = 3;
* @param value The runIntervalSeconds to set.
* @return This builder for chaining.
*/
public Builder setRunIntervalSeconds(int value) {
runIntervalSeconds_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* How often to run BRO on the same partition.
* BRO will not be started more often, but may be started less often.
*
*
* uint32 run_interval_seconds = 3;
* @return This builder for chaining.
*/
public Builder clearRunIntervalSeconds() {
bitField0_ = (bitField0_ & ~0x00000004);
runIntervalSeconds_ = 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.TtlSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.TtlSettings)
private static final tech.ydb.proto.table.YdbTable.TtlSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.TtlSettings();
}
public static tech.ydb.proto.table.YdbTable.TtlSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TtlSettings 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.TtlSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StorageSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.StorageSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* This specifies internal channel 0 commit log storage pool
* Fastest available storage recommended, negligible amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log0 = 1;
* @return Whether the tabletCommitLog0 field is set.
*/
boolean hasTabletCommitLog0();
/**
*
* This specifies internal channel 0 commit log storage pool
* Fastest available storage recommended, negligible amounts of short-lived data
*
* Optionally store large values in "external blobs"
* WARNING: DO NOT USE
* This feature is experimental and should not be used, restrictions apply:
* * Table cannot split/merge when this is enabled
* * Table cannot be copied or backed up when this is enabled
* * This feature cannot be disabled once enabled for a table
*
*
* .Ydb.FeatureFlag.Status store_external_blobs = 5;
* @return The enum numeric value on the wire for storeExternalBlobs.
*/
int getStoreExternalBlobsValue();
/**
*
* Optionally store large values in "external blobs"
* WARNING: DO NOT USE
* This feature is experimental and should not be used, restrictions apply:
* * Table cannot split/merge when this is enabled
* * Table cannot be copied or backed up when this is enabled
* * This feature cannot be disabled once enabled for a table
*
*
* .Ydb.FeatureFlag.Status store_external_blobs = 5;
* @return The storeExternalBlobs.
*/
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getStoreExternalBlobs();
}
/**
* Protobuf type {@code Ydb.Table.StorageSettings}
*/
public static final class StorageSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.StorageSettings)
StorageSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageSettings.newBuilder() to construct.
private StorageSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StorageSettings() {
storeExternalBlobs_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StorageSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StorageSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StorageSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.StorageSettings.class, tech.ydb.proto.table.YdbTable.StorageSettings.Builder.class);
}
private int bitField0_;
public static final int TABLET_COMMIT_LOG0_FIELD_NUMBER = 1;
private tech.ydb.proto.table.YdbTable.StoragePool tabletCommitLog0_;
/**
*
* This specifies internal channel 0 commit log storage pool
* Fastest available storage recommended, negligible amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log0 = 1;
* @return Whether the tabletCommitLog0 field is set.
*/
@java.lang.Override
public boolean hasTabletCommitLog0() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This specifies internal channel 0 commit log storage pool
* Fastest available storage recommended, negligible amounts of short-lived data
*
*
* .Ydb.Table.StoragePool external = 4;
*/
@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 STORE_EXTERNAL_BLOBS_FIELD_NUMBER = 5;
private int storeExternalBlobs_ = 0;
/**
*
* Optionally store large values in "external blobs"
* WARNING: DO NOT USE
* This feature is experimental and should not be used, restrictions apply:
* * Table cannot split/merge when this is enabled
* * Table cannot be copied or backed up when this is enabled
* * This feature cannot be disabled once enabled for a table
*
*
* .Ydb.FeatureFlag.Status store_external_blobs = 5;
* @return The enum numeric value on the wire for storeExternalBlobs.
*/
@java.lang.Override public int getStoreExternalBlobsValue() {
return storeExternalBlobs_;
}
/**
*
* Optionally store large values in "external blobs"
* WARNING: DO NOT USE
* This feature is experimental and should not be used, restrictions apply:
* * Table cannot split/merge when this is enabled
* * Table cannot be copied or backed up when this is enabled
* * This feature cannot be disabled once enabled for a table
*
*
* .Ydb.FeatureFlag.Status store_external_blobs = 5;
* @return The storeExternalBlobs.
*/
@java.lang.Override public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getStoreExternalBlobs() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(storeExternalBlobs_);
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTabletCommitLog0());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getTabletCommitLog1());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getExternal());
}
if (storeExternalBlobs_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(5, storeExternalBlobs_);
}
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, getTabletCommitLog0());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTabletCommitLog1());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getExternal());
}
if (storeExternalBlobs_ != tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, storeExternalBlobs_);
}
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.StorageSettings)) {
return super.equals(obj);
}
tech.ydb.proto.table.YdbTable.StorageSettings other = (tech.ydb.proto.table.YdbTable.StorageSettings) obj;
if (hasTabletCommitLog0() != other.hasTabletCommitLog0()) return false;
if (hasTabletCommitLog0()) {
if (!getTabletCommitLog0()
.equals(other.getTabletCommitLog0())) return false;
}
if (hasTabletCommitLog1() != other.hasTabletCommitLog1()) return false;
if (hasTabletCommitLog1()) {
if (!getTabletCommitLog1()
.equals(other.getTabletCommitLog1())) return false;
}
if (hasExternal() != other.hasExternal()) return false;
if (hasExternal()) {
if (!getExternal()
.equals(other.getExternal())) return false;
}
if (storeExternalBlobs_ != other.storeExternalBlobs_) 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 (hasTabletCommitLog0()) {
hash = (37 * hash) + TABLET_COMMIT_LOG0_FIELD_NUMBER;
hash = (53 * hash) + getTabletCommitLog0().hashCode();
}
if (hasTabletCommitLog1()) {
hash = (37 * hash) + TABLET_COMMIT_LOG1_FIELD_NUMBER;
hash = (53 * hash) + getTabletCommitLog1().hashCode();
}
if (hasExternal()) {
hash = (37 * hash) + EXTERNAL_FIELD_NUMBER;
hash = (53 * hash) + getExternal().hashCode();
}
hash = (37 * hash) + STORE_EXTERNAL_BLOBS_FIELD_NUMBER;
hash = (53 * hash) + storeExternalBlobs_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.table.YdbTable.StorageSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.StorageSettings 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.StorageSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.StorageSettings 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.StorageSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.table.YdbTable.StorageSettings 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.StorageSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.StorageSettings 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.StorageSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.table.YdbTable.StorageSettings 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.StorageSettings 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.StorageSettings 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.StorageSettings 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.StorageSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.StorageSettings)
tech.ydb.proto.table.YdbTable.StorageSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StorageSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StorageSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.StorageSettings.class, tech.ydb.proto.table.YdbTable.StorageSettings.Builder.class);
}
// Construct using tech.ydb.proto.table.YdbTable.StorageSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTabletCommitLog0FieldBuilder();
getTabletCommitLog1FieldBuilder();
getExternalFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
tabletCommitLog0_ = null;
if (tabletCommitLog0Builder_ != null) {
tabletCommitLog0Builder_.dispose();
tabletCommitLog0Builder_ = null;
}
tabletCommitLog1_ = null;
if (tabletCommitLog1Builder_ != null) {
tabletCommitLog1Builder_.dispose();
tabletCommitLog1Builder_ = null;
}
external_ = null;
if (externalBuilder_ != null) {
externalBuilder_.dispose();
externalBuilder_ = null;
}
storeExternalBlobs_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_StorageSettings_descriptor;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StorageSettings getDefaultInstanceForType() {
return tech.ydb.proto.table.YdbTable.StorageSettings.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StorageSettings build() {
tech.ydb.proto.table.YdbTable.StorageSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.table.YdbTable.StorageSettings buildPartial() {
tech.ydb.proto.table.YdbTable.StorageSettings result = new tech.ydb.proto.table.YdbTable.StorageSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.table.YdbTable.StorageSettings result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.tabletCommitLog0_ = tabletCommitLog0Builder_ == null
? tabletCommitLog0_
: tabletCommitLog0Builder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.tabletCommitLog1_ = tabletCommitLog1Builder_ == null
? tabletCommitLog1_
: tabletCommitLog1Builder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.external_ = externalBuilder_ == null
? external_
: externalBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.storeExternalBlobs_ = storeExternalBlobs_;
}
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.StorageSettings) {
return mergeFrom((tech.ydb.proto.table.YdbTable.StorageSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.table.YdbTable.StorageSettings other) {
if (other == tech.ydb.proto.table.YdbTable.StorageSettings.getDefaultInstance()) return this;
if (other.hasTabletCommitLog0()) {
mergeTabletCommitLog0(other.getTabletCommitLog0());
}
if (other.hasTabletCommitLog1()) {
mergeTabletCommitLog1(other.getTabletCommitLog1());
}
if (other.hasExternal()) {
mergeExternal(other.getExternal());
}
if (other.storeExternalBlobs_ != 0) {
setStoreExternalBlobsValue(other.getStoreExternalBlobsValue());
}
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(
getTabletCommitLog0FieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getTabletCommitLog1FieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 34: {
input.readMessage(
getExternalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 34
case 40: {
storeExternalBlobs_ = input.readEnum();
bitField0_ |= 0x00000008;
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 tech.ydb.proto.table.YdbTable.StoragePool tabletCommitLog0_;
private com.google.protobuf.SingleFieldBuilderV3<
tech.ydb.proto.table.YdbTable.StoragePool, tech.ydb.proto.table.YdbTable.StoragePool.Builder, tech.ydb.proto.table.YdbTable.StoragePoolOrBuilder> tabletCommitLog0Builder_;
/**
*
* This specifies internal channel 0 commit log storage pool
* Fastest available storage recommended, negligible amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log0 = 1;
* @return Whether the tabletCommitLog0 field is set.
*/
public boolean hasTabletCommitLog0() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This specifies internal channel 0 commit log storage pool
* Fastest available storage recommended, negligible amounts of short-lived data
*
* Optionally store large values in "external blobs"
* WARNING: DO NOT USE
* This feature is experimental and should not be used, restrictions apply:
* * Table cannot split/merge when this is enabled
* * Table cannot be copied or backed up when this is enabled
* * This feature cannot be disabled once enabled for a table
*
*
* .Ydb.FeatureFlag.Status store_external_blobs = 5;
* @return The enum numeric value on the wire for storeExternalBlobs.
*/
@java.lang.Override public int getStoreExternalBlobsValue() {
return storeExternalBlobs_;
}
/**
*
* Optionally store large values in "external blobs"
* WARNING: DO NOT USE
* This feature is experimental and should not be used, restrictions apply:
* * Table cannot split/merge when this is enabled
* * Table cannot be copied or backed up when this is enabled
* * This feature cannot be disabled once enabled for a table
*
*
* .Ydb.FeatureFlag.Status store_external_blobs = 5;
* @param value The enum numeric value on the wire for storeExternalBlobs to set.
* @return This builder for chaining.
*/
public Builder setStoreExternalBlobsValue(int value) {
storeExternalBlobs_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Optionally store large values in "external blobs"
* WARNING: DO NOT USE
* This feature is experimental and should not be used, restrictions apply:
* * Table cannot split/merge when this is enabled
* * Table cannot be copied or backed up when this is enabled
* * This feature cannot be disabled once enabled for a table
*
*
* .Ydb.FeatureFlag.Status store_external_blobs = 5;
* @return The storeExternalBlobs.
*/
@java.lang.Override
public tech.ydb.proto.common.CommonProtos.FeatureFlag.Status getStoreExternalBlobs() {
tech.ydb.proto.common.CommonProtos.FeatureFlag.Status result = tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.forNumber(storeExternalBlobs_);
return result == null ? tech.ydb.proto.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
/**
*
* Optionally store large values in "external blobs"
* WARNING: DO NOT USE
* This feature is experimental and should not be used, restrictions apply:
* * Table cannot split/merge when this is enabled
* * Table cannot be copied or backed up when this is enabled
* * This feature cannot be disabled once enabled for a table
*
*
* .Ydb.FeatureFlag.Status store_external_blobs = 5;
* @param value The storeExternalBlobs to set.
* @return This builder for chaining.
*/
public Builder setStoreExternalBlobs(tech.ydb.proto.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
storeExternalBlobs_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Optionally store large values in "external blobs"
* WARNING: DO NOT USE
* This feature is experimental and should not be used, restrictions apply:
* * Table cannot split/merge when this is enabled
* * Table cannot be copied or backed up when this is enabled
* * This feature cannot be disabled once enabled for a table
*
*
* .Ydb.FeatureFlag.Status store_external_blobs = 5;
* @return This builder for chaining.
*/
public Builder clearStoreExternalBlobs() {
bitField0_ = (bitField0_ & ~0x00000008);
storeExternalBlobs_ = 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.StorageSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.StorageSettings)
private static final tech.ydb.proto.table.YdbTable.StorageSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.table.YdbTable.StorageSettings();
}
public static tech.ydb.proto.table.YdbTable.StorageSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageSettings 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.StorageSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColumnFamilyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ColumnFamily)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains at 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 at least primary key columns
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
* @return Whether the data field is set.
*/
boolean hasData();
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
* @return The data.
*/
tech.ydb.proto.table.YdbTable.StoragePool getData();
/**
*
* This specifies data storage settings for column family
*
* Optionally specify how data should be compressed
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @return The enum numeric value on the wire for compression.
*/
int getCompressionValue();
/**
*
* Optionally specify how data should be compressed
*
* 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();
}
/**
* Protobuf type {@code Ydb.Table.ColumnFamily}
*/
public static final class ColumnFamily extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ColumnFamily)
ColumnFamilyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ColumnFamily.newBuilder() to construct.
private ColumnFamily(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ColumnFamily() {
name_ = "";
compression_ = 0;
keepInMemory_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ColumnFamily();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnFamily_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.table.YdbTable.internal_static_Ydb_Table_ColumnFamily_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.table.YdbTable.ColumnFamily.class, tech.ydb.proto.table.YdbTable.ColumnFamily.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.ColumnFamily.Compression}
*/
public enum Compression
implements com.google.protobuf.ProtocolMessageEnum {
/**
* COMPRESSION_UNSPECIFIED = 0;
*/
COMPRESSION_UNSPECIFIED(0),
/**
* COMPRESSION_NONE = 1;
*/
COMPRESSION_NONE(1),
/**
* COMPRESSION_LZ4 = 2;
*/
COMPRESSION_LZ4(2),
UNRECOGNIZED(-1),
;
/**
* COMPRESSION_UNSPECIFIED = 0;
*/
public static final int COMPRESSION_UNSPECIFIED_VALUE = 0;
/**
* COMPRESSION_NONE = 1;
*/
public static final int COMPRESSION_NONE_VALUE = 1;
/**
* COMPRESSION_LZ4 = 2;
*/
public static final int COMPRESSION_LZ4_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 COMPRESSION_NONE;
case 2: return COMPRESSION_LZ4;
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.ColumnFamily.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.ColumnFamily.Compression)
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*