com.yandex.ydb.table.YdbTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ydb/public/api/protos/ydb_table.proto
package com.yandex.ydb.table;
public final class YdbTable {
private YdbTable() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface CreateSessionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.CreateSessionRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
}
/**
*
* Create new session
*
*
* Protobuf type {@code Ydb.Table.CreateSessionRequest}
*/
public static final class CreateSessionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.CreateSessionRequest)
CreateSessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSessionRequest.newBuilder() to construct.
private CreateSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSessionRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSessionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateSessionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CreateSessionRequest.class, com.yandex.ydb.table.YdbTable.CreateSessionRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
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 (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.CreateSessionRequest)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.CreateSessionRequest other = (com.yandex.ydb.table.YdbTable.CreateSessionRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.CreateSessionRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Create new session
*
*
* Protobuf type {@code Ydb.Table.CreateSessionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.CreateSessionRequest)
com.yandex.ydb.table.YdbTable.CreateSessionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CreateSessionRequest.class, com.yandex.ydb.table.YdbTable.CreateSessionRequest.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.CreateSessionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionRequest getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.CreateSessionRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionRequest build() {
com.yandex.ydb.table.YdbTable.CreateSessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionRequest buildPartial() {
com.yandex.ydb.table.YdbTable.CreateSessionRequest result = new com.yandex.ydb.table.YdbTable.CreateSessionRequest(this);
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.CreateSessionRequest) {
return mergeFrom((com.yandex.ydb.table.YdbTable.CreateSessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.CreateSessionRequest other) {
if (other == com.yandex.ydb.table.YdbTable.CreateSessionRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.CreateSessionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.CreateSessionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.CreateSessionRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.CreateSessionRequest)
private static final com.yandex.ydb.table.YdbTable.CreateSessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.CreateSessionRequest();
}
public static com.yandex.ydb.table.YdbTable.CreateSessionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSessionRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateSessionRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateSessionResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.CreateSessionResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
*
* Create new session
*
*
* Protobuf type {@code Ydb.Table.CreateSessionResponse}
*/
public static final class CreateSessionResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.CreateSessionResponse)
CreateSessionResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSessionResponse.newBuilder() to construct.
private CreateSessionResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSessionResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSessionResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateSessionResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CreateSessionResponse.class, com.yandex.ydb.table.YdbTable.CreateSessionResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.CreateSessionResponse)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.CreateSessionResponse other = (com.yandex.ydb.table.YdbTable.CreateSessionResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.CreateSessionResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Create new session
*
*
* Protobuf type {@code Ydb.Table.CreateSessionResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.CreateSessionResponse)
com.yandex.ydb.table.YdbTable.CreateSessionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CreateSessionResponse.class, com.yandex.ydb.table.YdbTable.CreateSessionResponse.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.CreateSessionResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionResponse getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.CreateSessionResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionResponse build() {
com.yandex.ydb.table.YdbTable.CreateSessionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionResponse buildPartial() {
com.yandex.ydb.table.YdbTable.CreateSessionResponse result = new com.yandex.ydb.table.YdbTable.CreateSessionResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.CreateSessionResponse) {
return mergeFrom((com.yandex.ydb.table.YdbTable.CreateSessionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.CreateSessionResponse other) {
if (other == com.yandex.ydb.table.YdbTable.CreateSessionResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.CreateSessionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.CreateSessionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
*
* Holds CreateSessionResult in case of CreateSessionResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>(
getOperation(),
getParentForChildren(),
isClean());
operation_ = null;
}
return operationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.CreateSessionResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.CreateSessionResponse)
private static final com.yandex.ydb.table.YdbTable.CreateSessionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.CreateSessionResponse();
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSessionResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateSessionResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateSessionResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.CreateSessionResult)
com.google.protobuf.MessageOrBuilder {
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
}
/**
* Protobuf type {@code Ydb.Table.CreateSessionResult}
*/
public static final class CreateSessionResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.CreateSessionResult)
CreateSessionResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateSessionResult.newBuilder() to construct.
private CreateSessionResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateSessionResult() {
sessionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateSessionResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateSessionResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
sessionId_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CreateSessionResult.class, com.yandex.ydb.table.YdbTable.CreateSessionResult.Builder.class);
}
public static final int SESSION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object sessionId_;
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.CreateSessionResult)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.CreateSessionResult other = (com.yandex.ydb.table.YdbTable.CreateSessionResult) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.CreateSessionResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Table.CreateSessionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.CreateSessionResult)
com.yandex.ydb.table.YdbTable.CreateSessionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CreateSessionResult.class, com.yandex.ydb.table.YdbTable.CreateSessionResult.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.CreateSessionResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sessionId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CreateSessionResult_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionResult getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.CreateSessionResult.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionResult build() {
com.yandex.ydb.table.YdbTable.CreateSessionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionResult buildPartial() {
com.yandex.ydb.table.YdbTable.CreateSessionResult result = new com.yandex.ydb.table.YdbTable.CreateSessionResult(this);
result.sessionId_ = sessionId_;
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 com.yandex.ydb.table.YdbTable.CreateSessionResult) {
return mergeFrom((com.yandex.ydb.table.YdbTable.CreateSessionResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.CreateSessionResult other) {
if (other == com.yandex.ydb.table.YdbTable.CreateSessionResult.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.CreateSessionResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.CreateSessionResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object sessionId_ = "";
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sessionId_ = value;
onChanged();
return this;
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
onChanged();
return this;
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sessionId_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.CreateSessionResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.CreateSessionResult)
private static final com.yandex.ydb.table.YdbTable.CreateSessionResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.CreateSessionResult();
}
public static com.yandex.ydb.table.YdbTable.CreateSessionResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateSessionResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateSessionResult(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CreateSessionResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteSessionRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.DeleteSessionRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
}
/**
*
* Delete session with given id string
*
*
* Protobuf type {@code Ydb.Table.DeleteSessionRequest}
*/
public static final class DeleteSessionRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.DeleteSessionRequest)
DeleteSessionRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteSessionRequest.newBuilder() to construct.
private DeleteSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteSessionRequest() {
sessionId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteSessionRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteSessionRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
sessionId_ = s;
break;
}
case 18: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.DeleteSessionRequest.class, com.yandex.ydb.table.YdbTable.DeleteSessionRequest.Builder.class);
}
public static final int SESSION_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object sessionId_;
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 2;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sessionId_);
}
if (operationParams_ != null) {
output.writeMessage(2, getOperationParams());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sessionId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sessionId_);
}
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOperationParams());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.DeleteSessionRequest)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.DeleteSessionRequest other = (com.yandex.ydb.table.YdbTable.DeleteSessionRequest) obj;
if (!getSessionId()
.equals(other.getSessionId())) return false;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
hash = (53 * hash) + getSessionId().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.DeleteSessionRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Delete session with given id string
*
*
* Protobuf type {@code Ydb.Table.DeleteSessionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.DeleteSessionRequest)
com.yandex.ydb.table.YdbTable.DeleteSessionRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.DeleteSessionRequest.class, com.yandex.ydb.table.YdbTable.DeleteSessionRequest.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.DeleteSessionRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
sessionId_ = "";
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DeleteSessionRequest getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.DeleteSessionRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DeleteSessionRequest build() {
com.yandex.ydb.table.YdbTable.DeleteSessionRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DeleteSessionRequest buildPartial() {
com.yandex.ydb.table.YdbTable.DeleteSessionRequest result = new com.yandex.ydb.table.YdbTable.DeleteSessionRequest(this);
result.sessionId_ = sessionId_;
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.DeleteSessionRequest) {
return mergeFrom((com.yandex.ydb.table.YdbTable.DeleteSessionRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.DeleteSessionRequest other) {
if (other == com.yandex.ydb.table.YdbTable.DeleteSessionRequest.getDefaultInstance()) return this;
if (!other.getSessionId().isEmpty()) {
sessionId_ = other.sessionId_;
onChanged();
}
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.DeleteSessionRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.DeleteSessionRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object sessionId_ = "";
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
public java.lang.String getSessionId() {
java.lang.Object ref = sessionId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sessionId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
public com.google.protobuf.ByteString
getSessionIdBytes() {
java.lang.Object ref = sessionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sessionId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sessionId_ = value;
onChanged();
return this;
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return This builder for chaining.
*/
public Builder clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
onChanged();
return this;
}
/**
*
* Session identifier
*
*
* string session_id = 1;
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sessionId_ = value;
onChanged();
return this;
}
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DeleteSessionRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.DeleteSessionRequest();
}
public static com.yandex.ydb.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 {
return new DeleteSessionRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteSessionResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.Operation.Builder subBuilder = null;
if (operation_ != null) {
subBuilder = operation_.toBuilder();
}
operation_ = input.readMessage(com.yandex.ydb.OperationProtos.Operation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operation_);
operation_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.DeleteSessionResponse.class, com.yandex.ydb.table.YdbTable.DeleteSessionResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.Operation getOperation() {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
return getOperation();
}
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 (operation_ != null) {
output.writeMessage(1, getOperation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperation());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.DeleteSessionResponse)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.DeleteSessionResponse other = (com.yandex.ydb.table.YdbTable.DeleteSessionResponse) obj;
if (hasOperation() != other.hasOperation()) return false;
if (hasOperation()) {
if (!getOperation()
.equals(other.getOperation())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperation()) {
hash = (37 * hash) + OPERATION_FIELD_NUMBER;
hash = (53 * hash) + getOperation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DeleteSessionResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DeleteSessionResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.DeleteSessionResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DeleteSessionResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DeleteSessionResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.DeleteSessionResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.DeleteSessionResponse.class, com.yandex.ydb.table.YdbTable.DeleteSessionResponse.Builder.class);
}
// Construct using com.yandex.ydb.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationBuilder_ == null) {
operation_ = null;
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DeleteSessionResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DeleteSessionResponse getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.DeleteSessionResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DeleteSessionResponse build() {
com.yandex.ydb.table.YdbTable.DeleteSessionResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DeleteSessionResponse buildPartial() {
com.yandex.ydb.table.YdbTable.DeleteSessionResponse result = new com.yandex.ydb.table.YdbTable.DeleteSessionResponse(this);
if (operationBuilder_ == null) {
result.operation_ = operation_;
} else {
result.operation_ = operationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.DeleteSessionResponse) {
return mergeFrom((com.yandex.ydb.table.YdbTable.DeleteSessionResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.DeleteSessionResponse other) {
if (other == com.yandex.ydb.table.YdbTable.DeleteSessionResponse.getDefaultInstance()) return this;
if (other.hasOperation()) {
mergeOperation(other.getOperation());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.DeleteSessionResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.DeleteSessionResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.Operation operation_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder> operationBuilder_;
/**
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
public com.yandex.ydb.OperationProtos.Operation getOperation() {
if (operationBuilder_ == null) {
return operation_ == null ? com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
} else {
return operationBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operation_ = value;
onChanged();
} else {
operationBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder setOperation(
com.yandex.ydb.OperationProtos.Operation.Builder builderForValue) {
if (operationBuilder_ == null) {
operation_ = builderForValue.build();
onChanged();
} else {
operationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder mergeOperation(com.yandex.ydb.OperationProtos.Operation value) {
if (operationBuilder_ == null) {
if (operation_ != null) {
operation_ =
com.yandex.ydb.OperationProtos.Operation.newBuilder(operation_).mergeFrom(value).buildPartial();
} else {
operation_ = value;
}
onChanged();
} else {
operationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder() {
if (operationBuilder_ != null) {
return operationBuilder_.getMessageOrBuilder();
} else {
return operation_ == null ?
com.yandex.ydb.OperationProtos.Operation.getDefaultInstance() : operation_;
}
}
/**
* .Ydb.Operations.Operation operation = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.OperationProtos.OperationOrBuilder>
getOperationFieldBuilder() {
if (operationBuilder_ == null) {
operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.Operation, com.yandex.ydb.OperationProtos.Operation.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DeleteSessionResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.DeleteSessionResponse();
}
public static com.yandex.ydb.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 {
return new DeleteSessionResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GlobalIndex(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.GlobalIndex.class, com.yandex.ydb.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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.GlobalIndex)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.GlobalIndex other = (com.yandex.ydb.table.YdbTable.GlobalIndex) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.GlobalIndex parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalIndex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.GlobalIndex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.GlobalIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.GlobalIndexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.GlobalIndex.class, com.yandex.ydb.table.YdbTable.GlobalIndex.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.GlobalIndex.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalIndex_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalIndex getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalIndex build() {
com.yandex.ydb.table.YdbTable.GlobalIndex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalIndex buildPartial() {
com.yandex.ydb.table.YdbTable.GlobalIndex result = new com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalIndex) {
return mergeFrom((com.yandex.ydb.table.YdbTable.GlobalIndex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.GlobalIndex other) {
if (other == com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.GlobalIndex parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.GlobalIndex) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 com.yandex.ydb.table.YdbTable.GlobalIndex DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.GlobalIndex();
}
public static com.yandex.ydb.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 {
return new GlobalIndex(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GlobalAsyncIndex(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.class, com.yandex.ydb.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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.GlobalAsyncIndex)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex other = (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.GlobalAsyncIndex parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.GlobalAsyncIndex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.GlobalAsyncIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.class, com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_GlobalAsyncIndex_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalAsyncIndex getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalAsyncIndex build() {
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalAsyncIndex buildPartial() {
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex result = new com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) {
return mergeFrom((com.yandex.ydb.table.YdbTable.GlobalAsyncIndex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.GlobalAsyncIndex other) {
if (other == com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.GlobalAsyncIndex();
}
public static com.yandex.ydb.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 {
return new GlobalAsyncIndex(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.GlobalIndex getGlobalIndex();
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex();
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
com.yandex.ydb.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);
public com.yandex.ydb.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.EMPTY;
dataColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableIndex();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TableIndex(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
indexColumns_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
indexColumns_.add(s);
break;
}
case 26: {
com.yandex.ydb.table.YdbTable.GlobalIndex.Builder subBuilder = null;
if (typeCase_ == 3) {
subBuilder = ((com.yandex.ydb.table.YdbTable.GlobalIndex) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.table.YdbTable.GlobalIndex.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.table.YdbTable.GlobalIndex) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 3;
break;
}
case 34: {
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder subBuilder = null;
if (typeCase_ == 4) {
subBuilder = ((com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 4;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
dataColumns_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
dataColumns_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
indexColumns_ = indexColumns_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
dataColumns_ = dataColumns_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TableIndex.class, com.yandex.ydb.table.YdbTable.TableIndex.Builder.class);
}
private int typeCase_ = 0;
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;
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;
private com.google.protobuf.LazyStringList indexColumns_;
/**
*
* 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 com.yandex.ydb.table.YdbTable.GlobalIndex getGlobalIndex() {
if (typeCase_ == 3) {
return (com.yandex.ydb.table.YdbTable.GlobalIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder() {
if (typeCase_ == 3) {
return (com.yandex.ydb.table.YdbTable.GlobalIndex) type_;
}
return com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex() {
if (typeCase_ == 4) {
return (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder() {
if (typeCase_ == 4) {
return (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
public static final int DATA_COLUMNS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList dataColumns_;
/**
*
* 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, (com.yandex.ydb.table.YdbTable.GlobalIndex) type_);
}
if (typeCase_ == 4) {
output.writeMessage(4, (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_);
}
for (int i = 0; i < dataColumns_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dataColumns_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(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, (com.yandex.ydb.table.YdbTable.GlobalIndex) type_);
}
if (typeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.yandex.ydb.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.TableIndex)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.TableIndex other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.TableIndex parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableIndex parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableIndex parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.TableIndex parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.TableIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableIndex parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.TableIndexOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndex_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TableIndex.class, com.yandex.ydb.table.YdbTable.TableIndex.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.TableIndex.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
indexColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
dataColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndex_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableIndex getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.TableIndex.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableIndex build() {
com.yandex.ydb.table.YdbTable.TableIndex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableIndex buildPartial() {
com.yandex.ydb.table.YdbTable.TableIndex result = new com.yandex.ydb.table.YdbTable.TableIndex(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
if (((bitField0_ & 0x00000001) != 0)) {
indexColumns_ = indexColumns_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.indexColumns_ = indexColumns_;
if (typeCase_ == 3) {
if (globalIndexBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = globalIndexBuilder_.build();
}
}
if (typeCase_ == 4) {
if (globalAsyncIndexBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = globalAsyncIndexBuilder_.build();
}
}
if (((bitField0_ & 0x00000002) != 0)) {
dataColumns_ = dataColumns_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.dataColumns_ = dataColumns_;
result.typeCase_ = typeCase_;
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 com.yandex.ydb.table.YdbTable.TableIndex) {
return mergeFrom((com.yandex.ydb.table.YdbTable.TableIndex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.TableIndex other) {
if (other == com.yandex.ydb.table.YdbTable.TableIndex.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.indexColumns_.isEmpty()) {
if (indexColumns_.isEmpty()) {
indexColumns_ = other.indexColumns_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIndexColumnsIsMutable();
indexColumns_.addAll(other.indexColumns_);
}
onChanged();
}
if (!other.dataColumns_.isEmpty()) {
if (dataColumns_.isEmpty()) {
dataColumns_ = other.dataColumns_;
bitField0_ = (bitField0_ & ~0x00000002);
} 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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.TableIndex parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.TableIndex) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
onChanged();
return this;
}
/**
*
* Name of index
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
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;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList indexColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIndexColumnsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
indexColumns_ = new com.google.protobuf.LazyStringArrayList(indexColumns_);
bitField0_ |= 0x00000001;
}
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return A list containing the indexColumns.
*/
public com.google.protobuf.ProtocolStringList
getIndexColumnsList() {
return indexColumns_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return This builder for chaining.
*/
public Builder clearIndexColumns() {
indexColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param value The bytes of the indexColumns to add.
* @return This builder for chaining.
*/
public Builder addIndexColumnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIndexColumnsIsMutable();
indexColumns_.add(value);
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalIndex, com.yandex.ydb.table.YdbTable.GlobalIndex.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalIndex getGlobalIndex() {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3) {
return (com.yandex.ydb.table.YdbTable.GlobalIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return globalIndexBuilder_.getMessage();
}
return com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder setGlobalIndex(com.yandex.ydb.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(
com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.GlobalIndex value) {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3 &&
type_ != com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance()) {
type_ = com.yandex.ydb.table.YdbTable.GlobalIndex.newBuilder((com.yandex.ydb.table.YdbTable.GlobalIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 3) {
globalIndexBuilder_.mergeFrom(value);
}
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 com.yandex.ydb.table.YdbTable.GlobalIndex.Builder getGlobalIndexBuilder() {
return getGlobalIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder() {
if ((typeCase_ == 3) && (globalIndexBuilder_ != null)) {
return globalIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (com.yandex.ydb.table.YdbTable.GlobalIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalIndex, com.yandex.ydb.table.YdbTable.GlobalIndex.Builder, com.yandex.ydb.table.YdbTable.GlobalIndexOrBuilder>
getGlobalIndexFieldBuilder() {
if (globalIndexBuilder_ == null) {
if (!(typeCase_ == 3)) {
type_ = com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
}
globalIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalIndex, com.yandex.ydb.table.YdbTable.GlobalIndex.Builder, com.yandex.ydb.table.YdbTable.GlobalIndexOrBuilder>(
(com.yandex.ydb.table.YdbTable.GlobalIndex) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();;
return globalIndexBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex, com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder, com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder> globalAsyncIndexBuilder_;
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
* @return Whether the globalAsyncIndex field is set.
*/
@java.lang.Override
public boolean hasGlobalAsyncIndex() {
return typeCase_ == 4;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
* @return The globalAsyncIndex.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex() {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 4) {
return (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
} else {
if (typeCase_ == 4) {
return globalAsyncIndexBuilder_.getMessage();
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public Builder setGlobalAsyncIndex(com.yandex.ydb.table.YdbTable.GlobalAsyncIndex value) {
if (globalAsyncIndexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
globalAsyncIndexBuilder_.setMessage(value);
}
typeCase_ = 4;
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public Builder setGlobalAsyncIndex(
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder builderForValue) {
if (globalAsyncIndexBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
globalAsyncIndexBuilder_.setMessage(builderForValue.build());
}
typeCase_ = 4;
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public Builder mergeGlobalAsyncIndex(com.yandex.ydb.table.YdbTable.GlobalAsyncIndex value) {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 4 &&
type_ != com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance()) {
type_ = com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.newBuilder((com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 4) {
globalAsyncIndexBuilder_.mergeFrom(value);
}
globalAsyncIndexBuilder_.setMessage(value);
}
typeCase_ = 4;
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public Builder clearGlobalAsyncIndex() {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
onChanged();
}
} else {
if (typeCase_ == 4) {
typeCase_ = 0;
type_ = null;
}
globalAsyncIndexBuilder_.clear();
}
return this;
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
public com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder getGlobalAsyncIndexBuilder() {
return getGlobalAsyncIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder() {
if ((typeCase_ == 4) && (globalAsyncIndexBuilder_ != null)) {
return globalAsyncIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 4) {
return (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex, com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder, com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder>
getGlobalAsyncIndexFieldBuilder() {
if (globalAsyncIndexBuilder_ == null) {
if (!(typeCase_ == 4)) {
type_ = com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
globalAsyncIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex, com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder, com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder>(
(com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 4;
onChanged();;
return globalAsyncIndexBuilder_;
}
private com.google.protobuf.LazyStringList dataColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDataColumnsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
dataColumns_ = new com.google.protobuf.LazyStringArrayList(dataColumns_);
bitField0_ |= 0x00000002;
}
}
/**
*
* 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_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @return This builder for chaining.
*/
public Builder clearDataColumns() {
dataColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 5;
* @param value The bytes of the dataColumns to add.
* @return This builder for chaining.
*/
public Builder addDataColumnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDataColumnsIsMutable();
dataColumns_.add(value);
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 com.yandex.ydb.table.YdbTable.TableIndex DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.TableIndex();
}
public static com.yandex.ydb.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 {
return new TableIndex(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.GlobalIndex getGlobalIndex();
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex();
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.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();
public com.yandex.ydb.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.EMPTY;
status_ = 0;
dataColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableIndexDescription();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TableIndexDescription(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
indexColumns_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
indexColumns_.add(s);
break;
}
case 26: {
com.yandex.ydb.table.YdbTable.GlobalIndex.Builder subBuilder = null;
if (typeCase_ == 3) {
subBuilder = ((com.yandex.ydb.table.YdbTable.GlobalIndex) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.table.YdbTable.GlobalIndex.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.table.YdbTable.GlobalIndex) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 3;
break;
}
case 32: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 42: {
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder subBuilder = null;
if (typeCase_ == 5) {
subBuilder = ((com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_).toBuilder();
}
type_ =
input.readMessage(com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_);
type_ = subBuilder.buildPartial();
}
typeCase_ = 5;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
dataColumns_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
dataColumns_.add(s);
break;
}
case 56: {
sizeBytes_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
indexColumns_ = indexColumns_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
dataColumns_ = dataColumns_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TableIndexDescription.class, com.yandex.ydb.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 com.yandex.ydb.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;
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;
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;
private com.google.protobuf.LazyStringList indexColumns_;
/**
*
* 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 com.yandex.ydb.table.YdbTable.GlobalIndex getGlobalIndex() {
if (typeCase_ == 3) {
return (com.yandex.ydb.table.YdbTable.GlobalIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder() {
if (typeCase_ == 3) {
return (com.yandex.ydb.table.YdbTable.GlobalIndex) type_;
}
return com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex() {
if (typeCase_ == 5) {
return (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder() {
if (typeCase_ == 5) {
return (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
public static final int STATUS_FIELD_NUMBER = 4;
private int status_;
/**
* .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 com.yandex.ydb.table.YdbTable.TableIndexDescription.Status getStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.TableIndexDescription.Status result = com.yandex.ydb.table.YdbTable.TableIndexDescription.Status.valueOf(status_);
return result == null ? com.yandex.ydb.table.YdbTable.TableIndexDescription.Status.UNRECOGNIZED : result;
}
public static final int DATA_COLUMNS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList dataColumns_;
/**
*
* 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_;
/**
*
* 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, (com.yandex.ydb.table.YdbTable.GlobalIndex) type_);
}
if (status_ != com.yandex.ydb.table.YdbTable.TableIndexDescription.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(4, status_);
}
if (typeCase_ == 5) {
output.writeMessage(5, (com.yandex.ydb.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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(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, (com.yandex.ydb.table.YdbTable.GlobalIndex) type_);
}
if (status_ != com.yandex.ydb.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, (com.yandex.ydb.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.TableIndexDescription)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.TableIndexDescription other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.TableIndexDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableIndexDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableIndexDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.TableIndexDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.TableIndexDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableIndexDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableIndexDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.TableIndexDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TableIndexDescription.class, com.yandex.ydb.table.YdbTable.TableIndexDescription.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.TableIndexDescription.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
indexColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
dataColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
sizeBytes_ = 0L;
typeCase_ = 0;
type_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableIndexDescription_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableIndexDescription getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.TableIndexDescription.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableIndexDescription build() {
com.yandex.ydb.table.YdbTable.TableIndexDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableIndexDescription buildPartial() {
com.yandex.ydb.table.YdbTable.TableIndexDescription result = new com.yandex.ydb.table.YdbTable.TableIndexDescription(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
if (((bitField0_ & 0x00000001) != 0)) {
indexColumns_ = indexColumns_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.indexColumns_ = indexColumns_;
if (typeCase_ == 3) {
if (globalIndexBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = globalIndexBuilder_.build();
}
}
if (typeCase_ == 5) {
if (globalAsyncIndexBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = globalAsyncIndexBuilder_.build();
}
}
result.status_ = status_;
if (((bitField0_ & 0x00000002) != 0)) {
dataColumns_ = dataColumns_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.dataColumns_ = dataColumns_;
result.sizeBytes_ = sizeBytes_;
result.typeCase_ = typeCase_;
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 com.yandex.ydb.table.YdbTable.TableIndexDescription) {
return mergeFrom((com.yandex.ydb.table.YdbTable.TableIndexDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.TableIndexDescription other) {
if (other == com.yandex.ydb.table.YdbTable.TableIndexDescription.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.indexColumns_.isEmpty()) {
if (indexColumns_.isEmpty()) {
indexColumns_ = other.indexColumns_;
bitField0_ = (bitField0_ & ~0x00000001);
} 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_ = (bitField0_ & ~0x00000002);
} 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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.TableIndexDescription parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.TableIndexDescription) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
onChanged();
return this;
}
/**
*
* Name of index
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
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;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList indexColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIndexColumnsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
indexColumns_ = new com.google.protobuf.LazyStringArrayList(indexColumns_);
bitField0_ |= 0x00000001;
}
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return A list containing the indexColumns.
*/
public com.google.protobuf.ProtocolStringList
getIndexColumnsList() {
return indexColumns_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @return This builder for chaining.
*/
public Builder clearIndexColumns() {
indexColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* list of columns
*
*
* repeated string index_columns = 2;
* @param value The bytes of the indexColumns to add.
* @return This builder for chaining.
*/
public Builder addIndexColumnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIndexColumnsIsMutable();
indexColumns_.add(value);
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalIndex, com.yandex.ydb.table.YdbTable.GlobalIndex.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalIndex getGlobalIndex() {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3) {
return (com.yandex.ydb.table.YdbTable.GlobalIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
} else {
if (typeCase_ == 3) {
return globalIndexBuilder_.getMessage();
}
return com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
public Builder setGlobalIndex(com.yandex.ydb.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(
com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.GlobalIndex value) {
if (globalIndexBuilder_ == null) {
if (typeCase_ == 3 &&
type_ != com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance()) {
type_ = com.yandex.ydb.table.YdbTable.GlobalIndex.newBuilder((com.yandex.ydb.table.YdbTable.GlobalIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 3) {
globalIndexBuilder_.mergeFrom(value);
}
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 com.yandex.ydb.table.YdbTable.GlobalIndex.Builder getGlobalIndexBuilder() {
return getGlobalIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalIndexOrBuilder getGlobalIndexOrBuilder() {
if ((typeCase_ == 3) && (globalIndexBuilder_ != null)) {
return globalIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 3) {
return (com.yandex.ydb.table.YdbTable.GlobalIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalIndex global_index = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalIndex, com.yandex.ydb.table.YdbTable.GlobalIndex.Builder, com.yandex.ydb.table.YdbTable.GlobalIndexOrBuilder>
getGlobalIndexFieldBuilder() {
if (globalIndexBuilder_ == null) {
if (!(typeCase_ == 3)) {
type_ = com.yandex.ydb.table.YdbTable.GlobalIndex.getDefaultInstance();
}
globalIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalIndex, com.yandex.ydb.table.YdbTable.GlobalIndex.Builder, com.yandex.ydb.table.YdbTable.GlobalIndexOrBuilder>(
(com.yandex.ydb.table.YdbTable.GlobalIndex) type_,
getParentForChildren(),
isClean());
type_ = null;
}
typeCase_ = 3;
onChanged();;
return globalIndexBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex, com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex getGlobalAsyncIndex() {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 5) {
return (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
} else {
if (typeCase_ == 5) {
return globalAsyncIndexBuilder_.getMessage();
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
public Builder setGlobalAsyncIndex(com.yandex.ydb.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(
com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.GlobalAsyncIndex value) {
if (globalAsyncIndexBuilder_ == null) {
if (typeCase_ == 5 &&
type_ != com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance()) {
type_ = com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.newBuilder((com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_)
.mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
if (typeCase_ == 5) {
globalAsyncIndexBuilder_.mergeFrom(value);
}
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 com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder getGlobalAsyncIndexBuilder() {
return getGlobalAsyncIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder getGlobalAsyncIndexOrBuilder() {
if ((typeCase_ == 5) && (globalAsyncIndexBuilder_ != null)) {
return globalAsyncIndexBuilder_.getMessageOrBuilder();
} else {
if (typeCase_ == 5) {
return (com.yandex.ydb.table.YdbTable.GlobalAsyncIndex) type_;
}
return com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
}
/**
* .Ydb.Table.GlobalAsyncIndex global_async_index = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex, com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder, com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder>
getGlobalAsyncIndexFieldBuilder() {
if (globalAsyncIndexBuilder_ == null) {
if (!(typeCase_ == 5)) {
type_ = com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.getDefaultInstance();
}
globalAsyncIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.GlobalAsyncIndex, com.yandex.ydb.table.YdbTable.GlobalAsyncIndex.Builder, com.yandex.ydb.table.YdbTable.GlobalAsyncIndexOrBuilder>(
(com.yandex.ydb.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;
onChanged();
return this;
}
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return The status.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableIndexDescription.Status getStatus() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.TableIndexDescription.Status result = com.yandex.ydb.table.YdbTable.TableIndexDescription.Status.valueOf(status_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.TableIndexDescription.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Table.TableIndexDescription.Status status = 4;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList dataColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDataColumnsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
dataColumns_ = new com.google.protobuf.LazyStringArrayList(dataColumns_);
bitField0_ |= 0x00000002;
}
}
/**
*
* 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_.getUnmodifiableView();
}
/**
*
* 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);
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);
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_);
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @return This builder for chaining.
*/
public Builder clearDataColumns() {
dataColumns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* list of columns content to be copied in to index table
*
*
* repeated string data_columns = 6;
* @param value The bytes of the dataColumns to add.
* @return This builder for chaining.
*/
public Builder addDataColumnsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDataColumnsIsMutable();
dataColumns_.add(value);
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;
onChanged();
return this;
}
/**
*
* Size of index data in bytes
*
*
* uint64 size_bytes = 7;
* @return This builder for chaining.
*/
public Builder clearSizeBytes() {
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 com.yandex.ydb.table.YdbTable.TableIndexDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.TableIndexDescription();
}
public static com.yandex.ydb.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 {
return new TableIndexDescription(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexBuildState(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.IndexBuildState.class, com.yandex.ydb.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 com.yandex.ydb.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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.IndexBuildState)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.IndexBuildState other = (com.yandex.ydb.table.YdbTable.IndexBuildState) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.IndexBuildState parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildState parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildState parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.IndexBuildState parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.IndexBuildState parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildState parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildState parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.IndexBuildStateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.IndexBuildState.class, com.yandex.ydb.table.YdbTable.IndexBuildState.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.IndexBuildState.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildState_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildState getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.IndexBuildState.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildState build() {
com.yandex.ydb.table.YdbTable.IndexBuildState result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildState buildPartial() {
com.yandex.ydb.table.YdbTable.IndexBuildState result = new com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildState) {
return mergeFrom((com.yandex.ydb.table.YdbTable.IndexBuildState)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.IndexBuildState other) {
if (other == com.yandex.ydb.table.YdbTable.IndexBuildState.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.IndexBuildState parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.IndexBuildState) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 com.yandex.ydb.table.YdbTable.IndexBuildState DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.IndexBuildState();
}
public static com.yandex.ydb.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 {
return new IndexBuildState(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.TableIndex getIndex();
/**
* .Ydb.Table.TableIndex index = 2;
*/
com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexBuildDescription(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 18: {
com.yandex.ydb.table.YdbTable.TableIndex.Builder subBuilder = null;
if (index_ != null) {
subBuilder = index_.toBuilder();
}
index_ = input.readMessage(com.yandex.ydb.table.YdbTable.TableIndex.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(index_);
index_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.IndexBuildDescription.class, com.yandex.ydb.table.YdbTable.IndexBuildDescription.Builder.class);
}
public static final int PATH_FIELD_NUMBER = 1;
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 com.yandex.ydb.table.YdbTable.TableIndex index_;
/**
* .Ydb.Table.TableIndex index = 2;
* @return Whether the index field is set.
*/
@java.lang.Override
public boolean hasIndex() {
return index_ != null;
}
/**
* .Ydb.Table.TableIndex index = 2;
* @return The index.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableIndex getIndex() {
return index_ == null ? com.yandex.ydb.table.YdbTable.TableIndex.getDefaultInstance() : index_;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableIndexOrBuilder getIndexOrBuilder() {
return getIndex();
}
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 (index_ != null) {
output.writeMessage(2, getIndex());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
}
if (index_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getIndex());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.IndexBuildDescription)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.IndexBuildDescription other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
if (hasIndex()) {
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + getIndex().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.IndexBuildDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.IndexBuildDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.IndexBuildDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.IndexBuildDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.IndexBuildDescription.class, com.yandex.ydb.table.YdbTable.IndexBuildDescription.Builder.class);
}
// Construct using com.yandex.ydb.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
path_ = "";
if (indexBuilder_ == null) {
index_ = null;
} else {
index_ = null;
indexBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildDescription_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildDescription getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.IndexBuildDescription.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildDescription build() {
com.yandex.ydb.table.YdbTable.IndexBuildDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildDescription buildPartial() {
com.yandex.ydb.table.YdbTable.IndexBuildDescription result = new com.yandex.ydb.table.YdbTable.IndexBuildDescription(this);
result.path_ = path_;
if (indexBuilder_ == null) {
result.index_ = index_;
} else {
result.index_ = indexBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.IndexBuildDescription) {
return mergeFrom((com.yandex.ydb.table.YdbTable.IndexBuildDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.IndexBuildDescription other) {
if (other == com.yandex.ydb.table.YdbTable.IndexBuildDescription.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (other.hasIndex()) {
mergeIndex(other.getIndex());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.IndexBuildDescription parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.IndexBuildDescription) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* string path = 1;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
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;
onChanged();
return this;
}
private com.yandex.ydb.table.YdbTable.TableIndex index_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.TableIndex, com.yandex.ydb.table.YdbTable.TableIndex.Builder, com.yandex.ydb.table.YdbTable.TableIndexOrBuilder> indexBuilder_;
/**
* .Ydb.Table.TableIndex index = 2;
* @return Whether the index field is set.
*/
public boolean hasIndex() {
return indexBuilder_ != null || index_ != null;
}
/**
* .Ydb.Table.TableIndex index = 2;
* @return The index.
*/
public com.yandex.ydb.table.YdbTable.TableIndex getIndex() {
if (indexBuilder_ == null) {
return index_ == null ? com.yandex.ydb.table.YdbTable.TableIndex.getDefaultInstance() : index_;
} else {
return indexBuilder_.getMessage();
}
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public Builder setIndex(com.yandex.ydb.table.YdbTable.TableIndex value) {
if (indexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
index_ = value;
onChanged();
} else {
indexBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public Builder setIndex(
com.yandex.ydb.table.YdbTable.TableIndex.Builder builderForValue) {
if (indexBuilder_ == null) {
index_ = builderForValue.build();
onChanged();
} else {
indexBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public Builder mergeIndex(com.yandex.ydb.table.YdbTable.TableIndex value) {
if (indexBuilder_ == null) {
if (index_ != null) {
index_ =
com.yandex.ydb.table.YdbTable.TableIndex.newBuilder(index_).mergeFrom(value).buildPartial();
} else {
index_ = value;
}
onChanged();
} else {
indexBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public Builder clearIndex() {
if (indexBuilder_ == null) {
index_ = null;
onChanged();
} else {
index_ = null;
indexBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public com.yandex.ydb.table.YdbTable.TableIndex.Builder getIndexBuilder() {
onChanged();
return getIndexFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
public com.yandex.ydb.table.YdbTable.TableIndexOrBuilder getIndexOrBuilder() {
if (indexBuilder_ != null) {
return indexBuilder_.getMessageOrBuilder();
} else {
return index_ == null ?
com.yandex.ydb.table.YdbTable.TableIndex.getDefaultInstance() : index_;
}
}
/**
* .Ydb.Table.TableIndex index = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.TableIndex, com.yandex.ydb.table.YdbTable.TableIndex.Builder, com.yandex.ydb.table.YdbTable.TableIndexOrBuilder>
getIndexFieldBuilder() {
if (indexBuilder_ == null) {
indexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.TableIndex, com.yandex.ydb.table.YdbTable.TableIndex.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.IndexBuildDescription();
}
public static com.yandex.ydb.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 {
return new IndexBuildDescription(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.IndexBuildDescription getDescription();
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexBuildMetadata(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.table.YdbTable.IndexBuildDescription.Builder subBuilder = null;
if (description_ != null) {
subBuilder = description_.toBuilder();
}
description_ = input.readMessage(com.yandex.ydb.table.YdbTable.IndexBuildDescription.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(description_);
description_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 29: {
progress_ = input.readFloat();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.IndexBuildMetadata.class, com.yandex.ydb.table.YdbTable.IndexBuildMetadata.Builder.class);
}
public static final int DESCRIPTION_FIELD_NUMBER = 1;
private com.yandex.ydb.table.YdbTable.IndexBuildDescription description_;
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return description_ != null;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return The description.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildDescription getDescription() {
return description_ == null ? com.yandex.ydb.table.YdbTable.IndexBuildDescription.getDefaultInstance() : description_;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildDescriptionOrBuilder getDescriptionOrBuilder() {
return getDescription();
}
public static final int STATE_FIELD_NUMBER = 2;
private int state_;
/**
* .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 com.yandex.ydb.table.YdbTable.IndexBuildState.State getState() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.IndexBuildState.State result = com.yandex.ydb.table.YdbTable.IndexBuildState.State.valueOf(state_);
return result == null ? com.yandex.ydb.table.YdbTable.IndexBuildState.State.UNRECOGNIZED : result;
}
public static final int PROGRESS_FIELD_NUMBER = 3;
private float progress_;
/**
* 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 (description_ != null) {
output.writeMessage(1, getDescription());
}
if (state_ != com.yandex.ydb.table.YdbTable.IndexBuildState.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, state_);
}
if (java.lang.Float.floatToRawIntBits(progress_) != 0) {
output.writeFloat(3, progress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (description_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDescription());
}
if (state_ != com.yandex.ydb.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.IndexBuildMetadata)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.IndexBuildMetadata other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.IndexBuildMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.IndexBuildMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.IndexBuildMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.IndexBuildMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.IndexBuildMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.IndexBuildMetadata.class, com.yandex.ydb.table.YdbTable.IndexBuildMetadata.Builder.class);
}
// Construct using com.yandex.ydb.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (descriptionBuilder_ == null) {
description_ = null;
} else {
description_ = null;
descriptionBuilder_ = null;
}
state_ = 0;
progress_ = 0F;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_IndexBuildMetadata_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildMetadata getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.IndexBuildMetadata.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildMetadata build() {
com.yandex.ydb.table.YdbTable.IndexBuildMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildMetadata buildPartial() {
com.yandex.ydb.table.YdbTable.IndexBuildMetadata result = new com.yandex.ydb.table.YdbTable.IndexBuildMetadata(this);
if (descriptionBuilder_ == null) {
result.description_ = description_;
} else {
result.description_ = descriptionBuilder_.build();
}
result.state_ = state_;
result.progress_ = progress_;
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 com.yandex.ydb.table.YdbTable.IndexBuildMetadata) {
return mergeFrom((com.yandex.ydb.table.YdbTable.IndexBuildMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.IndexBuildMetadata other) {
if (other == com.yandex.ydb.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.IndexBuildMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.IndexBuildMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.table.YdbTable.IndexBuildDescription description_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.IndexBuildDescription, com.yandex.ydb.table.YdbTable.IndexBuildDescription.Builder, com.yandex.ydb.table.YdbTable.IndexBuildDescriptionOrBuilder> descriptionBuilder_;
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return descriptionBuilder_ != null || description_ != null;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
* @return The description.
*/
public com.yandex.ydb.table.YdbTable.IndexBuildDescription getDescription() {
if (descriptionBuilder_ == null) {
return description_ == null ? com.yandex.ydb.table.YdbTable.IndexBuildDescription.getDefaultInstance() : description_;
} else {
return descriptionBuilder_.getMessage();
}
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public Builder setDescription(com.yandex.ydb.table.YdbTable.IndexBuildDescription value) {
if (descriptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
} else {
descriptionBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public Builder setDescription(
com.yandex.ydb.table.YdbTable.IndexBuildDescription.Builder builderForValue) {
if (descriptionBuilder_ == null) {
description_ = builderForValue.build();
onChanged();
} else {
descriptionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public Builder mergeDescription(com.yandex.ydb.table.YdbTable.IndexBuildDescription value) {
if (descriptionBuilder_ == null) {
if (description_ != null) {
description_ =
com.yandex.ydb.table.YdbTable.IndexBuildDescription.newBuilder(description_).mergeFrom(value).buildPartial();
} else {
description_ = value;
}
onChanged();
} else {
descriptionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public Builder clearDescription() {
if (descriptionBuilder_ == null) {
description_ = null;
onChanged();
} else {
description_ = null;
descriptionBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public com.yandex.ydb.table.YdbTable.IndexBuildDescription.Builder getDescriptionBuilder() {
onChanged();
return getDescriptionFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
public com.yandex.ydb.table.YdbTable.IndexBuildDescriptionOrBuilder getDescriptionOrBuilder() {
if (descriptionBuilder_ != null) {
return descriptionBuilder_.getMessageOrBuilder();
} else {
return description_ == null ?
com.yandex.ydb.table.YdbTable.IndexBuildDescription.getDefaultInstance() : description_;
}
}
/**
* .Ydb.Table.IndexBuildDescription description = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.IndexBuildDescription, com.yandex.ydb.table.YdbTable.IndexBuildDescription.Builder, com.yandex.ydb.table.YdbTable.IndexBuildDescriptionOrBuilder>
getDescriptionFieldBuilder() {
if (descriptionBuilder_ == null) {
descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.IndexBuildDescription, com.yandex.ydb.table.YdbTable.IndexBuildDescription.Builder, com.yandex.ydb.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;
onChanged();
return this;
}
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @return The state.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.IndexBuildState.State getState() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.IndexBuildState.State result = com.yandex.ydb.table.YdbTable.IndexBuildState.State.valueOf(state_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.IndexBuildState.State value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Table.IndexBuildState.State state = 2;
* @return This builder for chaining.
*/
public Builder clearState() {
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;
onChanged();
return this;
}
/**
* float progress = 3;
* @return This builder for chaining.
*/
public Builder clearProgress() {
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 com.yandex.ydb.table.YdbTable.IndexBuildMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.IndexBuildMetadata();
}
public static com.yandex.ydb.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 {
return new IndexBuildMetadata(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChangefeedMode(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ChangefeedMode.class, com.yandex.ydb.table.YdbTable.ChangefeedMode.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.ChangefeedMode.Mode}
*/
public enum Mode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* MODE_UNSPECIFIED = 0;
*/
MODE_UNSPECIFIED(0),
/**
*
* Only the key component of the modified row
*
*
* MODE_KEYS_ONLY = 1;
*/
MODE_KEYS_ONLY(1),
/**
*
* Updated columns
*
*
* MODE_UPDATES = 2;
*/
MODE_UPDATES(2),
/**
*
* The entire row, as it appears after it was modified
*
*
* MODE_NEW_IMAGE = 3;
*/
MODE_NEW_IMAGE(3),
/**
*
* The entire row, as it appeared before it was modified
*
*
* MODE_OLD_IMAGE = 4;
*/
MODE_OLD_IMAGE(4),
/**
*
* Both new and old images of the row
*
*
* MODE_NEW_AND_OLD_IMAGES = 5;
*/
MODE_NEW_AND_OLD_IMAGES(5),
UNRECOGNIZED(-1),
;
/**
* MODE_UNSPECIFIED = 0;
*/
public static final int MODE_UNSPECIFIED_VALUE = 0;
/**
*
* Only the key component of the modified row
*
*
* MODE_KEYS_ONLY = 1;
*/
public static final int MODE_KEYS_ONLY_VALUE = 1;
/**
*
* Updated columns
*
*
* MODE_UPDATES = 2;
*/
public static final int MODE_UPDATES_VALUE = 2;
/**
*
* The entire row, as it appears after it was modified
*
*
* MODE_NEW_IMAGE = 3;
*/
public static final int MODE_NEW_IMAGE_VALUE = 3;
/**
*
* The entire row, as it appeared before it was modified
*
*
* MODE_OLD_IMAGE = 4;
*/
public static final int MODE_OLD_IMAGE_VALUE = 4;
/**
*
* Both new and old images of the row
*
*
* MODE_NEW_AND_OLD_IMAGES = 5;
*/
public static final int MODE_NEW_AND_OLD_IMAGES_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Mode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Mode forNumber(int value) {
switch (value) {
case 0: return MODE_UNSPECIFIED;
case 1: return MODE_KEYS_ONLY;
case 2: return MODE_UPDATES;
case 3: return MODE_NEW_IMAGE;
case 4: return MODE_OLD_IMAGE;
case 5: return MODE_NEW_AND_OLD_IMAGES;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Mode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Mode findValueByNumber(int number) {
return Mode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.ChangefeedMode.getDescriptor().getEnumTypes().get(0);
}
private static final Mode[] VALUES = values();
public static Mode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Mode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.ChangefeedMode.Mode)
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ChangefeedMode)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ChangefeedMode other = (com.yandex.ydb.table.YdbTable.ChangefeedMode) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.ChangefeedMode prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Table.ChangefeedMode}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ChangefeedMode)
com.yandex.ydb.table.YdbTable.ChangefeedModeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ChangefeedMode.class, com.yandex.ydb.table.YdbTable.ChangefeedMode.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ChangefeedMode.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedMode_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedMode getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ChangefeedMode.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedMode build() {
com.yandex.ydb.table.YdbTable.ChangefeedMode result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedMode buildPartial() {
com.yandex.ydb.table.YdbTable.ChangefeedMode result = new com.yandex.ydb.table.YdbTable.ChangefeedMode(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.ChangefeedMode) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ChangefeedMode)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ChangefeedMode other) {
if (other == com.yandex.ydb.table.YdbTable.ChangefeedMode.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ChangefeedMode parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ChangefeedMode) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.ChangefeedMode)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ChangefeedMode)
private static final com.yandex.ydb.table.YdbTable.ChangefeedMode DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ChangefeedMode();
}
public static com.yandex.ydb.table.YdbTable.ChangefeedMode getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChangefeedMode parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChangefeedMode(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedMode getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangefeedFormatOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ChangefeedFormat)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code Ydb.Table.ChangefeedFormat}
*/
public static final class ChangefeedFormat extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ChangefeedFormat)
ChangefeedFormatOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangefeedFormat.newBuilder() to construct.
private ChangefeedFormat(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangefeedFormat() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChangefeedFormat();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChangefeedFormat(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ChangefeedFormat.class, com.yandex.ydb.table.YdbTable.ChangefeedFormat.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.ChangefeedFormat.Format}
*/
public enum Format
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FORMAT_UNSPECIFIED = 0;
*/
FORMAT_UNSPECIFIED(0),
/**
* FORMAT_JSON = 1;
*/
FORMAT_JSON(1),
UNRECOGNIZED(-1),
;
/**
* FORMAT_UNSPECIFIED = 0;
*/
public static final int FORMAT_UNSPECIFIED_VALUE = 0;
/**
* FORMAT_JSON = 1;
*/
public static final int FORMAT_JSON_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Format valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Format forNumber(int value) {
switch (value) {
case 0: return FORMAT_UNSPECIFIED;
case 1: return FORMAT_JSON;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Format> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Format findValueByNumber(int number) {
return Format.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.ChangefeedFormat.getDescriptor().getEnumTypes().get(0);
}
private static final Format[] VALUES = values();
public static Format valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Format(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.ChangefeedFormat.Format)
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ChangefeedFormat)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ChangefeedFormat other = (com.yandex.ydb.table.YdbTable.ChangefeedFormat) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.ChangefeedFormat prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Table.ChangefeedFormat}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ChangefeedFormat)
com.yandex.ydb.table.YdbTable.ChangefeedFormatOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ChangefeedFormat.class, com.yandex.ydb.table.YdbTable.ChangefeedFormat.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ChangefeedFormat.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedFormat_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedFormat getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ChangefeedFormat.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedFormat build() {
com.yandex.ydb.table.YdbTable.ChangefeedFormat result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedFormat buildPartial() {
com.yandex.ydb.table.YdbTable.ChangefeedFormat result = new com.yandex.ydb.table.YdbTable.ChangefeedFormat(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.ChangefeedFormat) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ChangefeedFormat)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ChangefeedFormat other) {
if (other == com.yandex.ydb.table.YdbTable.ChangefeedFormat.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ChangefeedFormat parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ChangefeedFormat) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.ChangefeedFormat)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ChangefeedFormat)
private static final com.yandex.ydb.table.YdbTable.ChangefeedFormat DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ChangefeedFormat();
}
public static com.yandex.ydb.table.YdbTable.ChangefeedFormat getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChangefeedFormat parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChangefeedFormat(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedFormat getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangefeedOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.Changefeed)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The mode.
*/
com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode getMode();
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The enum numeric value on the wire for format.
*/
int getFormatValue();
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format getFormat();
}
/**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Changefeed(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
mode_ = rawValue;
break;
}
case 24: {
int rawValue = input.readEnum();
format_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_Changefeed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_Changefeed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.Changefeed.class, com.yandex.ydb.table.YdbTable.Changefeed.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
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_;
/**
*
* 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 com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode getMode() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode result = com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.valueOf(mode_);
return result == null ? com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.UNRECOGNIZED : result;
}
public static final int FORMAT_FIELD_NUMBER = 3;
private int format_;
/**
*
* 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 com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format getFormat() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format result = com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.valueOf(format_);
return result == null ? com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.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 (mode_ != com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, mode_);
}
if (format_ != com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
output.writeEnum(3, format_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (mode_ != com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, mode_);
}
if (format_ != com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, format_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.Changefeed)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.Changefeed other = (com.yandex.ydb.table.YdbTable.Changefeed) obj;
if (!getName()
.equals(other.getName())) return false;
if (mode_ != other.mode_) return false;
if (format_ != other.format_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
hash = (37 * hash) + FORMAT_FIELD_NUMBER;
hash = (53 * hash) + format_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.Changefeed parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.Changefeed parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.Changefeed parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.Changefeed parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.Changefeed parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.Changefeed parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.Changefeed parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.ChangefeedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_Changefeed_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_Changefeed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.Changefeed.class, com.yandex.ydb.table.YdbTable.Changefeed.Builder.class);
}
// Construct using com.yandex.ydb.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
mode_ = 0;
format_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_Changefeed_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.Changefeed getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.Changefeed.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.Changefeed build() {
com.yandex.ydb.table.YdbTable.Changefeed result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.Changefeed buildPartial() {
com.yandex.ydb.table.YdbTable.Changefeed result = new com.yandex.ydb.table.YdbTable.Changefeed(this);
result.name_ = name_;
result.mode_ = mode_;
result.format_ = format_;
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 com.yandex.ydb.table.YdbTable.Changefeed) {
return mergeFrom((com.yandex.ydb.table.YdbTable.Changefeed)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.Changefeed other) {
if (other == com.yandex.ydb.table.YdbTable.Changefeed.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (other.format_ != 0) {
setFormatValue(other.getFormatValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.Changefeed parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.Changefeed) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
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;
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;
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 com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode getMode() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode result = com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.valueOf(mode_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode value) {
if (value == null) {
throw new NullPointerException();
}
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() {
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;
onChanged();
return this;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format getFormat() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format result = com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.valueOf(format_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format value) {
if (value == null) {
throw new NullPointerException();
}
format_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return This builder for chaining.
*/
public Builder clearFormat() {
format_ = 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.Changefeed)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.Changefeed)
private static final com.yandex.ydb.table.YdbTable.Changefeed DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.Changefeed();
}
public static com.yandex.ydb.table.YdbTable.Changefeed getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Changefeed parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Changefeed(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.Changefeed getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ChangefeedDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ChangefeedDescription)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the feed
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
*
* Mode specifies the information that will be written to the feed
*
*
* .Ydb.Table.ChangefeedMode.Mode mode = 2;
* @return The mode.
*/
com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode getMode();
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The enum numeric value on the wire for format.
*/
int getFormatValue();
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format getFormat();
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return The state.
*/
com.yandex.ydb.table.YdbTable.ChangefeedDescription.State getState();
}
/**
* Protobuf type {@code Ydb.Table.ChangefeedDescription}
*/
public static final class ChangefeedDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ChangefeedDescription)
ChangefeedDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChangefeedDescription.newBuilder() to construct.
private ChangefeedDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChangefeedDescription() {
name_ = "";
mode_ = 0;
format_ = 0;
state_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChangefeedDescription();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ChangefeedDescription(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
mode_ = rawValue;
break;
}
case 24: {
int rawValue = input.readEnum();
format_ = rawValue;
break;
}
case 32: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ChangefeedDescription.class, com.yandex.ydb.table.YdbTable.ChangefeedDescription.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.ChangefeedDescription.State}
*/
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
* STATE_ENABLED = 1;
*/
STATE_ENABLED(1),
/**
* STATE_DISABLED = 2;
*/
STATE_DISABLED(2),
UNRECOGNIZED(-1),
;
/**
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
* STATE_ENABLED = 1;
*/
public static final int STATE_ENABLED_VALUE = 1;
/**
* STATE_DISABLED = 2;
*/
public static final int STATE_DISABLED_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 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;
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 com.yandex.ydb.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;
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_;
/**
*
* 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 com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode getMode() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode result = com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.valueOf(mode_);
return result == null ? com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.UNRECOGNIZED : result;
}
public static final int FORMAT_FIELD_NUMBER = 3;
private int format_;
/**
*
* 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 com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format getFormat() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format result = com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.valueOf(format_);
return result == null ? com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.UNRECOGNIZED : result;
}
public static final int STATE_FIELD_NUMBER = 4;
private int state_;
/**
*
* 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 com.yandex.ydb.table.YdbTable.ChangefeedDescription.State getState() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedDescription.State result = com.yandex.ydb.table.YdbTable.ChangefeedDescription.State.valueOf(state_);
return result == null ? com.yandex.ydb.table.YdbTable.ChangefeedDescription.State.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 (mode_ != com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, mode_);
}
if (format_ != com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
output.writeEnum(3, format_);
}
if (state_ != com.yandex.ydb.table.YdbTable.ChangefeedDescription.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, state_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (mode_ != com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, mode_);
}
if (format_ != com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.FORMAT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, format_);
}
if (state_ != com.yandex.ydb.table.YdbTable.ChangefeedDescription.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, state_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ChangefeedDescription)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ChangefeedDescription other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ChangefeedDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ChangefeedDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ChangefeedDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ChangefeedDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ChangefeedDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ChangefeedDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.ChangefeedDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ChangefeedDescription.class, com.yandex.ydb.table.YdbTable.ChangefeedDescription.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ChangefeedDescription.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
mode_ = 0;
format_ = 0;
state_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ChangefeedDescription_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedDescription getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ChangefeedDescription.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedDescription build() {
com.yandex.ydb.table.YdbTable.ChangefeedDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedDescription buildPartial() {
com.yandex.ydb.table.YdbTable.ChangefeedDescription result = new com.yandex.ydb.table.YdbTable.ChangefeedDescription(this);
result.name_ = name_;
result.mode_ = mode_;
result.format_ = format_;
result.state_ = state_;
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 com.yandex.ydb.table.YdbTable.ChangefeedDescription) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ChangefeedDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ChangefeedDescription other) {
if (other == com.yandex.ydb.table.YdbTable.ChangefeedDescription.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (other.format_ != 0) {
setFormatValue(other.getFormatValue());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ChangefeedDescription parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ChangefeedDescription) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
*
* Name of the feed
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
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;
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;
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 com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode getMode() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode result = com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode.valueOf(mode_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.ChangefeedMode.Mode value) {
if (value == null) {
throw new NullPointerException();
}
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() {
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;
onChanged();
return this;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return The format.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format getFormat() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format result = com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format.valueOf(format_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.ChangefeedFormat.Format value) {
if (value == null) {
throw new NullPointerException();
}
format_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Format of the data
*
*
* .Ydb.Table.ChangefeedFormat.Format format = 3;
* @return This builder for chaining.
*/
public Builder clearFormat() {
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;
onChanged();
return this;
}
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return The state.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedDescription.State getState() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ChangefeedDescription.State result = com.yandex.ydb.table.YdbTable.ChangefeedDescription.State.valueOf(state_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.ChangefeedDescription.State value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* State of the feed
*
*
* .Ydb.Table.ChangefeedDescription.State state = 4;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 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.ChangefeedDescription)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ChangefeedDescription)
private static final com.yandex.ydb.table.YdbTable.ChangefeedDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ChangefeedDescription();
}
public static com.yandex.ydb.table.YdbTable.ChangefeedDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChangefeedDescription parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ChangefeedDescription(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ChangefeedDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StoragePoolOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.StoragePool)
com.google.protobuf.MessageOrBuilder {
/**
* string media = 1;
* @return The media.
*/
java.lang.String getMedia();
/**
* string media = 1;
* @return The bytes for media.
*/
com.google.protobuf.ByteString
getMediaBytes();
}
/**
* Protobuf type {@code Ydb.Table.StoragePool}
*/
public static final class StoragePool extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.StoragePool)
StoragePoolOrBuilder {
private static final long serialVersionUID = 0L;
// Use StoragePool.newBuilder() to construct.
private StoragePool(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StoragePool() {
media_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StoragePool();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StoragePool(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
media_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePool_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePool_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.StoragePool.class, com.yandex.ydb.table.YdbTable.StoragePool.Builder.class);
}
public static final int MEDIA_FIELD_NUMBER = 1;
private volatile java.lang.Object media_;
/**
* string media = 1;
* @return The media.
*/
@java.lang.Override
public java.lang.String getMedia() {
java.lang.Object ref = media_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
media_ = s;
return s;
}
}
/**
* string media = 1;
* @return The bytes for media.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMediaBytes() {
java.lang.Object ref = media_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
media_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(media_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, media_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(media_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, media_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.StoragePool)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.StoragePool other = (com.yandex.ydb.table.YdbTable.StoragePool) obj;
if (!getMedia()
.equals(other.getMedia())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MEDIA_FIELD_NUMBER;
hash = (53 * hash) + getMedia().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.StoragePool parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.StoragePool prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Table.StoragePool}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.StoragePool)
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePool_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePool_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.StoragePool.class, com.yandex.ydb.table.YdbTable.StoragePool.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.StoragePool.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
media_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePool_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool build() {
com.yandex.ydb.table.YdbTable.StoragePool result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool buildPartial() {
com.yandex.ydb.table.YdbTable.StoragePool result = new com.yandex.ydb.table.YdbTable.StoragePool(this);
result.media_ = media_;
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 com.yandex.ydb.table.YdbTable.StoragePool) {
return mergeFrom((com.yandex.ydb.table.YdbTable.StoragePool)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.StoragePool other) {
if (other == com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance()) return this;
if (!other.getMedia().isEmpty()) {
media_ = other.media_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.StoragePool parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.StoragePool) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object media_ = "";
/**
* string media = 1;
* @return The media.
*/
public java.lang.String getMedia() {
java.lang.Object ref = media_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
media_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string media = 1;
* @return The bytes for media.
*/
public com.google.protobuf.ByteString
getMediaBytes() {
java.lang.Object ref = media_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
media_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string media = 1;
* @param value The media to set.
* @return This builder for chaining.
*/
public Builder setMedia(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
media_ = value;
onChanged();
return this;
}
/**
* string media = 1;
* @return This builder for chaining.
*/
public Builder clearMedia() {
media_ = getDefaultInstance().getMedia();
onChanged();
return this;
}
/**
* string media = 1;
* @param value The bytes for media to set.
* @return This builder for chaining.
*/
public Builder setMediaBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
media_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.StoragePool)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.StoragePool)
private static final com.yandex.ydb.table.YdbTable.StoragePool DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.StoragePool();
}
public static com.yandex.ydb.table.YdbTable.StoragePool getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StoragePool parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StoragePool(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StoragePolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.StoragePolicy)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return Whether the syslog field is set.
*/
boolean hasSyslog();
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return The syslog.
*/
com.yandex.ydb.table.YdbTable.StoragePool getSyslog();
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getSyslogOrBuilder();
/**
* .Ydb.Table.StoragePool log = 3;
* @return Whether the log field is set.
*/
boolean hasLog();
/**
* .Ydb.Table.StoragePool log = 3;
* @return The log.
*/
com.yandex.ydb.table.YdbTable.StoragePool getLog();
/**
* .Ydb.Table.StoragePool log = 3;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getLogOrBuilder();
/**
* .Ydb.Table.StoragePool data = 4;
* @return Whether the data field is set.
*/
boolean hasData();
/**
* .Ydb.Table.StoragePool data = 4;
* @return The data.
*/
com.yandex.ydb.table.YdbTable.StoragePool getData();
/**
* .Ydb.Table.StoragePool data = 4;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder();
/**
* .Ydb.Table.StoragePool external = 5;
* @return Whether the external field is set.
*/
boolean hasExternal();
/**
* .Ydb.Table.StoragePool external = 5;
* @return The external.
*/
com.yandex.ydb.table.YdbTable.StoragePool getExternal();
/**
* .Ydb.Table.StoragePool external = 5;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder();
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The enum numeric value on the wire for keepInMemory.
*/
int getKeepInMemoryValue();
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The keepInMemory.
*/
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getKeepInMemory();
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
java.util.List
getColumnFamiliesList();
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy getColumnFamilies(int index);
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
int getColumnFamiliesCount();
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
java.util.List extends com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder>
getColumnFamiliesOrBuilderList();
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder getColumnFamiliesOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Table.StoragePolicy}
*/
public static final class StoragePolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.StoragePolicy)
StoragePolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use StoragePolicy.newBuilder() to construct.
private StoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StoragePolicy() {
presetName_ = "";
keepInMemory_ = 0;
columnFamilies_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StoragePolicy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StoragePolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
presetName_ = s;
break;
}
case 18: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (syslog_ != null) {
subBuilder = syslog_.toBuilder();
}
syslog_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(syslog_);
syslog_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (log_ != null) {
subBuilder = log_.toBuilder();
}
log_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(log_);
log_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (external_ != null) {
subBuilder = external_.toBuilder();
}
external_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(external_);
external_ = subBuilder.buildPartial();
}
break;
}
case 48: {
int rawValue = input.readEnum();
keepInMemory_ = rawValue;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
columnFamilies_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
columnFamilies_.add(
input.readMessage(com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
columnFamilies_ = java.util.Collections.unmodifiableList(columnFamilies_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.StoragePolicy.class, com.yandex.ydb.table.YdbTable.StoragePolicy.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object presetName_;
/**
* string preset_name = 1;
* @return The presetName.
*/
@java.lang.Override
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SYSLOG_FIELD_NUMBER = 2;
private com.yandex.ydb.table.YdbTable.StoragePool syslog_;
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return Whether the syslog field is set.
*/
@java.lang.Override
public boolean hasSyslog() {
return syslog_ != null;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return The syslog.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getSyslog() {
return syslog_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : syslog_;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getSyslogOrBuilder() {
return getSyslog();
}
public static final int LOG_FIELD_NUMBER = 3;
private com.yandex.ydb.table.YdbTable.StoragePool log_;
/**
* .Ydb.Table.StoragePool log = 3;
* @return Whether the log field is set.
*/
@java.lang.Override
public boolean hasLog() {
return log_ != null;
}
/**
* .Ydb.Table.StoragePool log = 3;
* @return The log.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getLog() {
return log_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : log_;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getLogOrBuilder() {
return getLog();
}
public static final int DATA_FIELD_NUMBER = 4;
private com.yandex.ydb.table.YdbTable.StoragePool data_;
/**
* .Ydb.Table.StoragePool data = 4;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return data_ != null;
}
/**
* .Ydb.Table.StoragePool data = 4;
* @return The data.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getData() {
return data_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
return getData();
}
public static final int EXTERNAL_FIELD_NUMBER = 5;
private com.yandex.ydb.table.YdbTable.StoragePool external_;
/**
* .Ydb.Table.StoragePool external = 5;
* @return Whether the external field is set.
*/
@java.lang.Override
public boolean hasExternal() {
return external_ != null;
}
/**
* .Ydb.Table.StoragePool external = 5;
* @return The external.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getExternal() {
return external_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
return getExternal();
}
public static final int KEEP_IN_MEMORY_FIELD_NUMBER = 6;
private int keepInMemory_;
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The enum numeric value on the wire for keepInMemory.
*/
@java.lang.Override public int getKeepInMemoryValue() {
return keepInMemory_;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The keepInMemory.
*/
@java.lang.Override public com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(keepInMemory_);
return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
public static final int COLUMN_FAMILIES_FIELD_NUMBER = 7;
private java.util.List columnFamilies_;
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public java.util.List getColumnFamiliesList() {
return columnFamilies_;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder>
getColumnFamiliesOrBuilderList() {
return columnFamilies_;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public int getColumnFamiliesCount() {
return columnFamilies_.size();
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy getColumnFamilies(int index) {
return columnFamilies_.get(index);
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder getColumnFamiliesOrBuilder(
int index) {
return columnFamilies_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, presetName_);
}
if (syslog_ != null) {
output.writeMessage(2, getSyslog());
}
if (log_ != null) {
output.writeMessage(3, getLog());
}
if (data_ != null) {
output.writeMessage(4, getData());
}
if (external_ != null) {
output.writeMessage(5, getExternal());
}
if (keepInMemory_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(6, keepInMemory_);
}
for (int i = 0; i < columnFamilies_.size(); i++) {
output.writeMessage(7, columnFamilies_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
if (syslog_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSyslog());
}
if (log_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getLog());
}
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getData());
}
if (external_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getExternal());
}
if (keepInMemory_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, keepInMemory_);
}
for (int i = 0; i < columnFamilies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, columnFamilies_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.StoragePolicy)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.StoragePolicy other = (com.yandex.ydb.table.YdbTable.StoragePolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (hasSyslog() != other.hasSyslog()) return false;
if (hasSyslog()) {
if (!getSyslog()
.equals(other.getSyslog())) return false;
}
if (hasLog() != other.hasLog()) return false;
if (hasLog()) {
if (!getLog()
.equals(other.getLog())) return false;
}
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (hasExternal() != other.hasExternal()) return false;
if (hasExternal()) {
if (!getExternal()
.equals(other.getExternal())) return false;
}
if (keepInMemory_ != other.keepInMemory_) return false;
if (!getColumnFamiliesList()
.equals(other.getColumnFamiliesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
if (hasSyslog()) {
hash = (37 * hash) + SYSLOG_FIELD_NUMBER;
hash = (53 * hash) + getSyslog().hashCode();
}
if (hasLog()) {
hash = (37 * hash) + LOG_FIELD_NUMBER;
hash = (53 * hash) + getLog().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasExternal()) {
hash = (37 * hash) + EXTERNAL_FIELD_NUMBER;
hash = (53 * hash) + getExternal().hashCode();
}
hash = (37 * hash) + KEEP_IN_MEMORY_FIELD_NUMBER;
hash = (53 * hash) + keepInMemory_;
if (getColumnFamiliesCount() > 0) {
hash = (37 * hash) + COLUMN_FAMILIES_FIELD_NUMBER;
hash = (53 * hash) + getColumnFamiliesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.StoragePolicy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Table.StoragePolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.StoragePolicy)
com.yandex.ydb.table.YdbTable.StoragePolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.StoragePolicy.class, com.yandex.ydb.table.YdbTable.StoragePolicy.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.StoragePolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getColumnFamiliesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
presetName_ = "";
if (syslogBuilder_ == null) {
syslog_ = null;
} else {
syslog_ = null;
syslogBuilder_ = null;
}
if (logBuilder_ == null) {
log_ = null;
} else {
log_ = null;
logBuilder_ = null;
}
if (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
if (externalBuilder_ == null) {
external_ = null;
} else {
external_ = null;
externalBuilder_ = null;
}
keepInMemory_ = 0;
if (columnFamiliesBuilder_ == null) {
columnFamilies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
columnFamiliesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StoragePolicy_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePolicy getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.StoragePolicy.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePolicy build() {
com.yandex.ydb.table.YdbTable.StoragePolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePolicy buildPartial() {
com.yandex.ydb.table.YdbTable.StoragePolicy result = new com.yandex.ydb.table.YdbTable.StoragePolicy(this);
int from_bitField0_ = bitField0_;
result.presetName_ = presetName_;
if (syslogBuilder_ == null) {
result.syslog_ = syslog_;
} else {
result.syslog_ = syslogBuilder_.build();
}
if (logBuilder_ == null) {
result.log_ = log_;
} else {
result.log_ = logBuilder_.build();
}
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (externalBuilder_ == null) {
result.external_ = external_;
} else {
result.external_ = externalBuilder_.build();
}
result.keepInMemory_ = keepInMemory_;
if (columnFamiliesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
columnFamilies_ = java.util.Collections.unmodifiableList(columnFamilies_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.columnFamilies_ = columnFamilies_;
} else {
result.columnFamilies_ = columnFamiliesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.StoragePolicy) {
return mergeFrom((com.yandex.ydb.table.YdbTable.StoragePolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.StoragePolicy other) {
if (other == com.yandex.ydb.table.YdbTable.StoragePolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
onChanged();
}
if (other.hasSyslog()) {
mergeSyslog(other.getSyslog());
}
if (other.hasLog()) {
mergeLog(other.getLog());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasExternal()) {
mergeExternal(other.getExternal());
}
if (other.keepInMemory_ != 0) {
setKeepInMemoryValue(other.getKeepInMemoryValue());
}
if (columnFamiliesBuilder_ == null) {
if (!other.columnFamilies_.isEmpty()) {
if (columnFamilies_.isEmpty()) {
columnFamilies_ = other.columnFamilies_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureColumnFamiliesIsMutable();
columnFamilies_.addAll(other.columnFamilies_);
}
onChanged();
}
} else {
if (!other.columnFamilies_.isEmpty()) {
if (columnFamiliesBuilder_.isEmpty()) {
columnFamiliesBuilder_.dispose();
columnFamiliesBuilder_ = null;
columnFamilies_ = other.columnFamilies_;
bitField0_ = (bitField0_ & ~0x00000001);
columnFamiliesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getColumnFamiliesFieldBuilder() : null;
} else {
columnFamiliesBuilder_.addAllMessages(other.columnFamilies_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.StoragePolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.StoragePolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
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;
onChanged();
return this;
}
private com.yandex.ydb.table.YdbTable.StoragePool syslog_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder> syslogBuilder_;
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return Whether the syslog field is set.
*/
public boolean hasSyslog() {
return syslogBuilder_ != null || syslog_ != null;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
* @return The syslog.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getSyslog() {
if (syslogBuilder_ == null) {
return syslog_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : syslog_;
} else {
return syslogBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public Builder setSyslog(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (syslogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
syslog_ = value;
onChanged();
} else {
syslogBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public Builder setSyslog(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (syslogBuilder_ == null) {
syslog_ = builderForValue.build();
onChanged();
} else {
syslogBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public Builder mergeSyslog(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (syslogBuilder_ == null) {
if (syslog_ != null) {
syslog_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(syslog_).mergeFrom(value).buildPartial();
} else {
syslog_ = value;
}
onChanged();
} else {
syslogBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public Builder clearSyslog() {
if (syslogBuilder_ == null) {
syslog_ = null;
onChanged();
} else {
syslog_ = null;
syslogBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getSyslogBuilder() {
onChanged();
return getSyslogFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getSyslogOrBuilder() {
if (syslogBuilder_ != null) {
return syslogBuilder_.getMessageOrBuilder();
} else {
return syslog_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : syslog_;
}
}
/**
* .Ydb.Table.StoragePool syslog = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getSyslogFieldBuilder() {
if (syslogBuilder_ == null) {
syslogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getSyslog(),
getParentForChildren(),
isClean());
syslog_ = null;
}
return syslogBuilder_;
}
private com.yandex.ydb.table.YdbTable.StoragePool log_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder> logBuilder_;
/**
* .Ydb.Table.StoragePool log = 3;
* @return Whether the log field is set.
*/
public boolean hasLog() {
return logBuilder_ != null || log_ != null;
}
/**
* .Ydb.Table.StoragePool log = 3;
* @return The log.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getLog() {
if (logBuilder_ == null) {
return log_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : log_;
} else {
return logBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public Builder setLog(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (logBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
log_ = value;
onChanged();
} else {
logBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public Builder setLog(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (logBuilder_ == null) {
log_ = builderForValue.build();
onChanged();
} else {
logBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public Builder mergeLog(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (logBuilder_ == null) {
if (log_ != null) {
log_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(log_).mergeFrom(value).buildPartial();
} else {
log_ = value;
}
onChanged();
} else {
logBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public Builder clearLog() {
if (logBuilder_ == null) {
log_ = null;
onChanged();
} else {
log_ = null;
logBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getLogBuilder() {
onChanged();
return getLogFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getLogOrBuilder() {
if (logBuilder_ != null) {
return logBuilder_.getMessageOrBuilder();
} else {
return log_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : log_;
}
}
/**
* .Ydb.Table.StoragePool log = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getLogFieldBuilder() {
if (logBuilder_ == null) {
logBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getLog(),
getParentForChildren(),
isClean());
log_ = null;
}
return logBuilder_;
}
private com.yandex.ydb.table.YdbTable.StoragePool data_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder> dataBuilder_;
/**
* .Ydb.Table.StoragePool data = 4;
* @return Whether the data field is set.
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
* .Ydb.Table.StoragePool data = 4;
* @return The data.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getData() {
if (dataBuilder_ == null) {
return data_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public Builder setData(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public Builder setData(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public Builder mergeData(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
}
/**
* .Ydb.Table.StoragePool data = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private com.yandex.ydb.table.YdbTable.StoragePool external_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder> externalBuilder_;
/**
* .Ydb.Table.StoragePool external = 5;
* @return Whether the external field is set.
*/
public boolean hasExternal() {
return externalBuilder_ != null || external_ != null;
}
/**
* .Ydb.Table.StoragePool external = 5;
* @return The external.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getExternal() {
if (externalBuilder_ == null) {
return external_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : external_;
} else {
return externalBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public Builder setExternal(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
external_ = value;
onChanged();
} else {
externalBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public Builder setExternal(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (externalBuilder_ == null) {
external_ = builderForValue.build();
onChanged();
} else {
externalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public Builder mergeExternal(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (external_ != null) {
external_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(external_).mergeFrom(value).buildPartial();
} else {
external_ = value;
}
onChanged();
} else {
externalBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public Builder clearExternal() {
if (externalBuilder_ == null) {
external_ = null;
onChanged();
} else {
external_ = null;
externalBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getExternalBuilder() {
onChanged();
return getExternalFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
if (externalBuilder_ != null) {
return externalBuilder_.getMessageOrBuilder();
} else {
return external_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
}
/**
* .Ydb.Table.StoragePool external = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getExternalFieldBuilder() {
if (externalBuilder_ == null) {
externalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getExternal(),
getParentForChildren(),
isClean());
external_ = null;
}
return externalBuilder_;
}
private int keepInMemory_ = 0;
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The enum numeric value on the wire for keepInMemory.
*/
@java.lang.Override public int getKeepInMemoryValue() {
return keepInMemory_;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @param value The enum numeric value on the wire for keepInMemory to set.
* @return This builder for chaining.
*/
public Builder setKeepInMemoryValue(int value) {
keepInMemory_ = value;
onChanged();
return this;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return The keepInMemory.
*/
@java.lang.Override
public com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(keepInMemory_);
return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @param value The keepInMemory to set.
* @return This builder for chaining.
*/
public Builder setKeepInMemory(com.yandex.ydb.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
keepInMemory_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return This builder for chaining.
*/
public Builder clearKeepInMemory() {
keepInMemory_ = 0;
onChanged();
return this;
}
private java.util.List columnFamilies_ =
java.util.Collections.emptyList();
private void ensureColumnFamiliesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
columnFamilies_ = new java.util.ArrayList(columnFamilies_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder> columnFamiliesBuilder_;
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public java.util.List getColumnFamiliesList() {
if (columnFamiliesBuilder_ == null) {
return java.util.Collections.unmodifiableList(columnFamilies_);
} else {
return columnFamiliesBuilder_.getMessageList();
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public int getColumnFamiliesCount() {
if (columnFamiliesBuilder_ == null) {
return columnFamilies_.size();
} else {
return columnFamiliesBuilder_.getCount();
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy getColumnFamilies(int index) {
if (columnFamiliesBuilder_ == null) {
return columnFamilies_.get(index);
} else {
return columnFamiliesBuilder_.getMessage(index);
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder setColumnFamilies(
int index, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy value) {
if (columnFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnFamiliesIsMutable();
columnFamilies_.set(index, value);
onChanged();
} else {
columnFamiliesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder setColumnFamilies(
int index, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder builderForValue) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
columnFamilies_.set(index, builderForValue.build());
onChanged();
} else {
columnFamiliesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addColumnFamilies(com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy value) {
if (columnFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnFamiliesIsMutable();
columnFamilies_.add(value);
onChanged();
} else {
columnFamiliesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addColumnFamilies(
int index, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy value) {
if (columnFamiliesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnFamiliesIsMutable();
columnFamilies_.add(index, value);
onChanged();
} else {
columnFamiliesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addColumnFamilies(
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder builderForValue) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
columnFamilies_.add(builderForValue.build());
onChanged();
} else {
columnFamiliesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addColumnFamilies(
int index, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder builderForValue) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
columnFamilies_.add(index, builderForValue.build());
onChanged();
} else {
columnFamiliesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder addAllColumnFamilies(
java.lang.Iterable extends com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy> values) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, columnFamilies_);
onChanged();
} else {
columnFamiliesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder clearColumnFamilies() {
if (columnFamiliesBuilder_ == null) {
columnFamilies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
columnFamiliesBuilder_.clear();
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public Builder removeColumnFamilies(int index) {
if (columnFamiliesBuilder_ == null) {
ensureColumnFamiliesIsMutable();
columnFamilies_.remove(index);
onChanged();
} else {
columnFamiliesBuilder_.remove(index);
}
return this;
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder getColumnFamiliesBuilder(
int index) {
return getColumnFamiliesFieldBuilder().getBuilder(index);
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder getColumnFamiliesOrBuilder(
int index) {
if (columnFamiliesBuilder_ == null) {
return columnFamilies_.get(index); } else {
return columnFamiliesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public java.util.List extends com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder>
getColumnFamiliesOrBuilderList() {
if (columnFamiliesBuilder_ != null) {
return columnFamiliesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(columnFamilies_);
}
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder addColumnFamiliesBuilder() {
return getColumnFamiliesFieldBuilder().addBuilder(
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.getDefaultInstance());
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder addColumnFamiliesBuilder(
int index) {
return getColumnFamiliesFieldBuilder().addBuilder(
index, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.getDefaultInstance());
}
/**
* repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
public java.util.List
getColumnFamiliesBuilderList() {
return getColumnFamiliesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder>
getColumnFamiliesFieldBuilder() {
if (columnFamiliesBuilder_ == null) {
columnFamiliesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder>(
columnFamilies_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
columnFamilies_ = null;
}
return columnFamiliesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.StoragePolicy)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.StoragePolicy)
private static final com.yandex.ydb.table.YdbTable.StoragePolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.StoragePolicy();
}
public static com.yandex.ydb.table.YdbTable.StoragePolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StoragePolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StoragePolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColumnFamilyPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ColumnFamilyPolicy)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the column family, the name "default" must be used for the
* primary column family that contains as least primary key columns
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return Whether the data field is set.
*/
boolean hasData();
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return The data.
*/
com.yandex.ydb.table.YdbTable.StoragePool getData();
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder();
/**
* .Ydb.Table.StoragePool external = 3;
* @return Whether the external field is set.
*/
boolean hasExternal();
/**
* .Ydb.Table.StoragePool external = 3;
* @return The external.
*/
com.yandex.ydb.table.YdbTable.StoragePool getExternal();
/**
* .Ydb.Table.StoragePool external = 3;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder();
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The enum numeric value on the wire for keepInMemory.
*/
int getKeepInMemoryValue();
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The keepInMemory.
*/
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getKeepInMemory();
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return The enum numeric value on the wire for compression.
*/
int getCompressionValue();
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return The compression.
*/
com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ColumnFamilyPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (external_ != null) {
subBuilder = external_.toBuilder();
}
external_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(external_);
external_ = subBuilder.buildPartial();
}
break;
}
case 32: {
int rawValue = input.readEnum();
keepInMemory_ = rawValue;
break;
}
case 40: {
int rawValue = input.readEnum();
compression_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.class, com.yandex.ydb.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 com.yandex.ydb.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)
}
public static final int NAME_FIELD_NUMBER = 1;
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 com.yandex.ydb.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 data_ != null;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return The data.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getData() {
return data_ == null ? com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
return getData();
}
public static final int EXTERNAL_FIELD_NUMBER = 3;
private com.yandex.ydb.table.YdbTable.StoragePool external_;
/**
* .Ydb.Table.StoragePool external = 3;
* @return Whether the external field is set.
*/
@java.lang.Override
public boolean hasExternal() {
return external_ != null;
}
/**
* .Ydb.Table.StoragePool external = 3;
* @return The external.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getExternal() {
return external_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
return getExternal();
}
public static final int KEEP_IN_MEMORY_FIELD_NUMBER = 4;
private int keepInMemory_;
/**
*
* 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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(keepInMemory_);
return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
public static final int COMPRESSION_FIELD_NUMBER = 5;
private int compression_;
/**
*
* 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 com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Compression getCompression() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Compression result = com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Compression.valueOf(compression_);
return result == null ? com.yandex.ydb.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 (data_ != null) {
output.writeMessage(2, getData());
}
if (external_ != null) {
output.writeMessage(3, getExternal());
}
if (keepInMemory_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(4, keepInMemory_);
}
if (compression_ != com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Compression.COMPRESSION_UNSPECIFIED.getNumber()) {
output.writeEnum(5, compression_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getData());
}
if (external_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getExternal());
}
if (keepInMemory_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, keepInMemory_);
}
if (compression_ != com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Compression.COMPRESSION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, compression_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.class, com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Builder.class);
}
// Construct using com.yandex.ydb.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
if (externalBuilder_ == null) {
external_ = null;
} else {
external_ = null;
externalBuilder_ = null;
}
keepInMemory_ = 0;
compression_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamilyPolicy_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy build() {
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy buildPartial() {
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy result = new com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy(this);
result.name_ = name_;
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
if (externalBuilder_ == null) {
result.external_ = external_;
} else {
result.external_ = externalBuilder_.build();
}
result.keepInMemory_ = keepInMemory_;
result.compression_ = compression_;
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 com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy other) {
if (other == com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
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();
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;
onChanged();
return this;
}
private com.yandex.ydb.table.YdbTable.StoragePool data_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.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 dataBuilder_ != null || data_ != null;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
* @return The data.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getData() {
if (dataBuilder_ == null) {
return data_ == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder setData(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder mergeData(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
}
/**
*
* Storage settings for the column group (default to values in storage policy)
*
*
* .Ydb.Table.StoragePool data = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private com.yandex.ydb.table.YdbTable.StoragePool external_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder> externalBuilder_;
/**
* .Ydb.Table.StoragePool external = 3;
* @return Whether the external field is set.
*/
public boolean hasExternal() {
return externalBuilder_ != null || external_ != null;
}
/**
* .Ydb.Table.StoragePool external = 3;
* @return The external.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getExternal() {
if (externalBuilder_ == null) {
return external_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : external_;
} else {
return externalBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public Builder setExternal(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
external_ = value;
onChanged();
} else {
externalBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public Builder setExternal(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (externalBuilder_ == null) {
external_ = builderForValue.build();
onChanged();
} else {
externalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public Builder mergeExternal(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (external_ != null) {
external_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(external_).mergeFrom(value).buildPartial();
} else {
external_ = value;
}
onChanged();
} else {
externalBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public Builder clearExternal() {
if (externalBuilder_ == null) {
external_ = null;
onChanged();
} else {
external_ = null;
externalBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getExternalBuilder() {
onChanged();
return getExternalFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
if (externalBuilder_ != null) {
return externalBuilder_.getMessageOrBuilder();
} else {
return external_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
}
/**
* .Ydb.Table.StoragePool external = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getExternalFieldBuilder() {
if (externalBuilder_ == null) {
externalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getExternal(),
getParentForChildren(),
isClean());
external_ = null;
}
return externalBuilder_;
}
private int keepInMemory_ = 0;
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The enum numeric value on the wire for keepInMemory.
*/
@java.lang.Override public int getKeepInMemoryValue() {
return keepInMemory_;
}
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @param value The enum numeric value on the wire for keepInMemory to set.
* @return This builder for chaining.
*/
public Builder setKeepInMemoryValue(int value) {
keepInMemory_ = value;
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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(keepInMemory_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
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() {
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;
onChanged();
return this;
}
/**
*
* Optionally specify whether data should be compressed
*
*
* .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5;
* @return The compression.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Compression getCompression() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Compression result = com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Compression.valueOf(compression_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy.Compression value) {
if (value == null) {
throw new NullPointerException();
}
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() {
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 com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ColumnFamilyPolicy();
}
public static com.yandex.ydb.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 {
return new ColumnFamilyPolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CompactionPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
presetName_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CompactionPolicy.class, com.yandex.ydb.table.YdbTable.CompactionPolicy.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.CompactionPolicy)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.CompactionPolicy other = (com.yandex.ydb.table.YdbTable.CompactionPolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.CompactionPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.CompactionPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.CompactionPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CompactionPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CompactionPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.CompactionPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.CompactionPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.CompactionPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CompactionPolicy.class, com.yandex.ydb.table.YdbTable.CompactionPolicy.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.CompactionPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
presetName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CompactionPolicy_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CompactionPolicy getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.CompactionPolicy.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CompactionPolicy build() {
com.yandex.ydb.table.YdbTable.CompactionPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CompactionPolicy buildPartial() {
com.yandex.ydb.table.YdbTable.CompactionPolicy result = new com.yandex.ydb.table.YdbTable.CompactionPolicy(this);
result.presetName_ = presetName_;
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 com.yandex.ydb.table.YdbTable.CompactionPolicy) {
return mergeFrom((com.yandex.ydb.table.YdbTable.CompactionPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.CompactionPolicy other) {
if (other == com.yandex.ydb.table.YdbTable.CompactionPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.CompactionPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.CompactionPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
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;
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 com.yandex.ydb.table.YdbTable.CompactionPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.CompactionPolicy();
}
public static com.yandex.ydb.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 {
return new CompactionPolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CompactionPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExplicitPartitionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ExplicitPartitions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
java.util.List
getSplitPointsList();
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
com.yandex.ydb.ValueProtos.TypedValue getSplitPoints(int index);
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
int getSplitPointsCount();
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
java.util.List extends com.yandex.ydb.ValueProtos.TypedValueOrBuilder>
getSplitPointsOrBuilderList();
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExplicitPartitions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
splitPoints_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
splitPoints_.add(
input.readMessage(com.yandex.ydb.ValueProtos.TypedValue.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
splitPoints_ = java.util.Collections.unmodifiableList(splitPoints_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ExplicitPartitions.class, com.yandex.ydb.table.YdbTable.ExplicitPartitions.Builder.class);
}
public static final int SPLIT_POINTS_FIELD_NUMBER = 1;
private java.util.List splitPoints_;
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public java.util.List getSplitPointsList() {
return splitPoints_;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.ValueProtos.TypedValueOrBuilder>
getSplitPointsOrBuilderList() {
return splitPoints_;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public int getSplitPointsCount() {
return splitPoints_.size();
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypedValue getSplitPoints(int index) {
return splitPoints_.get(index);
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public com.yandex.ydb.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));
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ExplicitPartitions)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ExplicitPartitions other = (com.yandex.ydb.table.YdbTable.ExplicitPartitions) obj;
if (!getSplitPointsList()
.equals(other.getSplitPointsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getSplitPointsCount() > 0) {
hash = (37 * hash) + SPLIT_POINTS_FIELD_NUMBER;
hash = (53 * hash) + getSplitPointsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ExplicitPartitions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ExplicitPartitions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ExplicitPartitions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ExplicitPartitions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ExplicitPartitions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ExplicitPartitions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ExplicitPartitions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.ExplicitPartitionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ExplicitPartitions.class, com.yandex.ydb.table.YdbTable.ExplicitPartitions.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ExplicitPartitions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSplitPointsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (splitPointsBuilder_ == null) {
splitPoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
splitPointsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExplicitPartitions_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExplicitPartitions getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExplicitPartitions build() {
com.yandex.ydb.table.YdbTable.ExplicitPartitions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExplicitPartitions buildPartial() {
com.yandex.ydb.table.YdbTable.ExplicitPartitions result = new com.yandex.ydb.table.YdbTable.ExplicitPartitions(this);
int from_bitField0_ = bitField0_;
if (splitPointsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
splitPoints_ = java.util.Collections.unmodifiableList(splitPoints_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.splitPoints_ = splitPoints_;
} else {
result.splitPoints_ = splitPointsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.ExplicitPartitions) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ExplicitPartitions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ExplicitPartitions other) {
if (other == com.yandex.ydb.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ExplicitPartitions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ExplicitPartitions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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<
com.yandex.ydb.ValueProtos.TypedValue, com.yandex.ydb.ValueProtos.TypedValue.Builder, com.yandex.ydb.ValueProtos.TypedValueOrBuilder> splitPointsBuilder_;
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public java.util.List getSplitPointsList() {
if (splitPointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(splitPoints_);
} else {
return splitPointsBuilder_.getMessageList();
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public int getSplitPointsCount() {
if (splitPointsBuilder_ == null) {
return splitPoints_.size();
} else {
return splitPointsBuilder_.getCount();
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public com.yandex.ydb.ValueProtos.TypedValue getSplitPoints(int index) {
if (splitPointsBuilder_ == null) {
return splitPoints_.get(index);
} else {
return splitPointsBuilder_.getMessage(index);
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder setSplitPoints(
int index, com.yandex.ydb.ValueProtos.TypedValue value) {
if (splitPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSplitPointsIsMutable();
splitPoints_.set(index, value);
onChanged();
} else {
splitPointsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder setSplitPoints(
int index, com.yandex.ydb.ValueProtos.TypedValue.Builder builderForValue) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
splitPoints_.set(index, builderForValue.build());
onChanged();
} else {
splitPointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder addSplitPoints(com.yandex.ydb.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, com.yandex.ydb.ValueProtos.TypedValue value) {
if (splitPointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSplitPointsIsMutable();
splitPoints_.add(index, value);
onChanged();
} else {
splitPointsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder addSplitPoints(
com.yandex.ydb.ValueProtos.TypedValue.Builder builderForValue) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
splitPoints_.add(builderForValue.build());
onChanged();
} else {
splitPointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder addSplitPoints(
int index, com.yandex.ydb.ValueProtos.TypedValue.Builder builderForValue) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
splitPoints_.add(index, builderForValue.build());
onChanged();
} else {
splitPointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder addAllSplitPoints(
java.lang.Iterable extends com.yandex.ydb.ValueProtos.TypedValue> values) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, splitPoints_);
onChanged();
} else {
splitPointsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder clearSplitPoints() {
if (splitPointsBuilder_ == null) {
splitPoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
splitPointsBuilder_.clear();
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder removeSplitPoints(int index) {
if (splitPointsBuilder_ == null) {
ensureSplitPointsIsMutable();
splitPoints_.remove(index);
onChanged();
} else {
splitPointsBuilder_.remove(index);
}
return this;
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public com.yandex.ydb.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 com.yandex.ydb.ValueProtos.TypedValueOrBuilder getSplitPointsOrBuilder(
int index) {
if (splitPointsBuilder_ == null) {
return splitPoints_.get(index); } else {
return splitPointsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public java.util.List extends com.yandex.ydb.ValueProtos.TypedValueOrBuilder>
getSplitPointsOrBuilderList() {
if (splitPointsBuilder_ != null) {
return splitPointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(splitPoints_);
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public com.yandex.ydb.ValueProtos.TypedValue.Builder addSplitPointsBuilder() {
return getSplitPointsFieldBuilder().addBuilder(
com.yandex.ydb.ValueProtos.TypedValue.getDefaultInstance());
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public com.yandex.ydb.ValueProtos.TypedValue.Builder addSplitPointsBuilder(
int index) {
return getSplitPointsFieldBuilder().addBuilder(
index, com.yandex.ydb.ValueProtos.TypedValue.getDefaultInstance());
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public java.util.List
getSplitPointsBuilderList() {
return getSplitPointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.TypedValue, com.yandex.ydb.ValueProtos.TypedValue.Builder, com.yandex.ydb.ValueProtos.TypedValueOrBuilder>
getSplitPointsFieldBuilder() {
if (splitPointsBuilder_ == null) {
splitPointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.ValueProtos.TypedValue, com.yandex.ydb.ValueProtos.TypedValue.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ExplicitPartitions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ExplicitPartitions();
}
public static com.yandex.ydb.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 {
return new ExplicitPartitions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PartitionStats(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
rowsEstimate_ = input.readUInt64();
break;
}
case 16: {
storeSize_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitionStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitionStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.PartitionStats.class, com.yandex.ydb.table.YdbTable.PartitionStats.Builder.class);
}
public static final int ROWS_ESTIMATE_FIELD_NUMBER = 1;
private long rowsEstimate_;
/**
*
* 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_;
/**
*
* 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_);
}
unknownFields.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 += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.PartitionStats)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.PartitionStats other = (com.yandex.ydb.table.YdbTable.PartitionStats) obj;
if (getRowsEstimate()
!= other.getRowsEstimate()) return false;
if (getStoreSize()
!= other.getStoreSize()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.PartitionStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.PartitionStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.PartitionStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.PartitionStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.PartitionStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.PartitionStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.PartitionStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitionStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitionStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.PartitionStats.class, com.yandex.ydb.table.YdbTable.PartitionStats.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.PartitionStats.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
rowsEstimate_ = 0L;
storeSize_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitionStats_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitionStats getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.PartitionStats.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitionStats build() {
com.yandex.ydb.table.YdbTable.PartitionStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitionStats buildPartial() {
com.yandex.ydb.table.YdbTable.PartitionStats result = new com.yandex.ydb.table.YdbTable.PartitionStats(this);
result.rowsEstimate_ = rowsEstimate_;
result.storeSize_ = storeSize_;
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 com.yandex.ydb.table.YdbTable.PartitionStats) {
return mergeFrom((com.yandex.ydb.table.YdbTable.PartitionStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.PartitionStats other) {
if (other == com.yandex.ydb.table.YdbTable.PartitionStats.getDefaultInstance()) return this;
if (other.getRowsEstimate() != 0L) {
setRowsEstimate(other.getRowsEstimate());
}
if (other.getStoreSize() != 0L) {
setStoreSize(other.getStoreSize());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.PartitionStats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.PartitionStats) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
*
* Approximate number of rows in shard
*
*
* uint64 rows_estimate = 1;
* @return This builder for chaining.
*/
public Builder clearRowsEstimate() {
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;
onChanged();
return this;
}
/**
*
* Approximate size of shard (bytes)
*
*
* uint64 store_size = 2;
* @return This builder for chaining.
*/
public Builder clearStoreSize() {
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 com.yandex.ydb.table.YdbTable.PartitionStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.PartitionStats();
}
public static com.yandex.ydb.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 {
return new PartitionStats(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitionStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TableStatsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.TableStats)
com.google.protobuf.MessageOrBuilder {
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
java.util.List
getPartitionStatsList();
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
com.yandex.ydb.table.YdbTable.PartitionStats getPartitionStats(int index);
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
int getPartitionStatsCount();
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
java.util.List extends com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder>
getPartitionStatsOrBuilderList();
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder getPartitionStatsOrBuilder(
int index);
/**
*
* Approximate number of rows in table
*
*
* uint64 rows_estimate = 2;
* @return The rowsEstimate.
*/
long getRowsEstimate();
/**
*
* Approximate size of table (bytes)
*
*
* uint64 store_size = 3;
* @return The storeSize.
*/
long getStoreSize();
/**
*
* Number of partitions in table
*
*
* uint64 partitions = 4;
* @return The partitions.
*/
long getPartitions();
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return Whether the creationTime field is set.
*/
boolean hasCreationTime();
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return The creationTime.
*/
com.google.protobuf.Timestamp getCreationTime();
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder();
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return Whether the modificationTime field is set.
*/
boolean hasModificationTime();
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return The modificationTime.
*/
com.google.protobuf.Timestamp getModificationTime();
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
com.google.protobuf.TimestampOrBuilder getModificationTimeOrBuilder();
}
/**
* Protobuf type {@code Ydb.Table.TableStats}
*/
public static final class TableStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.TableStats)
TableStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableStats.newBuilder() to construct.
private TableStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableStats() {
partitionStats_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TableStats(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
partitionStats_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
partitionStats_.add(
input.readMessage(com.yandex.ydb.table.YdbTable.PartitionStats.parser(), extensionRegistry));
break;
}
case 16: {
rowsEstimate_ = input.readUInt64();
break;
}
case 24: {
storeSize_ = input.readUInt64();
break;
}
case 32: {
partitions_ = input.readUInt64();
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (creationTime_ != null) {
subBuilder = creationTime_.toBuilder();
}
creationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(creationTime_);
creationTime_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (modificationTime_ != null) {
subBuilder = modificationTime_.toBuilder();
}
modificationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(modificationTime_);
modificationTime_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
partitionStats_ = java.util.Collections.unmodifiableList(partitionStats_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TableStats.class, com.yandex.ydb.table.YdbTable.TableStats.Builder.class);
}
public static final int PARTITION_STATS_FIELD_NUMBER = 1;
private java.util.List partitionStats_;
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public java.util.List getPartitionStatsList() {
return partitionStats_;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder>
getPartitionStatsOrBuilderList() {
return partitionStats_;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public int getPartitionStatsCount() {
return partitionStats_.size();
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitionStats getPartitionStats(int index) {
return partitionStats_.get(index);
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder getPartitionStatsOrBuilder(
int index) {
return partitionStats_.get(index);
}
public static final int ROWS_ESTIMATE_FIELD_NUMBER = 2;
private long rowsEstimate_;
/**
*
* 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_;
/**
*
* 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_;
/**
*
* 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 creationTime_ != null;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return The creationTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreationTime() {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
return getCreationTime();
}
public static final int MODIFICATION_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp modificationTime_;
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return Whether the modificationTime field is set.
*/
@java.lang.Override
public boolean hasModificationTime() {
return modificationTime_ != null;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return The modificationTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getModificationTime() {
return modificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modificationTime_;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getModificationTimeOrBuilder() {
return getModificationTime();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < partitionStats_.size(); i++) {
output.writeMessage(1, partitionStats_.get(i));
}
if (rowsEstimate_ != 0L) {
output.writeUInt64(2, rowsEstimate_);
}
if (storeSize_ != 0L) {
output.writeUInt64(3, storeSize_);
}
if (partitions_ != 0L) {
output.writeUInt64(4, partitions_);
}
if (creationTime_ != null) {
output.writeMessage(5, getCreationTime());
}
if (modificationTime_ != null) {
output.writeMessage(6, getModificationTime());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < partitionStats_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, partitionStats_.get(i));
}
if (rowsEstimate_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, rowsEstimate_);
}
if (storeSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, storeSize_);
}
if (partitions_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, partitions_);
}
if (creationTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getCreationTime());
}
if (modificationTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getModificationTime());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.TableStats)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.TableStats other = (com.yandex.ydb.table.YdbTable.TableStats) obj;
if (!getPartitionStatsList()
.equals(other.getPartitionStatsList())) return false;
if (getRowsEstimate()
!= other.getRowsEstimate()) return false;
if (getStoreSize()
!= other.getStoreSize()) return false;
if (getPartitions()
!= other.getPartitions()) return false;
if (hasCreationTime() != other.hasCreationTime()) return false;
if (hasCreationTime()) {
if (!getCreationTime()
.equals(other.getCreationTime())) return false;
}
if (hasModificationTime() != other.hasModificationTime()) return false;
if (hasModificationTime()) {
if (!getModificationTime()
.equals(other.getModificationTime())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getPartitionStatsCount() > 0) {
hash = (37 * hash) + PARTITION_STATS_FIELD_NUMBER;
hash = (53 * hash) + getPartitionStatsList().hashCode();
}
hash = (37 * hash) + ROWS_ESTIMATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRowsEstimate());
hash = (37 * hash) + STORE_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStoreSize());
hash = (37 * hash) + PARTITIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPartitions());
if (hasCreationTime()) {
hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreationTime().hashCode();
}
if (hasModificationTime()) {
hash = (37 * hash) + MODIFICATION_TIME_FIELD_NUMBER;
hash = (53 * hash) + getModificationTime().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.TableStats parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.TableStats prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Table.TableStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.TableStats)
com.yandex.ydb.table.YdbTable.TableStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TableStats.class, com.yandex.ydb.table.YdbTable.TableStats.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.TableStats.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPartitionStatsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (partitionStatsBuilder_ == null) {
partitionStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
partitionStatsBuilder_.clear();
}
rowsEstimate_ = 0L;
storeSize_ = 0L;
partitions_ = 0L;
if (creationTimeBuilder_ == null) {
creationTime_ = null;
} else {
creationTime_ = null;
creationTimeBuilder_ = null;
}
if (modificationTimeBuilder_ == null) {
modificationTime_ = null;
} else {
modificationTime_ = null;
modificationTimeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableStats_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableStats getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.TableStats.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableStats build() {
com.yandex.ydb.table.YdbTable.TableStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableStats buildPartial() {
com.yandex.ydb.table.YdbTable.TableStats result = new com.yandex.ydb.table.YdbTable.TableStats(this);
int from_bitField0_ = bitField0_;
if (partitionStatsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
partitionStats_ = java.util.Collections.unmodifiableList(partitionStats_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.partitionStats_ = partitionStats_;
} else {
result.partitionStats_ = partitionStatsBuilder_.build();
}
result.rowsEstimate_ = rowsEstimate_;
result.storeSize_ = storeSize_;
result.partitions_ = partitions_;
if (creationTimeBuilder_ == null) {
result.creationTime_ = creationTime_;
} else {
result.creationTime_ = creationTimeBuilder_.build();
}
if (modificationTimeBuilder_ == null) {
result.modificationTime_ = modificationTime_;
} else {
result.modificationTime_ = modificationTimeBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.TableStats) {
return mergeFrom((com.yandex.ydb.table.YdbTable.TableStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.TableStats other) {
if (other == com.yandex.ydb.table.YdbTable.TableStats.getDefaultInstance()) return this;
if (partitionStatsBuilder_ == null) {
if (!other.partitionStats_.isEmpty()) {
if (partitionStats_.isEmpty()) {
partitionStats_ = other.partitionStats_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePartitionStatsIsMutable();
partitionStats_.addAll(other.partitionStats_);
}
onChanged();
}
} else {
if (!other.partitionStats_.isEmpty()) {
if (partitionStatsBuilder_.isEmpty()) {
partitionStatsBuilder_.dispose();
partitionStatsBuilder_ = null;
partitionStats_ = other.partitionStats_;
bitField0_ = (bitField0_ & ~0x00000001);
partitionStatsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPartitionStatsFieldBuilder() : null;
} else {
partitionStatsBuilder_.addAllMessages(other.partitionStats_);
}
}
}
if (other.getRowsEstimate() != 0L) {
setRowsEstimate(other.getRowsEstimate());
}
if (other.getStoreSize() != 0L) {
setStoreSize(other.getStoreSize());
}
if (other.getPartitions() != 0L) {
setPartitions(other.getPartitions());
}
if (other.hasCreationTime()) {
mergeCreationTime(other.getCreationTime());
}
if (other.hasModificationTime()) {
mergeModificationTime(other.getModificationTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.TableStats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.TableStats) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List partitionStats_ =
java.util.Collections.emptyList();
private void ensurePartitionStatsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
partitionStats_ = new java.util.ArrayList(partitionStats_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.table.YdbTable.PartitionStats, com.yandex.ydb.table.YdbTable.PartitionStats.Builder, com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder> partitionStatsBuilder_;
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public java.util.List getPartitionStatsList() {
if (partitionStatsBuilder_ == null) {
return java.util.Collections.unmodifiableList(partitionStats_);
} else {
return partitionStatsBuilder_.getMessageList();
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public int getPartitionStatsCount() {
if (partitionStatsBuilder_ == null) {
return partitionStats_.size();
} else {
return partitionStatsBuilder_.getCount();
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public com.yandex.ydb.table.YdbTable.PartitionStats getPartitionStats(int index) {
if (partitionStatsBuilder_ == null) {
return partitionStats_.get(index);
} else {
return partitionStatsBuilder_.getMessage(index);
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder setPartitionStats(
int index, com.yandex.ydb.table.YdbTable.PartitionStats value) {
if (partitionStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionStatsIsMutable();
partitionStats_.set(index, value);
onChanged();
} else {
partitionStatsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder setPartitionStats(
int index, com.yandex.ydb.table.YdbTable.PartitionStats.Builder builderForValue) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
partitionStats_.set(index, builderForValue.build());
onChanged();
} else {
partitionStatsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addPartitionStats(com.yandex.ydb.table.YdbTable.PartitionStats value) {
if (partitionStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionStatsIsMutable();
partitionStats_.add(value);
onChanged();
} else {
partitionStatsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addPartitionStats(
int index, com.yandex.ydb.table.YdbTable.PartitionStats value) {
if (partitionStatsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePartitionStatsIsMutable();
partitionStats_.add(index, value);
onChanged();
} else {
partitionStatsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addPartitionStats(
com.yandex.ydb.table.YdbTable.PartitionStats.Builder builderForValue) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
partitionStats_.add(builderForValue.build());
onChanged();
} else {
partitionStatsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addPartitionStats(
int index, com.yandex.ydb.table.YdbTable.PartitionStats.Builder builderForValue) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
partitionStats_.add(index, builderForValue.build());
onChanged();
} else {
partitionStatsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder addAllPartitionStats(
java.lang.Iterable extends com.yandex.ydb.table.YdbTable.PartitionStats> values) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, partitionStats_);
onChanged();
} else {
partitionStatsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder clearPartitionStats() {
if (partitionStatsBuilder_ == null) {
partitionStats_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
partitionStatsBuilder_.clear();
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public Builder removePartitionStats(int index) {
if (partitionStatsBuilder_ == null) {
ensurePartitionStatsIsMutable();
partitionStats_.remove(index);
onChanged();
} else {
partitionStatsBuilder_.remove(index);
}
return this;
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public com.yandex.ydb.table.YdbTable.PartitionStats.Builder getPartitionStatsBuilder(
int index) {
return getPartitionStatsFieldBuilder().getBuilder(index);
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder getPartitionStatsOrBuilder(
int index) {
if (partitionStatsBuilder_ == null) {
return partitionStats_.get(index); } else {
return partitionStatsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public java.util.List extends com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder>
getPartitionStatsOrBuilderList() {
if (partitionStatsBuilder_ != null) {
return partitionStatsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(partitionStats_);
}
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public com.yandex.ydb.table.YdbTable.PartitionStats.Builder addPartitionStatsBuilder() {
return getPartitionStatsFieldBuilder().addBuilder(
com.yandex.ydb.table.YdbTable.PartitionStats.getDefaultInstance());
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public com.yandex.ydb.table.YdbTable.PartitionStats.Builder addPartitionStatsBuilder(
int index) {
return getPartitionStatsFieldBuilder().addBuilder(
index, com.yandex.ydb.table.YdbTable.PartitionStats.getDefaultInstance());
}
/**
*
* Stats for each partition
*
*
* repeated .Ydb.Table.PartitionStats partition_stats = 1;
*/
public java.util.List
getPartitionStatsBuilderList() {
return getPartitionStatsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.table.YdbTable.PartitionStats, com.yandex.ydb.table.YdbTable.PartitionStats.Builder, com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder>
getPartitionStatsFieldBuilder() {
if (partitionStatsBuilder_ == null) {
partitionStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.table.YdbTable.PartitionStats, com.yandex.ydb.table.YdbTable.PartitionStats.Builder, com.yandex.ydb.table.YdbTable.PartitionStatsOrBuilder>(
partitionStats_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
partitionStats_ = null;
}
return partitionStatsBuilder_;
}
private long rowsEstimate_ ;
/**
*
* Approximate number of rows in table
*
*
* uint64 rows_estimate = 2;
* @return The rowsEstimate.
*/
@java.lang.Override
public long getRowsEstimate() {
return rowsEstimate_;
}
/**
*
* Approximate number of rows in table
*
*
* uint64 rows_estimate = 2;
* @param value The rowsEstimate to set.
* @return This builder for chaining.
*/
public Builder setRowsEstimate(long value) {
rowsEstimate_ = value;
onChanged();
return this;
}
/**
*
* Approximate number of rows in table
*
*
* uint64 rows_estimate = 2;
* @return This builder for chaining.
*/
public Builder clearRowsEstimate() {
rowsEstimate_ = 0L;
onChanged();
return this;
}
private long storeSize_ ;
/**
*
* Approximate size of table (bytes)
*
*
* uint64 store_size = 3;
* @return The storeSize.
*/
@java.lang.Override
public long getStoreSize() {
return storeSize_;
}
/**
*
* Approximate size of table (bytes)
*
*
* uint64 store_size = 3;
* @param value The storeSize to set.
* @return This builder for chaining.
*/
public Builder setStoreSize(long value) {
storeSize_ = value;
onChanged();
return this;
}
/**
*
* Approximate size of table (bytes)
*
*
* uint64 store_size = 3;
* @return This builder for chaining.
*/
public Builder clearStoreSize() {
storeSize_ = 0L;
onChanged();
return this;
}
private long partitions_ ;
/**
*
* Number of partitions in table
*
*
* uint64 partitions = 4;
* @return The partitions.
*/
@java.lang.Override
public long getPartitions() {
return partitions_;
}
/**
*
* Number of partitions in table
*
*
* uint64 partitions = 4;
* @param value The partitions to set.
* @return This builder for chaining.
*/
public Builder setPartitions(long value) {
partitions_ = value;
onChanged();
return this;
}
/**
*
* Number of partitions in table
*
*
* uint64 partitions = 4;
* @return This builder for chaining.
*/
public Builder clearPartitions() {
partitions_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Timestamp creationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_;
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return Whether the creationTime field is set.
*/
public boolean hasCreationTime() {
return creationTimeBuilder_ != null || creationTime_ != null;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
* @return The creationTime.
*/
public com.google.protobuf.Timestamp getCreationTime() {
if (creationTimeBuilder_ == null) {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
} else {
return creationTimeBuilder_.getMessage();
}
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public Builder setCreationTime(com.google.protobuf.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
creationTime_ = value;
onChanged();
} else {
creationTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public Builder setCreationTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (creationTimeBuilder_ == null) {
creationTime_ = builderForValue.build();
onChanged();
} else {
creationTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public Builder mergeCreationTime(com.google.protobuf.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (creationTime_ != null) {
creationTime_ =
com.google.protobuf.Timestamp.newBuilder(creationTime_).mergeFrom(value).buildPartial();
} else {
creationTime_ = value;
}
onChanged();
} else {
creationTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public Builder clearCreationTime() {
if (creationTimeBuilder_ == null) {
creationTime_ = null;
onChanged();
} else {
creationTime_ = null;
creationTimeBuilder_ = null;
}
return this;
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() {
onChanged();
return getCreationTimeFieldBuilder().getBuilder();
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
if (creationTimeBuilder_ != null) {
return creationTimeBuilder_.getMessageOrBuilder();
} else {
return creationTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
}
/**
*
* Timestamp of table creation
*
*
* .google.protobuf.Timestamp creation_time = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreationTimeFieldBuilder() {
if (creationTimeBuilder_ == null) {
creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreationTime(),
getParentForChildren(),
isClean());
creationTime_ = null;
}
return creationTimeBuilder_;
}
private com.google.protobuf.Timestamp modificationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modificationTimeBuilder_;
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return Whether the modificationTime field is set.
*/
public boolean hasModificationTime() {
return modificationTimeBuilder_ != null || modificationTime_ != null;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
* @return The modificationTime.
*/
public com.google.protobuf.Timestamp getModificationTime() {
if (modificationTimeBuilder_ == null) {
return modificationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modificationTime_;
} else {
return modificationTimeBuilder_.getMessage();
}
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public Builder setModificationTime(com.google.protobuf.Timestamp value) {
if (modificationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
modificationTime_ = value;
onChanged();
} else {
modificationTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public Builder setModificationTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (modificationTimeBuilder_ == null) {
modificationTime_ = builderForValue.build();
onChanged();
} else {
modificationTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public Builder mergeModificationTime(com.google.protobuf.Timestamp value) {
if (modificationTimeBuilder_ == null) {
if (modificationTime_ != null) {
modificationTime_ =
com.google.protobuf.Timestamp.newBuilder(modificationTime_).mergeFrom(value).buildPartial();
} else {
modificationTime_ = value;
}
onChanged();
} else {
modificationTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public Builder clearModificationTime() {
if (modificationTimeBuilder_ == null) {
modificationTime_ = null;
onChanged();
} else {
modificationTime_ = null;
modificationTimeBuilder_ = null;
}
return this;
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public com.google.protobuf.Timestamp.Builder getModificationTimeBuilder() {
onChanged();
return getModificationTimeFieldBuilder().getBuilder();
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getModificationTimeOrBuilder() {
if (modificationTimeBuilder_ != null) {
return modificationTimeBuilder_.getMessageOrBuilder();
} else {
return modificationTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : modificationTime_;
}
}
/**
*
* Timestamp of last modification
*
*
* .google.protobuf.Timestamp modification_time = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getModificationTimeFieldBuilder() {
if (modificationTimeBuilder_ == null) {
modificationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getModificationTime(),
getParentForChildren(),
isClean());
modificationTime_ = null;
}
return modificationTimeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.TableStats)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.TableStats)
private static final com.yandex.ydb.table.YdbTable.TableStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.TableStats();
}
public static com.yandex.ydb.table.YdbTable.TableStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TableStats(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PartitioningPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.PartitioningPolicy)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The enum numeric value on the wire for autoPartitioning.
*/
int getAutoPartitioningValue();
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The autoPartitioning.
*/
com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy getAutoPartitioning();
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return Whether the uniformPartitions field is set.
*/
boolean hasUniformPartitions();
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return The uniformPartitions.
*/
long getUniformPartitions();
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return Whether the explicitPartitions field is set.
*/
boolean hasExplicitPartitions();
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return The explicitPartitions.
*/
com.yandex.ydb.table.YdbTable.ExplicitPartitions getExplicitPartitions();
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
com.yandex.ydb.table.YdbTable.ExplicitPartitionsOrBuilder getExplicitPartitionsOrBuilder();
public com.yandex.ydb.table.YdbTable.PartitioningPolicy.PartitionsCase getPartitionsCase();
}
/**
* Protobuf type {@code Ydb.Table.PartitioningPolicy}
*/
public static final class PartitioningPolicy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.PartitioningPolicy)
PartitioningPolicyOrBuilder {
private static final long serialVersionUID = 0L;
// Use PartitioningPolicy.newBuilder() to construct.
private PartitioningPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PartitioningPolicy() {
presetName_ = "";
autoPartitioning_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PartitioningPolicy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PartitioningPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
presetName_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
autoPartitioning_ = rawValue;
break;
}
case 24: {
partitions_ = input.readUInt64();
partitionsCase_ = 3;
break;
}
case 34: {
com.yandex.ydb.table.YdbTable.ExplicitPartitions.Builder subBuilder = null;
if (partitionsCase_ == 4) {
subBuilder = ((com.yandex.ydb.table.YdbTable.ExplicitPartitions) partitions_).toBuilder();
}
partitions_ =
input.readMessage(com.yandex.ydb.table.YdbTable.ExplicitPartitions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.table.YdbTable.ExplicitPartitions) partitions_);
partitions_ = subBuilder.buildPartial();
}
partitionsCase_ = 4;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.PartitioningPolicy.class, com.yandex.ydb.table.YdbTable.PartitioningPolicy.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy}
*/
public enum AutoPartitioningPolicy
implements com.google.protobuf.ProtocolMessageEnum {
/**
* AUTO_PARTITIONING_POLICY_UNSPECIFIED = 0;
*/
AUTO_PARTITIONING_POLICY_UNSPECIFIED(0),
/**
* DISABLED = 1;
*/
DISABLED(1),
/**
* AUTO_SPLIT = 2;
*/
AUTO_SPLIT(2),
/**
* AUTO_SPLIT_MERGE = 3;
*/
AUTO_SPLIT_MERGE(3),
UNRECOGNIZED(-1),
;
/**
* AUTO_PARTITIONING_POLICY_UNSPECIFIED = 0;
*/
public static final int AUTO_PARTITIONING_POLICY_UNSPECIFIED_VALUE = 0;
/**
* DISABLED = 1;
*/
public static final int DISABLED_VALUE = 1;
/**
* AUTO_SPLIT = 2;
*/
public static final int AUTO_SPLIT_VALUE = 2;
/**
* AUTO_SPLIT_MERGE = 3;
*/
public static final int AUTO_SPLIT_MERGE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AutoPartitioningPolicy valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AutoPartitioningPolicy forNumber(int value) {
switch (value) {
case 0: return AUTO_PARTITIONING_POLICY_UNSPECIFIED;
case 1: return DISABLED;
case 2: return AUTO_SPLIT;
case 3: return AUTO_SPLIT_MERGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AutoPartitioningPolicy> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AutoPartitioningPolicy findValueByNumber(int number) {
return AutoPartitioningPolicy.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.PartitioningPolicy.getDescriptor().getEnumTypes().get(0);
}
private static final AutoPartitioningPolicy[] VALUES = values();
public static AutoPartitioningPolicy valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private AutoPartitioningPolicy(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy)
}
private int partitionsCase_ = 0;
private java.lang.Object partitions_;
public enum PartitionsCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
UNIFORM_PARTITIONS(3),
EXPLICIT_PARTITIONS(4),
PARTITIONS_NOT_SET(0);
private final int value;
private PartitionsCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PartitionsCase valueOf(int value) {
return forNumber(value);
}
public static PartitionsCase forNumber(int value) {
switch (value) {
case 3: return UNIFORM_PARTITIONS;
case 4: return EXPLICIT_PARTITIONS;
case 0: return PARTITIONS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PartitionsCase
getPartitionsCase() {
return PartitionsCase.forNumber(
partitionsCase_);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object presetName_;
/**
* string preset_name = 1;
* @return The presetName.
*/
@java.lang.Override
public java.lang.String getPresetName() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
presetName_ = s;
return s;
}
}
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPresetNameBytes() {
java.lang.Object ref = presetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
presetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTO_PARTITIONING_FIELD_NUMBER = 2;
private int autoPartitioning_;
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The enum numeric value on the wire for autoPartitioning.
*/
@java.lang.Override public int getAutoPartitioningValue() {
return autoPartitioning_;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The autoPartitioning.
*/
@java.lang.Override public com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy getAutoPartitioning() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy result = com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.valueOf(autoPartitioning_);
return result == null ? com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.UNRECOGNIZED : result;
}
public static final int UNIFORM_PARTITIONS_FIELD_NUMBER = 3;
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return Whether the uniformPartitions field is set.
*/
@java.lang.Override
public boolean hasUniformPartitions() {
return partitionsCase_ == 3;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return The uniformPartitions.
*/
@java.lang.Override
public long getUniformPartitions() {
if (partitionsCase_ == 3) {
return (java.lang.Long) partitions_;
}
return 0L;
}
public static final int EXPLICIT_PARTITIONS_FIELD_NUMBER = 4;
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return Whether the explicitPartitions field is set.
*/
@java.lang.Override
public boolean hasExplicitPartitions() {
return partitionsCase_ == 4;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return The explicitPartitions.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExplicitPartitions getExplicitPartitions() {
if (partitionsCase_ == 4) {
return (com.yandex.ydb.table.YdbTable.ExplicitPartitions) partitions_;
}
return com.yandex.ydb.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExplicitPartitionsOrBuilder getExplicitPartitionsOrBuilder() {
if (partitionsCase_ == 4) {
return (com.yandex.ydb.table.YdbTable.ExplicitPartitions) partitions_;
}
return com.yandex.ydb.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, presetName_);
}
if (autoPartitioning_ != com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.AUTO_PARTITIONING_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(2, autoPartitioning_);
}
if (partitionsCase_ == 3) {
output.writeUInt64(
3, (long)((java.lang.Long) partitions_));
}
if (partitionsCase_ == 4) {
output.writeMessage(4, (com.yandex.ydb.table.YdbTable.ExplicitPartitions) partitions_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
if (autoPartitioning_ != com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.AUTO_PARTITIONING_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, autoPartitioning_);
}
if (partitionsCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
3, (long)((java.lang.Long) partitions_));
}
if (partitionsCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.yandex.ydb.table.YdbTable.ExplicitPartitions) partitions_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.PartitioningPolicy)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.PartitioningPolicy other = (com.yandex.ydb.table.YdbTable.PartitioningPolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (autoPartitioning_ != other.autoPartitioning_) return false;
if (!getPartitionsCase().equals(other.getPartitionsCase())) return false;
switch (partitionsCase_) {
case 3:
if (getUniformPartitions()
!= other.getUniformPartitions()) return false;
break;
case 4:
if (!getExplicitPartitions()
.equals(other.getExplicitPartitions())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
hash = (37 * hash) + AUTO_PARTITIONING_FIELD_NUMBER;
hash = (53 * hash) + autoPartitioning_;
switch (partitionsCase_) {
case 3:
hash = (37 * hash) + UNIFORM_PARTITIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUniformPartitions());
break;
case 4:
hash = (37 * hash) + EXPLICIT_PARTITIONS_FIELD_NUMBER;
hash = (53 * hash) + getExplicitPartitions().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.PartitioningPolicy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.PartitioningPolicy prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Ydb.Table.PartitioningPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.PartitioningPolicy)
com.yandex.ydb.table.YdbTable.PartitioningPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.PartitioningPolicy.class, com.yandex.ydb.table.YdbTable.PartitioningPolicy.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.PartitioningPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
presetName_ = "";
autoPartitioning_ = 0;
partitionsCase_ = 0;
partitions_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningPolicy_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningPolicy getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.PartitioningPolicy.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningPolicy build() {
com.yandex.ydb.table.YdbTable.PartitioningPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningPolicy buildPartial() {
com.yandex.ydb.table.YdbTable.PartitioningPolicy result = new com.yandex.ydb.table.YdbTable.PartitioningPolicy(this);
result.presetName_ = presetName_;
result.autoPartitioning_ = autoPartitioning_;
if (partitionsCase_ == 3) {
result.partitions_ = partitions_;
}
if (partitionsCase_ == 4) {
if (explicitPartitionsBuilder_ == null) {
result.partitions_ = partitions_;
} else {
result.partitions_ = explicitPartitionsBuilder_.build();
}
}
result.partitionsCase_ = partitionsCase_;
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 com.yandex.ydb.table.YdbTable.PartitioningPolicy) {
return mergeFrom((com.yandex.ydb.table.YdbTable.PartitioningPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.PartitioningPolicy other) {
if (other == com.yandex.ydb.table.YdbTable.PartitioningPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
onChanged();
}
if (other.autoPartitioning_ != 0) {
setAutoPartitioningValue(other.getAutoPartitioningValue());
}
switch (other.getPartitionsCase()) {
case UNIFORM_PARTITIONS: {
setUniformPartitions(other.getUniformPartitions());
break;
}
case EXPLICIT_PARTITIONS: {
mergeExplicitPartitions(other.getExplicitPartitions());
break;
}
case PARTITIONS_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.PartitioningPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.PartitioningPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int partitionsCase_ = 0;
private java.lang.Object partitions_;
public PartitionsCase
getPartitionsCase() {
return PartitionsCase.forNumber(
partitionsCase_);
}
public Builder clearPartitions() {
partitionsCase_ = 0;
partitions_ = null;
onChanged();
return this;
}
private 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;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
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;
onChanged();
return this;
}
private int autoPartitioning_ = 0;
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The enum numeric value on the wire for autoPartitioning.
*/
@java.lang.Override public int getAutoPartitioningValue() {
return autoPartitioning_;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @param value The enum numeric value on the wire for autoPartitioning to set.
* @return This builder for chaining.
*/
public Builder setAutoPartitioningValue(int value) {
autoPartitioning_ = value;
onChanged();
return this;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return The autoPartitioning.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy getAutoPartitioning() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy result = com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.valueOf(autoPartitioning_);
return result == null ? com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy.UNRECOGNIZED : result;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @param value The autoPartitioning to set.
* @return This builder for chaining.
*/
public Builder setAutoPartitioning(com.yandex.ydb.table.YdbTable.PartitioningPolicy.AutoPartitioningPolicy value) {
if (value == null) {
throw new NullPointerException();
}
autoPartitioning_ = value.getNumber();
onChanged();
return this;
}
/**
* .Ydb.Table.PartitioningPolicy.AutoPartitioningPolicy auto_partitioning = 2;
* @return This builder for chaining.
*/
public Builder clearAutoPartitioning() {
autoPartitioning_ = 0;
onChanged();
return this;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return Whether the uniformPartitions field is set.
*/
public boolean hasUniformPartitions() {
return partitionsCase_ == 3;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return The uniformPartitions.
*/
public long getUniformPartitions() {
if (partitionsCase_ == 3) {
return (java.lang.Long) partitions_;
}
return 0L;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @param value The uniformPartitions to set.
* @return This builder for chaining.
*/
public Builder setUniformPartitions(long value) {
partitionsCase_ = 3;
partitions_ = value;
onChanged();
return this;
}
/**
*
* Allows to enable uniform sharding using given shards number.
* The first components of primary key must have Uint32/Uint64 type.
*
*
* uint64 uniform_partitions = 3;
* @return This builder for chaining.
*/
public Builder clearUniformPartitions() {
if (partitionsCase_ == 3) {
partitionsCase_ = 0;
partitions_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ExplicitPartitions, com.yandex.ydb.table.YdbTable.ExplicitPartitions.Builder, com.yandex.ydb.table.YdbTable.ExplicitPartitionsOrBuilder> explicitPartitionsBuilder_;
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return Whether the explicitPartitions field is set.
*/
@java.lang.Override
public boolean hasExplicitPartitions() {
return partitionsCase_ == 4;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
* @return The explicitPartitions.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExplicitPartitions getExplicitPartitions() {
if (explicitPartitionsBuilder_ == null) {
if (partitionsCase_ == 4) {
return (com.yandex.ydb.table.YdbTable.ExplicitPartitions) partitions_;
}
return com.yandex.ydb.table.YdbTable.ExplicitPartitions.getDefaultInstance();
} else {
if (partitionsCase_ == 4) {
return explicitPartitionsBuilder_.getMessage();
}
return com.yandex.ydb.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public Builder setExplicitPartitions(com.yandex.ydb.table.YdbTable.ExplicitPartitions value) {
if (explicitPartitionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
partitions_ = value;
onChanged();
} else {
explicitPartitionsBuilder_.setMessage(value);
}
partitionsCase_ = 4;
return this;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public Builder setExplicitPartitions(
com.yandex.ydb.table.YdbTable.ExplicitPartitions.Builder builderForValue) {
if (explicitPartitionsBuilder_ == null) {
partitions_ = builderForValue.build();
onChanged();
} else {
explicitPartitionsBuilder_.setMessage(builderForValue.build());
}
partitionsCase_ = 4;
return this;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public Builder mergeExplicitPartitions(com.yandex.ydb.table.YdbTable.ExplicitPartitions value) {
if (explicitPartitionsBuilder_ == null) {
if (partitionsCase_ == 4 &&
partitions_ != com.yandex.ydb.table.YdbTable.ExplicitPartitions.getDefaultInstance()) {
partitions_ = com.yandex.ydb.table.YdbTable.ExplicitPartitions.newBuilder((com.yandex.ydb.table.YdbTable.ExplicitPartitions) partitions_)
.mergeFrom(value).buildPartial();
} else {
partitions_ = value;
}
onChanged();
} else {
if (partitionsCase_ == 4) {
explicitPartitionsBuilder_.mergeFrom(value);
}
explicitPartitionsBuilder_.setMessage(value);
}
partitionsCase_ = 4;
return this;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public Builder clearExplicitPartitions() {
if (explicitPartitionsBuilder_ == null) {
if (partitionsCase_ == 4) {
partitionsCase_ = 0;
partitions_ = null;
onChanged();
}
} else {
if (partitionsCase_ == 4) {
partitionsCase_ = 0;
partitions_ = null;
}
explicitPartitionsBuilder_.clear();
}
return this;
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
public com.yandex.ydb.table.YdbTable.ExplicitPartitions.Builder getExplicitPartitionsBuilder() {
return getExplicitPartitionsFieldBuilder().getBuilder();
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExplicitPartitionsOrBuilder getExplicitPartitionsOrBuilder() {
if ((partitionsCase_ == 4) && (explicitPartitionsBuilder_ != null)) {
return explicitPartitionsBuilder_.getMessageOrBuilder();
} else {
if (partitionsCase_ == 4) {
return (com.yandex.ydb.table.YdbTable.ExplicitPartitions) partitions_;
}
return com.yandex.ydb.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
}
/**
*
* Explicitly specify key values which are used as borders for
* created partitions.
*
*
* .Ydb.Table.ExplicitPartitions explicit_partitions = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ExplicitPartitions, com.yandex.ydb.table.YdbTable.ExplicitPartitions.Builder, com.yandex.ydb.table.YdbTable.ExplicitPartitionsOrBuilder>
getExplicitPartitionsFieldBuilder() {
if (explicitPartitionsBuilder_ == null) {
if (!(partitionsCase_ == 4)) {
partitions_ = com.yandex.ydb.table.YdbTable.ExplicitPartitions.getDefaultInstance();
}
explicitPartitionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ExplicitPartitions, com.yandex.ydb.table.YdbTable.ExplicitPartitions.Builder, com.yandex.ydb.table.YdbTable.ExplicitPartitionsOrBuilder>(
(com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.PartitioningPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.PartitioningPolicy();
}
public static com.yandex.ydb.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 {
return new PartitioningPolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecutionPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
presetName_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ExecutionPolicy.class, com.yandex.ydb.table.YdbTable.ExecutionPolicy.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ExecutionPolicy)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ExecutionPolicy other = (com.yandex.ydb.table.YdbTable.ExecutionPolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ExecutionPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ExecutionPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ExecutionPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ExecutionPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ExecutionPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ExecutionPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ExecutionPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.ExecutionPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ExecutionPolicy.class, com.yandex.ydb.table.YdbTable.ExecutionPolicy.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ExecutionPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
presetName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ExecutionPolicy_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExecutionPolicy getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ExecutionPolicy.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExecutionPolicy build() {
com.yandex.ydb.table.YdbTable.ExecutionPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExecutionPolicy buildPartial() {
com.yandex.ydb.table.YdbTable.ExecutionPolicy result = new com.yandex.ydb.table.YdbTable.ExecutionPolicy(this);
result.presetName_ = presetName_;
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 com.yandex.ydb.table.YdbTable.ExecutionPolicy) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ExecutionPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ExecutionPolicy other) {
if (other == com.yandex.ydb.table.YdbTable.ExecutionPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ExecutionPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ExecutionPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
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;
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 com.yandex.ydb.table.YdbTable.ExecutionPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ExecutionPolicy();
}
public static com.yandex.ydb.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 {
return new ExecutionPolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExecutionPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReplicationPolicyOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ReplicationPolicy)
com.google.protobuf.MessageOrBuilder {
/**
* string preset_name = 1;
* @return The presetName.
*/
java.lang.String getPresetName();
/**
* string preset_name = 1;
* @return The bytes for presetName.
*/
com.google.protobuf.ByteString
getPresetNameBytes();
/**
*
* If value is non-zero then it specifies a number of read-only
* replicas to create for a table. Zero value means preset
* setting usage.
*
*
* uint32 replicas_count = 2;
* @return The replicasCount.
*/
int getReplicasCount();
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @return The enum numeric value on the wire for createPerAvailabilityZone.
*/
int getCreatePerAvailabilityZoneValue();
/**
*
* If this feature in enabled then requested number of replicas
* will be created in each availability zone.
*
*
* .Ydb.FeatureFlag.Status create_per_availability_zone = 3;
* @return The createPerAvailabilityZone.
*/
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getCreatePerAvailabilityZone();
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @return The enum numeric value on the wire for allowPromotion.
*/
int getAllowPromotionValue();
/**
*
* If this feature in enabled then read-only replicas can be promoted
* to leader.
*
*
* .Ydb.FeatureFlag.Status allow_promotion = 4;
* @return The allowPromotion.
*/
com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReplicationPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
presetName_ = s;
break;
}
case 16: {
replicasCount_ = input.readUInt32();
break;
}
case 24: {
int rawValue = input.readEnum();
createPerAvailabilityZone_ = rawValue;
break;
}
case 32: {
int rawValue = input.readEnum();
allowPromotion_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ReplicationPolicy.class, com.yandex.ydb.table.YdbTable.ReplicationPolicy.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
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_;
/**
*
* 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_;
/**
*
* 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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getCreatePerAvailabilityZone() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(createPerAvailabilityZone_);
return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
public static final int ALLOW_PROMOTION_FIELD_NUMBER = 4;
private int allowPromotion_;
/**
*
* 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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getAllowPromotion() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(allowPromotion_);
return result == null ? com.yandex.ydb.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_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(3, createPerAvailabilityZone_);
}
if (allowPromotion_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(4, allowPromotion_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
if (replicasCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, replicasCount_);
}
if (createPerAvailabilityZone_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, createPerAvailabilityZone_);
}
if (allowPromotion_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, allowPromotion_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ReplicationPolicy)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ReplicationPolicy other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ReplicationPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ReplicationPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ReplicationPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ReplicationPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ReplicationPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ReplicationPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ReplicationPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.ReplicationPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ReplicationPolicy.class, com.yandex.ydb.table.YdbTable.ReplicationPolicy.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ReplicationPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
presetName_ = "";
replicasCount_ = 0;
createPerAvailabilityZone_ = 0;
allowPromotion_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReplicationPolicy_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ReplicationPolicy getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ReplicationPolicy.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ReplicationPolicy build() {
com.yandex.ydb.table.YdbTable.ReplicationPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ReplicationPolicy buildPartial() {
com.yandex.ydb.table.YdbTable.ReplicationPolicy result = new com.yandex.ydb.table.YdbTable.ReplicationPolicy(this);
result.presetName_ = presetName_;
result.replicasCount_ = replicasCount_;
result.createPerAvailabilityZone_ = createPerAvailabilityZone_;
result.allowPromotion_ = allowPromotion_;
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 com.yandex.ydb.table.YdbTable.ReplicationPolicy) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ReplicationPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ReplicationPolicy other) {
if (other == com.yandex.ydb.table.YdbTable.ReplicationPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ReplicationPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ReplicationPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
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;
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;
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() {
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;
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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getCreatePerAvailabilityZone() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(createPerAvailabilityZone_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
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() {
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;
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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getAllowPromotion() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(allowPromotion_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
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() {
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 com.yandex.ydb.table.YdbTable.ReplicationPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ReplicationPolicy();
}
public static com.yandex.ydb.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 {
return new ReplicationPolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CachingPolicy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
presetName_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CachingPolicy.class, com.yandex.ydb.table.YdbTable.CachingPolicy.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.CachingPolicy)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.CachingPolicy other = (com.yandex.ydb.table.YdbTable.CachingPolicy) obj;
if (!getPresetName()
.equals(other.getPresetName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PRESET_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPresetName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.CachingPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.CachingPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.CachingPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.CachingPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.CachingPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.CachingPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.CachingPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.CachingPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.CachingPolicy.class, com.yandex.ydb.table.YdbTable.CachingPolicy.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.CachingPolicy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
presetName_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_CachingPolicy_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CachingPolicy getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.CachingPolicy.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CachingPolicy build() {
com.yandex.ydb.table.YdbTable.CachingPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CachingPolicy buildPartial() {
com.yandex.ydb.table.YdbTable.CachingPolicy result = new com.yandex.ydb.table.YdbTable.CachingPolicy(this);
result.presetName_ = presetName_;
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 com.yandex.ydb.table.YdbTable.CachingPolicy) {
return mergeFrom((com.yandex.ydb.table.YdbTable.CachingPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.CachingPolicy other) {
if (other == com.yandex.ydb.table.YdbTable.CachingPolicy.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.CachingPolicy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.CachingPolicy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
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;
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 com.yandex.ydb.table.YdbTable.CachingPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.CachingPolicy();
}
public static com.yandex.ydb.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 {
return new CachingPolicy(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.StoragePolicy getStoragePolicy();
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.CompactionPolicy getCompactionPolicy();
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.PartitioningPolicy getPartitioningPolicy();
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.ExecutionPolicy getExecutionPolicy();
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.ReplicationPolicy getReplicationPolicy();
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.CachingPolicy getCachingPolicy();
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TableProfile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
presetName_ = s;
break;
}
case 18: {
com.yandex.ydb.table.YdbTable.StoragePolicy.Builder subBuilder = null;
if (storagePolicy_ != null) {
subBuilder = storagePolicy_.toBuilder();
}
storagePolicy_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(storagePolicy_);
storagePolicy_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.yandex.ydb.table.YdbTable.CompactionPolicy.Builder subBuilder = null;
if (compactionPolicy_ != null) {
subBuilder = compactionPolicy_.toBuilder();
}
compactionPolicy_ = input.readMessage(com.yandex.ydb.table.YdbTable.CompactionPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(compactionPolicy_);
compactionPolicy_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.yandex.ydb.table.YdbTable.PartitioningPolicy.Builder subBuilder = null;
if (partitioningPolicy_ != null) {
subBuilder = partitioningPolicy_.toBuilder();
}
partitioningPolicy_ = input.readMessage(com.yandex.ydb.table.YdbTable.PartitioningPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(partitioningPolicy_);
partitioningPolicy_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.yandex.ydb.table.YdbTable.ExecutionPolicy.Builder subBuilder = null;
if (executionPolicy_ != null) {
subBuilder = executionPolicy_.toBuilder();
}
executionPolicy_ = input.readMessage(com.yandex.ydb.table.YdbTable.ExecutionPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executionPolicy_);
executionPolicy_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.yandex.ydb.table.YdbTable.ReplicationPolicy.Builder subBuilder = null;
if (replicationPolicy_ != null) {
subBuilder = replicationPolicy_.toBuilder();
}
replicationPolicy_ = input.readMessage(com.yandex.ydb.table.YdbTable.ReplicationPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(replicationPolicy_);
replicationPolicy_ = subBuilder.buildPartial();
}
break;
}
case 58: {
com.yandex.ydb.table.YdbTable.CachingPolicy.Builder subBuilder = null;
if (cachingPolicy_ != null) {
subBuilder = cachingPolicy_.toBuilder();
}
cachingPolicy_ = input.readMessage(com.yandex.ydb.table.YdbTable.CachingPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cachingPolicy_);
cachingPolicy_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableProfile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TableProfile.class, com.yandex.ydb.table.YdbTable.TableProfile.Builder.class);
}
public static final int PRESET_NAME_FIELD_NUMBER = 1;
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 com.yandex.ydb.table.YdbTable.StoragePolicy storagePolicy_;
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return Whether the storagePolicy field is set.
*/
@java.lang.Override
public boolean hasStoragePolicy() {
return storagePolicy_ != null;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return The storagePolicy.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePolicy getStoragePolicy() {
return storagePolicy_ == null ? com.yandex.ydb.table.YdbTable.StoragePolicy.getDefaultInstance() : storagePolicy_;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePolicyOrBuilder getStoragePolicyOrBuilder() {
return getStoragePolicy();
}
public static final int COMPACTION_POLICY_FIELD_NUMBER = 3;
private com.yandex.ydb.table.YdbTable.CompactionPolicy compactionPolicy_;
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return Whether the compactionPolicy field is set.
*/
@java.lang.Override
public boolean hasCompactionPolicy() {
return compactionPolicy_ != null;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return The compactionPolicy.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CompactionPolicy getCompactionPolicy() {
return compactionPolicy_ == null ? com.yandex.ydb.table.YdbTable.CompactionPolicy.getDefaultInstance() : compactionPolicy_;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CompactionPolicyOrBuilder getCompactionPolicyOrBuilder() {
return getCompactionPolicy();
}
public static final int PARTITIONING_POLICY_FIELD_NUMBER = 4;
private com.yandex.ydb.table.YdbTable.PartitioningPolicy partitioningPolicy_;
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return Whether the partitioningPolicy field is set.
*/
@java.lang.Override
public boolean hasPartitioningPolicy() {
return partitioningPolicy_ != null;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return The partitioningPolicy.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningPolicy getPartitioningPolicy() {
return partitioningPolicy_ == null ? com.yandex.ydb.table.YdbTable.PartitioningPolicy.getDefaultInstance() : partitioningPolicy_;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningPolicyOrBuilder getPartitioningPolicyOrBuilder() {
return getPartitioningPolicy();
}
public static final int EXECUTION_POLICY_FIELD_NUMBER = 5;
private com.yandex.ydb.table.YdbTable.ExecutionPolicy executionPolicy_;
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return Whether the executionPolicy field is set.
*/
@java.lang.Override
public boolean hasExecutionPolicy() {
return executionPolicy_ != null;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return The executionPolicy.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExecutionPolicy getExecutionPolicy() {
return executionPolicy_ == null ? com.yandex.ydb.table.YdbTable.ExecutionPolicy.getDefaultInstance() : executionPolicy_;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ExecutionPolicyOrBuilder getExecutionPolicyOrBuilder() {
return getExecutionPolicy();
}
public static final int REPLICATION_POLICY_FIELD_NUMBER = 6;
private com.yandex.ydb.table.YdbTable.ReplicationPolicy replicationPolicy_;
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return Whether the replicationPolicy field is set.
*/
@java.lang.Override
public boolean hasReplicationPolicy() {
return replicationPolicy_ != null;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return The replicationPolicy.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ReplicationPolicy getReplicationPolicy() {
return replicationPolicy_ == null ? com.yandex.ydb.table.YdbTable.ReplicationPolicy.getDefaultInstance() : replicationPolicy_;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ReplicationPolicyOrBuilder getReplicationPolicyOrBuilder() {
return getReplicationPolicy();
}
public static final int CACHING_POLICY_FIELD_NUMBER = 7;
private com.yandex.ydb.table.YdbTable.CachingPolicy cachingPolicy_;
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return Whether the cachingPolicy field is set.
*/
@java.lang.Override
public boolean hasCachingPolicy() {
return cachingPolicy_ != null;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return The cachingPolicy.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CachingPolicy getCachingPolicy() {
return cachingPolicy_ == null ? com.yandex.ydb.table.YdbTable.CachingPolicy.getDefaultInstance() : cachingPolicy_;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.CachingPolicyOrBuilder getCachingPolicyOrBuilder() {
return getCachingPolicy();
}
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 (storagePolicy_ != null) {
output.writeMessage(2, getStoragePolicy());
}
if (compactionPolicy_ != null) {
output.writeMessage(3, getCompactionPolicy());
}
if (partitioningPolicy_ != null) {
output.writeMessage(4, getPartitioningPolicy());
}
if (executionPolicy_ != null) {
output.writeMessage(5, getExecutionPolicy());
}
if (replicationPolicy_ != null) {
output.writeMessage(6, getReplicationPolicy());
}
if (cachingPolicy_ != null) {
output.writeMessage(7, getCachingPolicy());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(presetName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, presetName_);
}
if (storagePolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStoragePolicy());
}
if (compactionPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCompactionPolicy());
}
if (partitioningPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPartitioningPolicy());
}
if (executionPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getExecutionPolicy());
}
if (replicationPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getReplicationPolicy());
}
if (cachingPolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getCachingPolicy());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.TableProfile)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.TableProfile other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.TableProfile parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableProfile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableProfile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.TableProfile parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.TableProfile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableProfile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableProfile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.TableProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableProfile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableProfile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TableProfile.class, com.yandex.ydb.table.YdbTable.TableProfile.Builder.class);
}
// Construct using com.yandex.ydb.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
presetName_ = "";
if (storagePolicyBuilder_ == null) {
storagePolicy_ = null;
} else {
storagePolicy_ = null;
storagePolicyBuilder_ = null;
}
if (compactionPolicyBuilder_ == null) {
compactionPolicy_ = null;
} else {
compactionPolicy_ = null;
compactionPolicyBuilder_ = null;
}
if (partitioningPolicyBuilder_ == null) {
partitioningPolicy_ = null;
} else {
partitioningPolicy_ = null;
partitioningPolicyBuilder_ = null;
}
if (executionPolicyBuilder_ == null) {
executionPolicy_ = null;
} else {
executionPolicy_ = null;
executionPolicyBuilder_ = null;
}
if (replicationPolicyBuilder_ == null) {
replicationPolicy_ = null;
} else {
replicationPolicy_ = null;
replicationPolicyBuilder_ = null;
}
if (cachingPolicyBuilder_ == null) {
cachingPolicy_ = null;
} else {
cachingPolicy_ = null;
cachingPolicyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TableProfile_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableProfile getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.TableProfile.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableProfile build() {
com.yandex.ydb.table.YdbTable.TableProfile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TableProfile buildPartial() {
com.yandex.ydb.table.YdbTable.TableProfile result = new com.yandex.ydb.table.YdbTable.TableProfile(this);
result.presetName_ = presetName_;
if (storagePolicyBuilder_ == null) {
result.storagePolicy_ = storagePolicy_;
} else {
result.storagePolicy_ = storagePolicyBuilder_.build();
}
if (compactionPolicyBuilder_ == null) {
result.compactionPolicy_ = compactionPolicy_;
} else {
result.compactionPolicy_ = compactionPolicyBuilder_.build();
}
if (partitioningPolicyBuilder_ == null) {
result.partitioningPolicy_ = partitioningPolicy_;
} else {
result.partitioningPolicy_ = partitioningPolicyBuilder_.build();
}
if (executionPolicyBuilder_ == null) {
result.executionPolicy_ = executionPolicy_;
} else {
result.executionPolicy_ = executionPolicyBuilder_.build();
}
if (replicationPolicyBuilder_ == null) {
result.replicationPolicy_ = replicationPolicy_;
} else {
result.replicationPolicy_ = replicationPolicyBuilder_.build();
}
if (cachingPolicyBuilder_ == null) {
result.cachingPolicy_ = cachingPolicy_;
} else {
result.cachingPolicy_ = cachingPolicyBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.TableProfile) {
return mergeFrom((com.yandex.ydb.table.YdbTable.TableProfile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.TableProfile other) {
if (other == com.yandex.ydb.table.YdbTable.TableProfile.getDefaultInstance()) return this;
if (!other.getPresetName().isEmpty()) {
presetName_ = other.presetName_;
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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.TableProfile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.TableProfile) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
* string preset_name = 1;
* @return This builder for chaining.
*/
public Builder clearPresetName() {
presetName_ = getDefaultInstance().getPresetName();
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;
onChanged();
return this;
}
private com.yandex.ydb.table.YdbTable.StoragePolicy storagePolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePolicy, com.yandex.ydb.table.YdbTable.StoragePolicy.Builder, com.yandex.ydb.table.YdbTable.StoragePolicyOrBuilder> storagePolicyBuilder_;
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return Whether the storagePolicy field is set.
*/
public boolean hasStoragePolicy() {
return storagePolicyBuilder_ != null || storagePolicy_ != null;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
* @return The storagePolicy.
*/
public com.yandex.ydb.table.YdbTable.StoragePolicy getStoragePolicy() {
if (storagePolicyBuilder_ == null) {
return storagePolicy_ == null ? com.yandex.ydb.table.YdbTable.StoragePolicy.getDefaultInstance() : storagePolicy_;
} else {
return storagePolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public Builder setStoragePolicy(com.yandex.ydb.table.YdbTable.StoragePolicy value) {
if (storagePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storagePolicy_ = value;
onChanged();
} else {
storagePolicyBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public Builder setStoragePolicy(
com.yandex.ydb.table.YdbTable.StoragePolicy.Builder builderForValue) {
if (storagePolicyBuilder_ == null) {
storagePolicy_ = builderForValue.build();
onChanged();
} else {
storagePolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public Builder mergeStoragePolicy(com.yandex.ydb.table.YdbTable.StoragePolicy value) {
if (storagePolicyBuilder_ == null) {
if (storagePolicy_ != null) {
storagePolicy_ =
com.yandex.ydb.table.YdbTable.StoragePolicy.newBuilder(storagePolicy_).mergeFrom(value).buildPartial();
} else {
storagePolicy_ = value;
}
onChanged();
} else {
storagePolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public Builder clearStoragePolicy() {
if (storagePolicyBuilder_ == null) {
storagePolicy_ = null;
onChanged();
} else {
storagePolicy_ = null;
storagePolicyBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePolicy.Builder getStoragePolicyBuilder() {
onChanged();
return getStoragePolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePolicyOrBuilder getStoragePolicyOrBuilder() {
if (storagePolicyBuilder_ != null) {
return storagePolicyBuilder_.getMessageOrBuilder();
} else {
return storagePolicy_ == null ?
com.yandex.ydb.table.YdbTable.StoragePolicy.getDefaultInstance() : storagePolicy_;
}
}
/**
* .Ydb.Table.StoragePolicy storage_policy = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePolicy, com.yandex.ydb.table.YdbTable.StoragePolicy.Builder, com.yandex.ydb.table.YdbTable.StoragePolicyOrBuilder>
getStoragePolicyFieldBuilder() {
if (storagePolicyBuilder_ == null) {
storagePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePolicy, com.yandex.ydb.table.YdbTable.StoragePolicy.Builder, com.yandex.ydb.table.YdbTable.StoragePolicyOrBuilder>(
getStoragePolicy(),
getParentForChildren(),
isClean());
storagePolicy_ = null;
}
return storagePolicyBuilder_;
}
private com.yandex.ydb.table.YdbTable.CompactionPolicy compactionPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.CompactionPolicy, com.yandex.ydb.table.YdbTable.CompactionPolicy.Builder, com.yandex.ydb.table.YdbTable.CompactionPolicyOrBuilder> compactionPolicyBuilder_;
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return Whether the compactionPolicy field is set.
*/
public boolean hasCompactionPolicy() {
return compactionPolicyBuilder_ != null || compactionPolicy_ != null;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @return The compactionPolicy.
*/
public com.yandex.ydb.table.YdbTable.CompactionPolicy getCompactionPolicy() {
if (compactionPolicyBuilder_ == null) {
return compactionPolicy_ == null ? com.yandex.ydb.table.YdbTable.CompactionPolicy.getDefaultInstance() : compactionPolicy_;
} else {
return compactionPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public Builder setCompactionPolicy(com.yandex.ydb.table.YdbTable.CompactionPolicy value) {
if (compactionPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
compactionPolicy_ = value;
onChanged();
} else {
compactionPolicyBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public Builder setCompactionPolicy(
com.yandex.ydb.table.YdbTable.CompactionPolicy.Builder builderForValue) {
if (compactionPolicyBuilder_ == null) {
compactionPolicy_ = builderForValue.build();
onChanged();
} else {
compactionPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public Builder mergeCompactionPolicy(com.yandex.ydb.table.YdbTable.CompactionPolicy value) {
if (compactionPolicyBuilder_ == null) {
if (compactionPolicy_ != null) {
compactionPolicy_ =
com.yandex.ydb.table.YdbTable.CompactionPolicy.newBuilder(compactionPolicy_).mergeFrom(value).buildPartial();
} else {
compactionPolicy_ = value;
}
onChanged();
} else {
compactionPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public Builder clearCompactionPolicy() {
if (compactionPolicyBuilder_ == null) {
compactionPolicy_ = null;
onChanged();
} else {
compactionPolicy_ = null;
compactionPolicyBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public com.yandex.ydb.table.YdbTable.CompactionPolicy.Builder getCompactionPolicyBuilder() {
onChanged();
return getCompactionPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
public com.yandex.ydb.table.YdbTable.CompactionPolicyOrBuilder getCompactionPolicyOrBuilder() {
if (compactionPolicyBuilder_ != null) {
return compactionPolicyBuilder_.getMessageOrBuilder();
} else {
return compactionPolicy_ == null ?
com.yandex.ydb.table.YdbTable.CompactionPolicy.getDefaultInstance() : compactionPolicy_;
}
}
/**
* .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.CompactionPolicy, com.yandex.ydb.table.YdbTable.CompactionPolicy.Builder, com.yandex.ydb.table.YdbTable.CompactionPolicyOrBuilder>
getCompactionPolicyFieldBuilder() {
if (compactionPolicyBuilder_ == null) {
compactionPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.CompactionPolicy, com.yandex.ydb.table.YdbTable.CompactionPolicy.Builder, com.yandex.ydb.table.YdbTable.CompactionPolicyOrBuilder>(
getCompactionPolicy(),
getParentForChildren(),
isClean());
compactionPolicy_ = null;
}
return compactionPolicyBuilder_;
}
private com.yandex.ydb.table.YdbTable.PartitioningPolicy partitioningPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.PartitioningPolicy, com.yandex.ydb.table.YdbTable.PartitioningPolicy.Builder, com.yandex.ydb.table.YdbTable.PartitioningPolicyOrBuilder> partitioningPolicyBuilder_;
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return Whether the partitioningPolicy field is set.
*/
public boolean hasPartitioningPolicy() {
return partitioningPolicyBuilder_ != null || partitioningPolicy_ != null;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @return The partitioningPolicy.
*/
public com.yandex.ydb.table.YdbTable.PartitioningPolicy getPartitioningPolicy() {
if (partitioningPolicyBuilder_ == null) {
return partitioningPolicy_ == null ? com.yandex.ydb.table.YdbTable.PartitioningPolicy.getDefaultInstance() : partitioningPolicy_;
} else {
return partitioningPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public Builder setPartitioningPolicy(com.yandex.ydb.table.YdbTable.PartitioningPolicy value) {
if (partitioningPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
partitioningPolicy_ = value;
onChanged();
} else {
partitioningPolicyBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public Builder setPartitioningPolicy(
com.yandex.ydb.table.YdbTable.PartitioningPolicy.Builder builderForValue) {
if (partitioningPolicyBuilder_ == null) {
partitioningPolicy_ = builderForValue.build();
onChanged();
} else {
partitioningPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public Builder mergePartitioningPolicy(com.yandex.ydb.table.YdbTable.PartitioningPolicy value) {
if (partitioningPolicyBuilder_ == null) {
if (partitioningPolicy_ != null) {
partitioningPolicy_ =
com.yandex.ydb.table.YdbTable.PartitioningPolicy.newBuilder(partitioningPolicy_).mergeFrom(value).buildPartial();
} else {
partitioningPolicy_ = value;
}
onChanged();
} else {
partitioningPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public Builder clearPartitioningPolicy() {
if (partitioningPolicyBuilder_ == null) {
partitioningPolicy_ = null;
onChanged();
} else {
partitioningPolicy_ = null;
partitioningPolicyBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public com.yandex.ydb.table.YdbTable.PartitioningPolicy.Builder getPartitioningPolicyBuilder() {
onChanged();
return getPartitioningPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
public com.yandex.ydb.table.YdbTable.PartitioningPolicyOrBuilder getPartitioningPolicyOrBuilder() {
if (partitioningPolicyBuilder_ != null) {
return partitioningPolicyBuilder_.getMessageOrBuilder();
} else {
return partitioningPolicy_ == null ?
com.yandex.ydb.table.YdbTable.PartitioningPolicy.getDefaultInstance() : partitioningPolicy_;
}
}
/**
* .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.PartitioningPolicy, com.yandex.ydb.table.YdbTable.PartitioningPolicy.Builder, com.yandex.ydb.table.YdbTable.PartitioningPolicyOrBuilder>
getPartitioningPolicyFieldBuilder() {
if (partitioningPolicyBuilder_ == null) {
partitioningPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.PartitioningPolicy, com.yandex.ydb.table.YdbTable.PartitioningPolicy.Builder, com.yandex.ydb.table.YdbTable.PartitioningPolicyOrBuilder>(
getPartitioningPolicy(),
getParentForChildren(),
isClean());
partitioningPolicy_ = null;
}
return partitioningPolicyBuilder_;
}
private com.yandex.ydb.table.YdbTable.ExecutionPolicy executionPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ExecutionPolicy, com.yandex.ydb.table.YdbTable.ExecutionPolicy.Builder, com.yandex.ydb.table.YdbTable.ExecutionPolicyOrBuilder> executionPolicyBuilder_;
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return Whether the executionPolicy field is set.
*/
public boolean hasExecutionPolicy() {
return executionPolicyBuilder_ != null || executionPolicy_ != null;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @return The executionPolicy.
*/
public com.yandex.ydb.table.YdbTable.ExecutionPolicy getExecutionPolicy() {
if (executionPolicyBuilder_ == null) {
return executionPolicy_ == null ? com.yandex.ydb.table.YdbTable.ExecutionPolicy.getDefaultInstance() : executionPolicy_;
} else {
return executionPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public Builder setExecutionPolicy(com.yandex.ydb.table.YdbTable.ExecutionPolicy value) {
if (executionPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executionPolicy_ = value;
onChanged();
} else {
executionPolicyBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public Builder setExecutionPolicy(
com.yandex.ydb.table.YdbTable.ExecutionPolicy.Builder builderForValue) {
if (executionPolicyBuilder_ == null) {
executionPolicy_ = builderForValue.build();
onChanged();
} else {
executionPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public Builder mergeExecutionPolicy(com.yandex.ydb.table.YdbTable.ExecutionPolicy value) {
if (executionPolicyBuilder_ == null) {
if (executionPolicy_ != null) {
executionPolicy_ =
com.yandex.ydb.table.YdbTable.ExecutionPolicy.newBuilder(executionPolicy_).mergeFrom(value).buildPartial();
} else {
executionPolicy_ = value;
}
onChanged();
} else {
executionPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public Builder clearExecutionPolicy() {
if (executionPolicyBuilder_ == null) {
executionPolicy_ = null;
onChanged();
} else {
executionPolicy_ = null;
executionPolicyBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public com.yandex.ydb.table.YdbTable.ExecutionPolicy.Builder getExecutionPolicyBuilder() {
onChanged();
return getExecutionPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
public com.yandex.ydb.table.YdbTable.ExecutionPolicyOrBuilder getExecutionPolicyOrBuilder() {
if (executionPolicyBuilder_ != null) {
return executionPolicyBuilder_.getMessageOrBuilder();
} else {
return executionPolicy_ == null ?
com.yandex.ydb.table.YdbTable.ExecutionPolicy.getDefaultInstance() : executionPolicy_;
}
}
/**
* .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ExecutionPolicy, com.yandex.ydb.table.YdbTable.ExecutionPolicy.Builder, com.yandex.ydb.table.YdbTable.ExecutionPolicyOrBuilder>
getExecutionPolicyFieldBuilder() {
if (executionPolicyBuilder_ == null) {
executionPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ExecutionPolicy, com.yandex.ydb.table.YdbTable.ExecutionPolicy.Builder, com.yandex.ydb.table.YdbTable.ExecutionPolicyOrBuilder>(
getExecutionPolicy(),
getParentForChildren(),
isClean());
executionPolicy_ = null;
}
return executionPolicyBuilder_;
}
private com.yandex.ydb.table.YdbTable.ReplicationPolicy replicationPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ReplicationPolicy, com.yandex.ydb.table.YdbTable.ReplicationPolicy.Builder, com.yandex.ydb.table.YdbTable.ReplicationPolicyOrBuilder> replicationPolicyBuilder_;
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return Whether the replicationPolicy field is set.
*/
public boolean hasReplicationPolicy() {
return replicationPolicyBuilder_ != null || replicationPolicy_ != null;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @return The replicationPolicy.
*/
public com.yandex.ydb.table.YdbTable.ReplicationPolicy getReplicationPolicy() {
if (replicationPolicyBuilder_ == null) {
return replicationPolicy_ == null ? com.yandex.ydb.table.YdbTable.ReplicationPolicy.getDefaultInstance() : replicationPolicy_;
} else {
return replicationPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public Builder setReplicationPolicy(com.yandex.ydb.table.YdbTable.ReplicationPolicy value) {
if (replicationPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
replicationPolicy_ = value;
onChanged();
} else {
replicationPolicyBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public Builder setReplicationPolicy(
com.yandex.ydb.table.YdbTable.ReplicationPolicy.Builder builderForValue) {
if (replicationPolicyBuilder_ == null) {
replicationPolicy_ = builderForValue.build();
onChanged();
} else {
replicationPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public Builder mergeReplicationPolicy(com.yandex.ydb.table.YdbTable.ReplicationPolicy value) {
if (replicationPolicyBuilder_ == null) {
if (replicationPolicy_ != null) {
replicationPolicy_ =
com.yandex.ydb.table.YdbTable.ReplicationPolicy.newBuilder(replicationPolicy_).mergeFrom(value).buildPartial();
} else {
replicationPolicy_ = value;
}
onChanged();
} else {
replicationPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public Builder clearReplicationPolicy() {
if (replicationPolicyBuilder_ == null) {
replicationPolicy_ = null;
onChanged();
} else {
replicationPolicy_ = null;
replicationPolicyBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public com.yandex.ydb.table.YdbTable.ReplicationPolicy.Builder getReplicationPolicyBuilder() {
onChanged();
return getReplicationPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
public com.yandex.ydb.table.YdbTable.ReplicationPolicyOrBuilder getReplicationPolicyOrBuilder() {
if (replicationPolicyBuilder_ != null) {
return replicationPolicyBuilder_.getMessageOrBuilder();
} else {
return replicationPolicy_ == null ?
com.yandex.ydb.table.YdbTable.ReplicationPolicy.getDefaultInstance() : replicationPolicy_;
}
}
/**
* .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ReplicationPolicy, com.yandex.ydb.table.YdbTable.ReplicationPolicy.Builder, com.yandex.ydb.table.YdbTable.ReplicationPolicyOrBuilder>
getReplicationPolicyFieldBuilder() {
if (replicationPolicyBuilder_ == null) {
replicationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ReplicationPolicy, com.yandex.ydb.table.YdbTable.ReplicationPolicy.Builder, com.yandex.ydb.table.YdbTable.ReplicationPolicyOrBuilder>(
getReplicationPolicy(),
getParentForChildren(),
isClean());
replicationPolicy_ = null;
}
return replicationPolicyBuilder_;
}
private com.yandex.ydb.table.YdbTable.CachingPolicy cachingPolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.CachingPolicy, com.yandex.ydb.table.YdbTable.CachingPolicy.Builder, com.yandex.ydb.table.YdbTable.CachingPolicyOrBuilder> cachingPolicyBuilder_;
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return Whether the cachingPolicy field is set.
*/
public boolean hasCachingPolicy() {
return cachingPolicyBuilder_ != null || cachingPolicy_ != null;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
* @return The cachingPolicy.
*/
public com.yandex.ydb.table.YdbTable.CachingPolicy getCachingPolicy() {
if (cachingPolicyBuilder_ == null) {
return cachingPolicy_ == null ? com.yandex.ydb.table.YdbTable.CachingPolicy.getDefaultInstance() : cachingPolicy_;
} else {
return cachingPolicyBuilder_.getMessage();
}
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public Builder setCachingPolicy(com.yandex.ydb.table.YdbTable.CachingPolicy value) {
if (cachingPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cachingPolicy_ = value;
onChanged();
} else {
cachingPolicyBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public Builder setCachingPolicy(
com.yandex.ydb.table.YdbTable.CachingPolicy.Builder builderForValue) {
if (cachingPolicyBuilder_ == null) {
cachingPolicy_ = builderForValue.build();
onChanged();
} else {
cachingPolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public Builder mergeCachingPolicy(com.yandex.ydb.table.YdbTable.CachingPolicy value) {
if (cachingPolicyBuilder_ == null) {
if (cachingPolicy_ != null) {
cachingPolicy_ =
com.yandex.ydb.table.YdbTable.CachingPolicy.newBuilder(cachingPolicy_).mergeFrom(value).buildPartial();
} else {
cachingPolicy_ = value;
}
onChanged();
} else {
cachingPolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public Builder clearCachingPolicy() {
if (cachingPolicyBuilder_ == null) {
cachingPolicy_ = null;
onChanged();
} else {
cachingPolicy_ = null;
cachingPolicyBuilder_ = null;
}
return this;
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public com.yandex.ydb.table.YdbTable.CachingPolicy.Builder getCachingPolicyBuilder() {
onChanged();
return getCachingPolicyFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
public com.yandex.ydb.table.YdbTable.CachingPolicyOrBuilder getCachingPolicyOrBuilder() {
if (cachingPolicyBuilder_ != null) {
return cachingPolicyBuilder_.getMessageOrBuilder();
} else {
return cachingPolicy_ == null ?
com.yandex.ydb.table.YdbTable.CachingPolicy.getDefaultInstance() : cachingPolicy_;
}
}
/**
* .Ydb.Table.CachingPolicy caching_policy = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.CachingPolicy, com.yandex.ydb.table.YdbTable.CachingPolicy.Builder, com.yandex.ydb.table.YdbTable.CachingPolicyOrBuilder>
getCachingPolicyFieldBuilder() {
if (cachingPolicyBuilder_ == null) {
cachingPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.CachingPolicy, com.yandex.ydb.table.YdbTable.CachingPolicy.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TableProfile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.TableProfile();
}
public static com.yandex.ydb.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 {
return new TableProfile(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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.
*/
com.yandex.ydb.ValueProtos.Type getType();
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder();
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The family.
*/
java.lang.String getFamily();
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The bytes for family.
*/
com.google.protobuf.ByteString
getFamilyBytes();
}
/**
* 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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ColumnMeta(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
com.yandex.ydb.ValueProtos.Type.Builder subBuilder = null;
if (type_ != null) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(com.yandex.ydb.ValueProtos.Type.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
family_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ColumnMeta.class, com.yandex.ydb.table.YdbTable.ColumnMeta.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
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 com.yandex.ydb.ValueProtos.Type type_;
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return type_ != null;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return The type.
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.Type getType() {
return type_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : type_;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
@java.lang.Override
public com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder() {
return getType();
}
public static final int FAMILY_FIELD_NUMBER = 3;
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 (type_ != null) {
output.writeMessage(2, getType());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(family_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, family_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (type_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getType());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(family_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, family_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ColumnMeta)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ColumnMeta other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
hash = (37 * hash) + FAMILY_FIELD_NUMBER;
hash = (53 * hash) + getFamily().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ColumnMeta parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ColumnMeta parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ColumnMeta parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ColumnMeta parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ColumnMeta parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ColumnMeta parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ColumnMeta parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.ColumnMetaOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ColumnMeta.class, com.yandex.ydb.table.YdbTable.ColumnMeta.Builder.class);
}
// Construct using com.yandex.ydb.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (typeBuilder_ == null) {
type_ = null;
} else {
type_ = null;
typeBuilder_ = null;
}
family_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnMeta_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnMeta getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ColumnMeta.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnMeta build() {
com.yandex.ydb.table.YdbTable.ColumnMeta result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnMeta buildPartial() {
com.yandex.ydb.table.YdbTable.ColumnMeta result = new com.yandex.ydb.table.YdbTable.ColumnMeta(this);
result.name_ = name_;
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
result.family_ = family_;
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 com.yandex.ydb.table.YdbTable.ColumnMeta) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ColumnMeta)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ColumnMeta other) {
if (other == com.yandex.ydb.table.YdbTable.ColumnMeta.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasType()) {
mergeType(other.getType());
}
if (!other.getFamily().isEmpty()) {
family_ = other.family_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ColumnMeta parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ColumnMeta) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
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;
onChanged();
return this;
}
/**
*
* Name of column
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
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;
onChanged();
return this;
}
private com.yandex.ydb.ValueProtos.Type type_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder> typeBuilder_;
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return Whether the type field is set.
*/
public boolean hasType() {
return typeBuilder_ != null || type_ != null;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
* @return The type.
*/
public com.yandex.ydb.ValueProtos.Type getType() {
if (typeBuilder_ == null) {
return type_ == null ? com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder setType(com.yandex.ydb.ValueProtos.Type value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder setType(
com.yandex.ydb.ValueProtos.Type.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder mergeType(com.yandex.ydb.ValueProtos.Type value) {
if (typeBuilder_ == null) {
if (type_ != null) {
type_ =
com.yandex.ydb.ValueProtos.Type.newBuilder(type_).mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
typeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
type_ = null;
typeBuilder_ = null;
}
return this;
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public com.yandex.ydb.ValueProtos.Type.Builder getTypeBuilder() {
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
public com.yandex.ydb.ValueProtos.TypeOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
com.yandex.ydb.ValueProtos.Type.getDefaultInstance() : type_;
}
}
/**
*
* Type of column
*
*
* .Ydb.Type type = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.ValueProtos.Type, com.yandex.ydb.ValueProtos.Type.Builder, com.yandex.ydb.ValueProtos.TypeOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
private java.lang.Object family_ = "";
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The family.
*/
public java.lang.String getFamily() {
java.lang.Object ref = family_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
family_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return The bytes for family.
*/
public com.google.protobuf.ByteString
getFamilyBytes() {
java.lang.Object ref = family_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
family_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Column family name of the column
*
*
* string family = 3;
* @param value The family to set.
* @return This builder for chaining.
*/
public Builder setFamily(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
family_ = value;
onChanged();
return this;
}
/**
*
* Column family name of the column
*
*
* string family = 3;
* @return This builder for chaining.
*/
public Builder clearFamily() {
family_ = getDefaultInstance().getFamily();
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;
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 com.yandex.ydb.table.YdbTable.ColumnMeta DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ColumnMeta();
}
public static com.yandex.ydb.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 {
return new ColumnMeta(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnMeta getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DateTypeColumnModeSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.DateTypeColumnModeSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The columnName.
*/
java.lang.String getColumnName();
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
com.google.protobuf.ByteString
getColumnNameBytes();
/**
* uint32 expire_after_seconds = 2;
* @return The expireAfterSeconds.
*/
int getExpireAfterSeconds();
}
/**
*
* The row will be considered as expired at the moment of time, when the value
* stored in <column_name> is less than or equal to the current time (in epoch
* time format), and <expire_after_seconds> has passed since that moment;
* i.e. the expiration threshold is the value of <column_name> plus <expire_after_seconds>.
*
*
* Protobuf type {@code Ydb.Table.DateTypeColumnModeSettings}
*/
public static final class DateTypeColumnModeSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.DateTypeColumnModeSettings)
DateTypeColumnModeSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DateTypeColumnModeSettings.newBuilder() to construct.
private DateTypeColumnModeSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DateTypeColumnModeSettings() {
columnName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DateTypeColumnModeSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DateTypeColumnModeSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
columnName_ = s;
break;
}
case 16: {
expireAfterSeconds_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.class, com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.Builder.class);
}
public static final int COLUMN_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object columnName_;
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The columnName.
*/
@java.lang.Override
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnName_ = s;
return s;
}
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getColumnNameBytes() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPIRE_AFTER_SECONDS_FIELD_NUMBER = 2;
private int expireAfterSeconds_;
/**
* 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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_);
}
if (expireAfterSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, expireAfterSeconds_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings other = (com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) obj;
if (!getColumnName()
.equals(other.getColumnName())) return false;
if (getExpireAfterSeconds()
!= other.getExpireAfterSeconds()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getColumnName().hashCode();
hash = (37 * hash) + EXPIRE_AFTER_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getExpireAfterSeconds();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.class, com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
columnName_ = "";
expireAfterSeconds_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_DateTypeColumnModeSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings build() {
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings buildPartial() {
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings result = new com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings(this);
result.columnName_ = columnName_;
result.expireAfterSeconds_ = expireAfterSeconds_;
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 com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) {
return mergeFrom((com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings other) {
if (other == com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance()) return this;
if (!other.getColumnName().isEmpty()) {
columnName_ = other.columnName_;
onChanged();
}
if (other.getExpireAfterSeconds() != 0) {
setExpireAfterSeconds(other.getExpireAfterSeconds());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object columnName_ = "";
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The columnName.
*/
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
public com.google.protobuf.ByteString
getColumnNameBytes() {
java.lang.Object ref = columnName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @param value The columnName to set.
* @return This builder for chaining.
*/
public Builder setColumnName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
columnName_ = value;
onChanged();
return this;
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @return This builder for chaining.
*/
public Builder clearColumnName() {
columnName_ = getDefaultInstance().getColumnName();
onChanged();
return this;
}
/**
*
* The column type must be a date type
*
*
* string column_name = 1;
* @param value The bytes for columnName to set.
* @return This builder for chaining.
*/
public Builder setColumnNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
columnName_ = value;
onChanged();
return this;
}
private int expireAfterSeconds_ ;
/**
* uint32 expire_after_seconds = 2;
* @return The expireAfterSeconds.
*/
@java.lang.Override
public int getExpireAfterSeconds() {
return expireAfterSeconds_;
}
/**
* uint32 expire_after_seconds = 2;
* @param value The expireAfterSeconds to set.
* @return This builder for chaining.
*/
public Builder setExpireAfterSeconds(int value) {
expireAfterSeconds_ = value;
onChanged();
return this;
}
/**
* uint32 expire_after_seconds = 2;
* @return This builder for chaining.
*/
public Builder clearExpireAfterSeconds() {
expireAfterSeconds_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Table.DateTypeColumnModeSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.DateTypeColumnModeSettings)
private static final com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings();
}
public static com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DateTypeColumnModeSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DateTypeColumnModeSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ValueSinceUnixEpochModeSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ValueSinceUnixEpochModeSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The columnName.
*/
java.lang.String getColumnName();
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
com.google.protobuf.ByteString
getColumnNameBytes();
/**
*
* Interpretation of the value stored in <column_name>
*
*
* .Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;
* @return The enum numeric value on the wire for columnUnit.
*/
int getColumnUnitValue();
/**
*
* Interpretation of the value stored in <column_name>
*
*
* .Ydb.Table.ValueSinceUnixEpochModeSettings.Unit column_unit = 2;
* @return The columnUnit.
*/
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit getColumnUnit();
/**
*
* This option is always interpreted as seconds regardless of the
* <column_unit> value.
*
*
* uint32 expire_after_seconds = 3;
* @return The expireAfterSeconds.
*/
int getExpireAfterSeconds();
}
/**
*
* Same as DateTypeColumnModeSettings (above), but useful when type of the
* value stored in <column_name> is not a date type.
*
*
* Protobuf type {@code Ydb.Table.ValueSinceUnixEpochModeSettings}
*/
public static final class ValueSinceUnixEpochModeSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ValueSinceUnixEpochModeSettings)
ValueSinceUnixEpochModeSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueSinceUnixEpochModeSettings.newBuilder() to construct.
private ValueSinceUnixEpochModeSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueSinceUnixEpochModeSettings() {
columnName_ = "";
columnUnit_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueSinceUnixEpochModeSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValueSinceUnixEpochModeSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
columnName_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
columnUnit_ = rawValue;
break;
}
case 24: {
expireAfterSeconds_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.class, com.yandex.ydb.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 com.yandex.ydb.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;
private volatile java.lang.Object columnName_;
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The columnName.
*/
@java.lang.Override
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnName_ = s;
return s;
}
}
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getColumnNameBytes() {
java.lang.Object ref = columnName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COLUMN_UNIT_FIELD_NUMBER = 2;
private int columnUnit_;
/**
*
* 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 com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit getColumnUnit() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit result = com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit.valueOf(columnUnit_);
return result == null ? com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit.UNRECOGNIZED : result;
}
public static final int EXPIRE_AFTER_SECONDS_FIELD_NUMBER = 3;
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_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_);
}
if (columnUnit_ != com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit.UNIT_UNSPECIFIED.getNumber()) {
output.writeEnum(2, columnUnit_);
}
if (expireAfterSeconds_ != 0) {
output.writeUInt32(3, expireAfterSeconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_);
}
if (columnUnit_ != com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit.UNIT_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, columnUnit_);
}
if (expireAfterSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, expireAfterSeconds_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings other = (com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) obj;
if (!getColumnName()
.equals(other.getColumnName())) return false;
if (columnUnit_ != other.columnUnit_) return false;
if (getExpireAfterSeconds()
!= other.getExpireAfterSeconds()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getColumnName().hashCode();
hash = (37 * hash) + COLUMN_UNIT_FIELD_NUMBER;
hash = (53 * hash) + columnUnit_;
hash = (37 * hash) + EXPIRE_AFTER_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getExpireAfterSeconds();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Same as DateTypeColumnModeSettings (above), but useful when type of the
* value stored in <column_name> is not a date type.
*
*
* Protobuf type {@code Ydb.Table.ValueSinceUnixEpochModeSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ValueSinceUnixEpochModeSettings)
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.class, com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
columnName_ = "";
columnUnit_ = 0;
expireAfterSeconds_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ValueSinceUnixEpochModeSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings build() {
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings buildPartial() {
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings result = new com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings(this);
result.columnName_ = columnName_;
result.columnUnit_ = columnUnit_;
result.expireAfterSeconds_ = expireAfterSeconds_;
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 com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings other) {
if (other == com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance()) return this;
if (!other.getColumnName().isEmpty()) {
columnName_ = other.columnName_;
onChanged();
}
if (other.columnUnit_ != 0) {
setColumnUnitValue(other.getColumnUnitValue());
}
if (other.getExpireAfterSeconds() != 0) {
setExpireAfterSeconds(other.getExpireAfterSeconds());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object columnName_ = "";
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The columnName.
*/
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
columnName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return The bytes for columnName.
*/
public com.google.protobuf.ByteString
getColumnNameBytes() {
java.lang.Object ref = columnName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
columnName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @param value The columnName to set.
* @return This builder for chaining.
*/
public Builder setColumnName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
columnName_ = value;
onChanged();
return this;
}
/**
*
* The column type must be one of:
* - Uint32
* - Uint64
* - DyNumber
*
*
* string column_name = 1;
* @return This builder for chaining.
*/
public Builder clearColumnName() {
columnName_ = getDefaultInstance().getColumnName();
onChanged();
return this;
}
/**
*
* 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;
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;
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 com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit getColumnUnit() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit result = com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit.valueOf(columnUnit_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Unit value) {
if (value == null) {
throw new NullPointerException();
}
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() {
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;
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() {
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 com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings();
}
public static com.yandex.ydb.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 {
return new ValueSinceUnixEpochModeSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings getDateTypeColumn();
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings getValueSinceUnixEpoch();
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
com.yandex.ydb.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();
public com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TtlSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.Builder subBuilder = null;
if (modeCase_ == 1) {
subBuilder = ((com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_).toBuilder();
}
mode_ =
input.readMessage(com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_);
mode_ = subBuilder.buildPartial();
}
modeCase_ = 1;
break;
}
case 18: {
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder subBuilder = null;
if (modeCase_ == 2) {
subBuilder = ((com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_).toBuilder();
}
mode_ =
input.readMessage(com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_);
mode_ = subBuilder.buildPartial();
}
modeCase_ = 2;
break;
}
case 24: {
runIntervalSeconds_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TtlSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TtlSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TtlSettings.class, com.yandex.ydb.table.YdbTable.TtlSettings.Builder.class);
}
private int modeCase_ = 0;
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 com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings getDateTypeColumn() {
if (modeCase_ == 1) {
return (com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_;
}
return com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettingsOrBuilder getDateTypeColumnOrBuilder() {
if (modeCase_ == 1) {
return (com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_;
}
return com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings getValueSinceUnixEpoch() {
if (modeCase_ == 2) {
return (com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_;
}
return com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder getValueSinceUnixEpochOrBuilder() {
if (modeCase_ == 2) {
return (com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_;
}
return com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
public static final int RUN_INTERVAL_SECONDS_FIELD_NUMBER = 3;
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_;
}
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, (com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_);
}
if (modeCase_ == 2) {
output.writeMessage(2, (com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_);
}
if (runIntervalSeconds_ != 0) {
output.writeUInt32(3, runIntervalSeconds_);
}
unknownFields.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, (com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_);
}
if (modeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_);
}
if (runIntervalSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, runIntervalSeconds_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.TtlSettings)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.TtlSettings other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + 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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.TtlSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TtlSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TtlSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.TtlSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.TtlSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TtlSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.TtlSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.TtlSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TtlSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TtlSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.TtlSettings.class, com.yandex.ydb.table.YdbTable.TtlSettings.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.TtlSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
runIntervalSeconds_ = 0;
modeCase_ = 0;
mode_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_TtlSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TtlSettings getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.TtlSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TtlSettings build() {
com.yandex.ydb.table.YdbTable.TtlSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.TtlSettings buildPartial() {
com.yandex.ydb.table.YdbTable.TtlSettings result = new com.yandex.ydb.table.YdbTable.TtlSettings(this);
if (modeCase_ == 1) {
if (dateTypeColumnBuilder_ == null) {
result.mode_ = mode_;
} else {
result.mode_ = dateTypeColumnBuilder_.build();
}
}
if (modeCase_ == 2) {
if (valueSinceUnixEpochBuilder_ == null) {
result.mode_ = mode_;
} else {
result.mode_ = valueSinceUnixEpochBuilder_.build();
}
}
result.runIntervalSeconds_ = runIntervalSeconds_;
result.modeCase_ = modeCase_;
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 com.yandex.ydb.table.YdbTable.TtlSettings) {
return mergeFrom((com.yandex.ydb.table.YdbTable.TtlSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.TtlSettings other) {
if (other == com.yandex.ydb.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.TtlSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.TtlSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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 com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings, com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings getDateTypeColumn() {
if (dateTypeColumnBuilder_ == null) {
if (modeCase_ == 1) {
return (com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_;
}
return com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
} else {
if (modeCase_ == 1) {
return dateTypeColumnBuilder_.getMessage();
}
return com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
public Builder setDateTypeColumn(com.yandex.ydb.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(
com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings value) {
if (dateTypeColumnBuilder_ == null) {
if (modeCase_ == 1 &&
mode_ != com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance()) {
mode_ = com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.newBuilder((com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_)
.mergeFrom(value).buildPartial();
} else {
mode_ = value;
}
onChanged();
} else {
if (modeCase_ == 1) {
dateTypeColumnBuilder_.mergeFrom(value);
}
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 com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.Builder getDateTypeColumnBuilder() {
return getDateTypeColumnFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettingsOrBuilder getDateTypeColumnOrBuilder() {
if ((modeCase_ == 1) && (dateTypeColumnBuilder_ != null)) {
return dateTypeColumnBuilder_.getMessageOrBuilder();
} else {
if (modeCase_ == 1) {
return (com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_;
}
return com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Table.DateTypeColumnModeSettings date_type_column = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings, com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.Builder, com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettingsOrBuilder>
getDateTypeColumnFieldBuilder() {
if (dateTypeColumnBuilder_ == null) {
if (!(modeCase_ == 1)) {
mode_ = com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.getDefaultInstance();
}
dateTypeColumnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings, com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings.Builder, com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettingsOrBuilder>(
(com.yandex.ydb.table.YdbTable.DateTypeColumnModeSettings) mode_,
getParentForChildren(),
isClean());
mode_ = null;
}
modeCase_ = 1;
onChanged();;
return dateTypeColumnBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings, com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder, com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings getValueSinceUnixEpoch() {
if (valueSinceUnixEpochBuilder_ == null) {
if (modeCase_ == 2) {
return (com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_;
}
return com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
} else {
if (modeCase_ == 2) {
return valueSinceUnixEpochBuilder_.getMessage();
}
return com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
public Builder setValueSinceUnixEpoch(com.yandex.ydb.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(
com.yandex.ydb.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(com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings value) {
if (valueSinceUnixEpochBuilder_ == null) {
if (modeCase_ == 2 &&
mode_ != com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance()) {
mode_ = com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.newBuilder((com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_)
.mergeFrom(value).buildPartial();
} else {
mode_ = value;
}
onChanged();
} else {
if (modeCase_ == 2) {
valueSinceUnixEpochBuilder_.mergeFrom(value);
}
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 com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder getValueSinceUnixEpochBuilder() {
return getValueSinceUnixEpochFieldBuilder().getBuilder();
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder getValueSinceUnixEpochOrBuilder() {
if ((modeCase_ == 2) && (valueSinceUnixEpochBuilder_ != null)) {
return valueSinceUnixEpochBuilder_.getMessageOrBuilder();
} else {
if (modeCase_ == 2) {
return (com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings) mode_;
}
return com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
}
/**
* .Ydb.Table.ValueSinceUnixEpochModeSettings value_since_unix_epoch = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings, com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder, com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder>
getValueSinceUnixEpochFieldBuilder() {
if (valueSinceUnixEpochBuilder_ == null) {
if (!(modeCase_ == 2)) {
mode_ = com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.getDefaultInstance();
}
valueSinceUnixEpochBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings, com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettings.Builder, com.yandex.ydb.table.YdbTable.ValueSinceUnixEpochModeSettingsOrBuilder>(
(com.yandex.ydb.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;
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() {
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 com.yandex.ydb.table.YdbTable.TtlSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.TtlSettings();
}
public static com.yandex.ydb.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 {
return new TtlSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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
*
*
* .Ydb.Table.StoragePool tablet_commit_log0 = 1;
* @return The tabletCommitLog0.
*/
com.yandex.ydb.table.YdbTable.StoragePool getTabletCommitLog0();
/**
*
* 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;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getTabletCommitLog0OrBuilder();
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
* @return Whether the tabletCommitLog1 field is set.
*/
boolean hasTabletCommitLog1();
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
* @return The tabletCommitLog1.
*/
com.yandex.ydb.table.YdbTable.StoragePool getTabletCommitLog1();
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getTabletCommitLog1OrBuilder();
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
* @return Whether the external field is set.
*/
boolean hasExternal();
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
* @return The external.
*/
com.yandex.ydb.table.YdbTable.StoragePool getExternal();
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder();
/**
*
* 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.
*/
com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StorageSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (tabletCommitLog0_ != null) {
subBuilder = tabletCommitLog0_.toBuilder();
}
tabletCommitLog0_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tabletCommitLog0_);
tabletCommitLog0_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (tabletCommitLog1_ != null) {
subBuilder = tabletCommitLog1_.toBuilder();
}
tabletCommitLog1_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tabletCommitLog1_);
tabletCommitLog1_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (external_ != null) {
subBuilder = external_.toBuilder();
}
external_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(external_);
external_ = subBuilder.buildPartial();
}
break;
}
case 40: {
int rawValue = input.readEnum();
storeExternalBlobs_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StorageSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StorageSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.StorageSettings.class, com.yandex.ydb.table.YdbTable.StorageSettings.Builder.class);
}
public static final int TABLET_COMMIT_LOG0_FIELD_NUMBER = 1;
private com.yandex.ydb.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 tabletCommitLog0_ != null;
}
/**
*
* 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 The tabletCommitLog0.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getTabletCommitLog0() {
return tabletCommitLog0_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : 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;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getTabletCommitLog0OrBuilder() {
return getTabletCommitLog0();
}
public static final int TABLET_COMMIT_LOG1_FIELD_NUMBER = 2;
private com.yandex.ydb.table.YdbTable.StoragePool tabletCommitLog1_;
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
* @return Whether the tabletCommitLog1 field is set.
*/
@java.lang.Override
public boolean hasTabletCommitLog1() {
return tabletCommitLog1_ != null;
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
* @return The tabletCommitLog1.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getTabletCommitLog1() {
return tabletCommitLog1_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : tabletCommitLog1_;
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getTabletCommitLog1OrBuilder() {
return getTabletCommitLog1();
}
public static final int EXTERNAL_FIELD_NUMBER = 4;
private com.yandex.ydb.table.YdbTable.StoragePool external_;
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
* @return Whether the external field is set.
*/
@java.lang.Override
public boolean hasExternal() {
return external_ != null;
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
* @return The external.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getExternal() {
return external_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
return getExternal();
}
public static final int STORE_EXTERNAL_BLOBS_FIELD_NUMBER = 5;
private int 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 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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getStoreExternalBlobs() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(storeExternalBlobs_);
return result == null ? com.yandex.ydb.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 (tabletCommitLog0_ != null) {
output.writeMessage(1, getTabletCommitLog0());
}
if (tabletCommitLog1_ != null) {
output.writeMessage(2, getTabletCommitLog1());
}
if (external_ != null) {
output.writeMessage(4, getExternal());
}
if (storeExternalBlobs_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(5, storeExternalBlobs_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (tabletCommitLog0_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTabletCommitLog0());
}
if (tabletCommitLog1_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTabletCommitLog1());
}
if (external_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getExternal());
}
if (storeExternalBlobs_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, storeExternalBlobs_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.StorageSettings)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.StorageSettings other = (com.yandex.ydb.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 (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.StorageSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.StorageSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.StorageSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.StorageSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.StorageSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.StorageSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.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 com.yandex.ydb.table.YdbTable.StorageSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.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(com.yandex.ydb.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)
com.yandex.ydb.table.YdbTable.StorageSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StorageSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StorageSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.StorageSettings.class, com.yandex.ydb.table.YdbTable.StorageSettings.Builder.class);
}
// Construct using com.yandex.ydb.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (tabletCommitLog0Builder_ == null) {
tabletCommitLog0_ = null;
} else {
tabletCommitLog0_ = null;
tabletCommitLog0Builder_ = null;
}
if (tabletCommitLog1Builder_ == null) {
tabletCommitLog1_ = null;
} else {
tabletCommitLog1_ = null;
tabletCommitLog1Builder_ = null;
}
if (externalBuilder_ == null) {
external_ = null;
} else {
external_ = null;
externalBuilder_ = null;
}
storeExternalBlobs_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_StorageSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StorageSettings getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.StorageSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StorageSettings build() {
com.yandex.ydb.table.YdbTable.StorageSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StorageSettings buildPartial() {
com.yandex.ydb.table.YdbTable.StorageSettings result = new com.yandex.ydb.table.YdbTable.StorageSettings(this);
if (tabletCommitLog0Builder_ == null) {
result.tabletCommitLog0_ = tabletCommitLog0_;
} else {
result.tabletCommitLog0_ = tabletCommitLog0Builder_.build();
}
if (tabletCommitLog1Builder_ == null) {
result.tabletCommitLog1_ = tabletCommitLog1_;
} else {
result.tabletCommitLog1_ = tabletCommitLog1Builder_.build();
}
if (externalBuilder_ == null) {
result.external_ = external_;
} else {
result.external_ = externalBuilder_.build();
}
result.storeExternalBlobs_ = storeExternalBlobs_;
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 com.yandex.ydb.table.YdbTable.StorageSettings) {
return mergeFrom((com.yandex.ydb.table.YdbTable.StorageSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.StorageSettings other) {
if (other == com.yandex.ydb.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.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.StorageSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.StorageSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.table.YdbTable.StoragePool tabletCommitLog0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.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 tabletCommitLog0Builder_ != null || tabletCommitLog0_ != null;
}
/**
*
* 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 The tabletCommitLog0.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getTabletCommitLog0() {
if (tabletCommitLog0Builder_ == null) {
return tabletCommitLog0_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : tabletCommitLog0_;
} else {
return tabletCommitLog0Builder_.getMessage();
}
}
/**
*
* 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;
*/
public Builder setTabletCommitLog0(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (tabletCommitLog0Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tabletCommitLog0_ = value;
onChanged();
} else {
tabletCommitLog0Builder_.setMessage(value);
}
return this;
}
/**
*
* 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;
*/
public Builder setTabletCommitLog0(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (tabletCommitLog0Builder_ == null) {
tabletCommitLog0_ = builderForValue.build();
onChanged();
} else {
tabletCommitLog0Builder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 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;
*/
public Builder mergeTabletCommitLog0(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (tabletCommitLog0Builder_ == null) {
if (tabletCommitLog0_ != null) {
tabletCommitLog0_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(tabletCommitLog0_).mergeFrom(value).buildPartial();
} else {
tabletCommitLog0_ = value;
}
onChanged();
} else {
tabletCommitLog0Builder_.mergeFrom(value);
}
return this;
}
/**
*
* 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;
*/
public Builder clearTabletCommitLog0() {
if (tabletCommitLog0Builder_ == null) {
tabletCommitLog0_ = null;
onChanged();
} else {
tabletCommitLog0_ = null;
tabletCommitLog0Builder_ = null;
}
return this;
}
/**
*
* 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;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getTabletCommitLog0Builder() {
onChanged();
return getTabletCommitLog0FieldBuilder().getBuilder();
}
/**
*
* 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;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getTabletCommitLog0OrBuilder() {
if (tabletCommitLog0Builder_ != null) {
return tabletCommitLog0Builder_.getMessageOrBuilder();
} else {
return tabletCommitLog0_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : 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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getTabletCommitLog0FieldBuilder() {
if (tabletCommitLog0Builder_ == null) {
tabletCommitLog0Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getTabletCommitLog0(),
getParentForChildren(),
isClean());
tabletCommitLog0_ = null;
}
return tabletCommitLog0Builder_;
}
private com.yandex.ydb.table.YdbTable.StoragePool tabletCommitLog1_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder> tabletCommitLog1Builder_;
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
* @return Whether the tabletCommitLog1 field is set.
*/
public boolean hasTabletCommitLog1() {
return tabletCommitLog1Builder_ != null || tabletCommitLog1_ != null;
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
* @return The tabletCommitLog1.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getTabletCommitLog1() {
if (tabletCommitLog1Builder_ == null) {
return tabletCommitLog1_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : tabletCommitLog1_;
} else {
return tabletCommitLog1Builder_.getMessage();
}
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
*/
public Builder setTabletCommitLog1(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (tabletCommitLog1Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tabletCommitLog1_ = value;
onChanged();
} else {
tabletCommitLog1Builder_.setMessage(value);
}
return this;
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
*/
public Builder setTabletCommitLog1(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (tabletCommitLog1Builder_ == null) {
tabletCommitLog1_ = builderForValue.build();
onChanged();
} else {
tabletCommitLog1Builder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
*/
public Builder mergeTabletCommitLog1(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (tabletCommitLog1Builder_ == null) {
if (tabletCommitLog1_ != null) {
tabletCommitLog1_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(tabletCommitLog1_).mergeFrom(value).buildPartial();
} else {
tabletCommitLog1_ = value;
}
onChanged();
} else {
tabletCommitLog1Builder_.mergeFrom(value);
}
return this;
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
*/
public Builder clearTabletCommitLog1() {
if (tabletCommitLog1Builder_ == null) {
tabletCommitLog1_ = null;
onChanged();
} else {
tabletCommitLog1_ = null;
tabletCommitLog1Builder_ = null;
}
return this;
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getTabletCommitLog1Builder() {
onChanged();
return getTabletCommitLog1FieldBuilder().getBuilder();
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getTabletCommitLog1OrBuilder() {
if (tabletCommitLog1Builder_ != null) {
return tabletCommitLog1Builder_.getMessageOrBuilder();
} else {
return tabletCommitLog1_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : tabletCommitLog1_;
}
}
/**
*
* This specifies internal channel 1 commit log storage pool
* Fastest available storage recommended, small amounts of short-lived data
*
*
* .Ydb.Table.StoragePool tablet_commit_log1 = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getTabletCommitLog1FieldBuilder() {
if (tabletCommitLog1Builder_ == null) {
tabletCommitLog1Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getTabletCommitLog1(),
getParentForChildren(),
isClean());
tabletCommitLog1_ = null;
}
return tabletCommitLog1Builder_;
}
private com.yandex.ydb.table.YdbTable.StoragePool external_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder> externalBuilder_;
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
* @return Whether the external field is set.
*/
public boolean hasExternal() {
return externalBuilder_ != null || external_ != null;
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
* @return The external.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getExternal() {
if (externalBuilder_ == null) {
return external_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : external_;
} else {
return externalBuilder_.getMessage();
}
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
*/
public Builder setExternal(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
external_ = value;
onChanged();
} else {
externalBuilder_.setMessage(value);
}
return this;
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
*/
public Builder setExternal(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (externalBuilder_ == null) {
external_ = builderForValue.build();
onChanged();
} else {
externalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
*/
public Builder mergeExternal(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (externalBuilder_ == null) {
if (external_ != null) {
external_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(external_).mergeFrom(value).buildPartial();
} else {
external_ = value;
}
onChanged();
} else {
externalBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
*/
public Builder clearExternal() {
if (externalBuilder_ == null) {
external_ = null;
onChanged();
} else {
external_ = null;
externalBuilder_ = null;
}
return this;
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getExternalBuilder() {
onChanged();
return getExternalFieldBuilder().getBuilder();
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getExternalOrBuilder() {
if (externalBuilder_ != null) {
return externalBuilder_.getMessageOrBuilder();
} else {
return external_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : external_;
}
}
/**
*
* This specifies external blobs storage pool
*
*
* .Ydb.Table.StoragePool external = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getExternalFieldBuilder() {
if (externalBuilder_ == null) {
externalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getExternal(),
getParentForChildren(),
isClean());
external_ = null;
}
return externalBuilder_;
}
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;
* @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;
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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getStoreExternalBlobs() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(storeExternalBlobs_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
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() {
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 com.yandex.ydb.table.YdbTable.StorageSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.StorageSettings();
}
public static com.yandex.ydb.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 {
return new StorageSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.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.
*/
com.yandex.ydb.table.YdbTable.StoragePool getData();
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
*/
com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder();
/**
*
* 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
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @return The compression.
*/
com.yandex.ydb.table.YdbTable.ColumnFamily.Compression getCompression();
/**
*
* 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.
*/
com.yandex.ydb.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();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ColumnFamily(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
com.yandex.ydb.table.YdbTable.StoragePool.Builder subBuilder = null;
if (data_ != null) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(com.yandex.ydb.table.YdbTable.StoragePool.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
break;
}
case 24: {
int rawValue = input.readEnum();
compression_ = rawValue;
break;
}
case 32: {
int rawValue = input.readEnum();
keepInMemory_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamily_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamily_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ColumnFamily.class, com.yandex.ydb.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 com.yandex.ydb.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)
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* 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.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 at 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 com.yandex.ydb.table.YdbTable.StoragePool data_;
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return data_ != null;
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
* @return The data.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePool getData() {
return data_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
return getData();
}
public static final int COMPRESSION_FIELD_NUMBER = 3;
private int compression_;
/**
*
* Optionally specify how data should be compressed
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @return The enum numeric value on the wire for compression.
*/
@java.lang.Override public int getCompressionValue() {
return compression_;
}
/**
*
* Optionally specify how data should be compressed
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @return The compression.
*/
@java.lang.Override public com.yandex.ydb.table.YdbTable.ColumnFamily.Compression getCompression() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ColumnFamily.Compression result = com.yandex.ydb.table.YdbTable.ColumnFamily.Compression.valueOf(compression_);
return result == null ? com.yandex.ydb.table.YdbTable.ColumnFamily.Compression.UNRECOGNIZED : result;
}
public static final int KEEP_IN_MEMORY_FIELD_NUMBER = 4;
private int keepInMemory_;
/**
*
* 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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(keepInMemory_);
return result == null ? com.yandex.ydb.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(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (data_ != null) {
output.writeMessage(2, getData());
}
if (compression_ != com.yandex.ydb.table.YdbTable.ColumnFamily.Compression.COMPRESSION_UNSPECIFIED.getNumber()) {
output.writeEnum(3, compression_);
}
if (keepInMemory_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(4, keepInMemory_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (data_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getData());
}
if (compression_ != com.yandex.ydb.table.YdbTable.ColumnFamily.Compression.COMPRESSION_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, compression_);
}
if (keepInMemory_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, keepInMemory_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ColumnFamily)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ColumnFamily other = (com.yandex.ydb.table.YdbTable.ColumnFamily) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (compression_ != other.compression_) return false;
if (keepInMemory_ != other.keepInMemory_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (37 * hash) + COMPRESSION_FIELD_NUMBER;
hash = (53 * hash) + compression_;
hash = (37 * hash) + KEEP_IN_MEMORY_FIELD_NUMBER;
hash = (53 * hash) + keepInMemory_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily 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 com.yandex.ydb.table.YdbTable.ColumnFamily parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily 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 com.yandex.ydb.table.YdbTable.ColumnFamily parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily 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(com.yandex.ydb.table.YdbTable.ColumnFamily 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.ColumnFamily}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ColumnFamily)
com.yandex.ydb.table.YdbTable.ColumnFamilyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamily_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamily_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ColumnFamily.class, com.yandex.ydb.table.YdbTable.ColumnFamily.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ColumnFamily.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
if (dataBuilder_ == null) {
data_ = null;
} else {
data_ = null;
dataBuilder_ = null;
}
compression_ = 0;
keepInMemory_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ColumnFamily_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamily getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ColumnFamily.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamily build() {
com.yandex.ydb.table.YdbTable.ColumnFamily result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamily buildPartial() {
com.yandex.ydb.table.YdbTable.ColumnFamily result = new com.yandex.ydb.table.YdbTable.ColumnFamily(this);
result.name_ = name_;
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
result.compression_ = compression_;
result.keepInMemory_ = keepInMemory_;
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 com.yandex.ydb.table.YdbTable.ColumnFamily) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ColumnFamily)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ColumnFamily other) {
if (other == com.yandex.ydb.table.YdbTable.ColumnFamily.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.compression_ != 0) {
setCompressionValue(other.getCompressionValue());
}
if (other.keepInMemory_ != 0) {
setKeepInMemoryValue(other.getKeepInMemoryValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ColumnFamily parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ColumnFamily) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* 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.
*/
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 at 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 at 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;
onChanged();
return this;
}
/**
*
* 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 This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* 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;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.yandex.ydb.table.YdbTable.StoragePool data_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder> dataBuilder_;
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
* @return Whether the data field is set.
*/
public boolean hasData() {
return dataBuilder_ != null || data_ != null;
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
* @return The data.
*/
public com.yandex.ydb.table.YdbTable.StoragePool getData() {
if (dataBuilder_ == null) {
return data_ == null ? com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder setData(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
return this;
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder setData(
com.yandex.ydb.table.YdbTable.StoragePool.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder mergeData(com.yandex.ydb.table.YdbTable.StoragePool value) {
if (dataBuilder_ == null) {
if (data_ != null) {
data_ =
com.yandex.ydb.table.YdbTable.StoragePool.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
data_ = null;
dataBuilder_ = null;
}
return this;
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePool.Builder getDataBuilder() {
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
*/
public com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
com.yandex.ydb.table.YdbTable.StoragePool.getDefaultInstance() : data_;
}
}
/**
*
* This specifies data storage settings for column family
*
*
* .Ydb.Table.StoragePool data = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.table.YdbTable.StoragePool, com.yandex.ydb.table.YdbTable.StoragePool.Builder, com.yandex.ydb.table.YdbTable.StoragePoolOrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private int compression_ = 0;
/**
*
* Optionally specify how data should be compressed
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @return The enum numeric value on the wire for compression.
*/
@java.lang.Override public int getCompressionValue() {
return compression_;
}
/**
*
* Optionally specify how data should be compressed
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @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;
onChanged();
return this;
}
/**
*
* Optionally specify how data should be compressed
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @return The compression.
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamily.Compression getCompression() {
@SuppressWarnings("deprecation")
com.yandex.ydb.table.YdbTable.ColumnFamily.Compression result = com.yandex.ydb.table.YdbTable.ColumnFamily.Compression.valueOf(compression_);
return result == null ? com.yandex.ydb.table.YdbTable.ColumnFamily.Compression.UNRECOGNIZED : result;
}
/**
*
* Optionally specify how data should be compressed
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @param value The compression to set.
* @return This builder for chaining.
*/
public Builder setCompression(com.yandex.ydb.table.YdbTable.ColumnFamily.Compression value) {
if (value == null) {
throw new NullPointerException();
}
compression_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Optionally specify how data should be compressed
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @return This builder for chaining.
*/
public Builder clearCompression() {
compression_ = 0;
onChanged();
return this;
}
private int keepInMemory_ = 0;
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The enum numeric value on the wire for keepInMemory.
*/
@java.lang.Override public int getKeepInMemoryValue() {
return keepInMemory_;
}
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @param value The enum numeric value on the wire for keepInMemory to set.
* @return This builder for chaining.
*/
public Builder setKeepInMemoryValue(int value) {
keepInMemory_ = value;
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 com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getKeepInMemory() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(keepInMemory_);
return result == null ? com.yandex.ydb.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(com.yandex.ydb.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
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() {
keepInMemory_ = 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.ColumnFamily)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ColumnFamily)
private static final com.yandex.ydb.table.YdbTable.ColumnFamily DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ColumnFamily();
}
public static com.yandex.ydb.table.YdbTable.ColumnFamily getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ColumnFamily parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ColumnFamily(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ColumnFamily getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PartitioningSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.PartitioningSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Enable auto partitioning on reaching upper or lower partition size bound
*
*
* .Ydb.FeatureFlag.Status partitioning_by_size = 2;
* @return The enum numeric value on the wire for partitioningBySize.
*/
int getPartitioningBySizeValue();
/**
*
* Enable auto partitioning on reaching upper or lower partition size bound
*
*
* .Ydb.FeatureFlag.Status partitioning_by_size = 2;
* @return The partitioningBySize.
*/
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getPartitioningBySize();
/**
*
* Preferred partition size for auto partitioning by size, Mb
*
*
* uint64 partition_size_mb = 3;
* @return The partitionSizeMb.
*/
long getPartitionSizeMb();
/**
*
* Enable auto partitioning based on load on each partition
*
*
* .Ydb.FeatureFlag.Status partitioning_by_load = 4;
* @return The enum numeric value on the wire for partitioningByLoad.
*/
int getPartitioningByLoadValue();
/**
*
* Enable auto partitioning based on load on each partition
*
*
* .Ydb.FeatureFlag.Status partitioning_by_load = 4;
* @return The partitioningByLoad.
*/
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getPartitioningByLoad();
/**
*
* Minimum partitions count auto merge would stop working at
*
*
* uint64 min_partitions_count = 6;
* @return The minPartitionsCount.
*/
long getMinPartitionsCount();
/**
*
* Maximum partitions count auto split would stop working at
*
*
* uint64 max_partitions_count = 7;
* @return The maxPartitionsCount.
*/
long getMaxPartitionsCount();
}
/**
* Protobuf type {@code Ydb.Table.PartitioningSettings}
*/
public static final class PartitioningSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.PartitioningSettings)
PartitioningSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use PartitioningSettings.newBuilder() to construct.
private PartitioningSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PartitioningSettings() {
partitioningBySize_ = 0;
partitioningByLoad_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PartitioningSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PartitioningSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 16: {
int rawValue = input.readEnum();
partitioningBySize_ = rawValue;
break;
}
case 24: {
partitionSizeMb_ = input.readUInt64();
break;
}
case 32: {
int rawValue = input.readEnum();
partitioningByLoad_ = rawValue;
break;
}
case 48: {
minPartitionsCount_ = input.readUInt64();
break;
}
case 56: {
maxPartitionsCount_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.PartitioningSettings.class, com.yandex.ydb.table.YdbTable.PartitioningSettings.Builder.class);
}
public static final int PARTITIONING_BY_SIZE_FIELD_NUMBER = 2;
private int partitioningBySize_;
/**
*
* Enable auto partitioning on reaching upper or lower partition size bound
*
*
* .Ydb.FeatureFlag.Status partitioning_by_size = 2;
* @return The enum numeric value on the wire for partitioningBySize.
*/
@java.lang.Override public int getPartitioningBySizeValue() {
return partitioningBySize_;
}
/**
*
* Enable auto partitioning on reaching upper or lower partition size bound
*
*
* .Ydb.FeatureFlag.Status partitioning_by_size = 2;
* @return The partitioningBySize.
*/
@java.lang.Override public com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getPartitioningBySize() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(partitioningBySize_);
return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
public static final int PARTITION_SIZE_MB_FIELD_NUMBER = 3;
private long partitionSizeMb_;
/**
*
* Preferred partition size for auto partitioning by size, Mb
*
*
* uint64 partition_size_mb = 3;
* @return The partitionSizeMb.
*/
@java.lang.Override
public long getPartitionSizeMb() {
return partitionSizeMb_;
}
public static final int PARTITIONING_BY_LOAD_FIELD_NUMBER = 4;
private int partitioningByLoad_;
/**
*
* Enable auto partitioning based on load on each partition
*
*
* .Ydb.FeatureFlag.Status partitioning_by_load = 4;
* @return The enum numeric value on the wire for partitioningByLoad.
*/
@java.lang.Override public int getPartitioningByLoadValue() {
return partitioningByLoad_;
}
/**
*
* Enable auto partitioning based on load on each partition
*
*
* .Ydb.FeatureFlag.Status partitioning_by_load = 4;
* @return The partitioningByLoad.
*/
@java.lang.Override public com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getPartitioningByLoad() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(partitioningByLoad_);
return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
public static final int MIN_PARTITIONS_COUNT_FIELD_NUMBER = 6;
private long minPartitionsCount_;
/**
*
* Minimum partitions count auto merge would stop working at
*
*
* uint64 min_partitions_count = 6;
* @return The minPartitionsCount.
*/
@java.lang.Override
public long getMinPartitionsCount() {
return minPartitionsCount_;
}
public static final int MAX_PARTITIONS_COUNT_FIELD_NUMBER = 7;
private long maxPartitionsCount_;
/**
*
* Maximum partitions count auto split would stop working at
*
*
* uint64 max_partitions_count = 7;
* @return The maxPartitionsCount.
*/
@java.lang.Override
public long getMaxPartitionsCount() {
return maxPartitionsCount_;
}
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 (partitioningBySize_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(2, partitioningBySize_);
}
if (partitionSizeMb_ != 0L) {
output.writeUInt64(3, partitionSizeMb_);
}
if (partitioningByLoad_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(4, partitioningByLoad_);
}
if (minPartitionsCount_ != 0L) {
output.writeUInt64(6, minPartitionsCount_);
}
if (maxPartitionsCount_ != 0L) {
output.writeUInt64(7, maxPartitionsCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (partitioningBySize_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, partitioningBySize_);
}
if (partitionSizeMb_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, partitionSizeMb_);
}
if (partitioningByLoad_ != com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, partitioningByLoad_);
}
if (minPartitionsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, minPartitionsCount_);
}
if (maxPartitionsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, maxPartitionsCount_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.PartitioningSettings)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.PartitioningSettings other = (com.yandex.ydb.table.YdbTable.PartitioningSettings) obj;
if (partitioningBySize_ != other.partitioningBySize_) return false;
if (getPartitionSizeMb()
!= other.getPartitionSizeMb()) return false;
if (partitioningByLoad_ != other.partitioningByLoad_) return false;
if (getMinPartitionsCount()
!= other.getMinPartitionsCount()) return false;
if (getMaxPartitionsCount()
!= other.getMaxPartitionsCount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PARTITIONING_BY_SIZE_FIELD_NUMBER;
hash = (53 * hash) + partitioningBySize_;
hash = (37 * hash) + PARTITION_SIZE_MB_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPartitionSizeMb());
hash = (37 * hash) + PARTITIONING_BY_LOAD_FIELD_NUMBER;
hash = (53 * hash) + partitioningByLoad_;
hash = (37 * hash) + MIN_PARTITIONS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMinPartitionsCount());
hash = (37 * hash) + MAX_PARTITIONS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxPartitionsCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings 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 com.yandex.ydb.table.YdbTable.PartitioningSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings 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 com.yandex.ydb.table.YdbTable.PartitioningSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings 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(com.yandex.ydb.table.YdbTable.PartitioningSettings 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.PartitioningSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.PartitioningSettings)
com.yandex.ydb.table.YdbTable.PartitioningSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.PartitioningSettings.class, com.yandex.ydb.table.YdbTable.PartitioningSettings.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.PartitioningSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
partitioningBySize_ = 0;
partitionSizeMb_ = 0L;
partitioningByLoad_ = 0;
minPartitionsCount_ = 0L;
maxPartitionsCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_PartitioningSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningSettings getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.PartitioningSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningSettings build() {
com.yandex.ydb.table.YdbTable.PartitioningSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningSettings buildPartial() {
com.yandex.ydb.table.YdbTable.PartitioningSettings result = new com.yandex.ydb.table.YdbTable.PartitioningSettings(this);
result.partitioningBySize_ = partitioningBySize_;
result.partitionSizeMb_ = partitionSizeMb_;
result.partitioningByLoad_ = partitioningByLoad_;
result.minPartitionsCount_ = minPartitionsCount_;
result.maxPartitionsCount_ = maxPartitionsCount_;
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 com.yandex.ydb.table.YdbTable.PartitioningSettings) {
return mergeFrom((com.yandex.ydb.table.YdbTable.PartitioningSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.PartitioningSettings other) {
if (other == com.yandex.ydb.table.YdbTable.PartitioningSettings.getDefaultInstance()) return this;
if (other.partitioningBySize_ != 0) {
setPartitioningBySizeValue(other.getPartitioningBySizeValue());
}
if (other.getPartitionSizeMb() != 0L) {
setPartitionSizeMb(other.getPartitionSizeMb());
}
if (other.partitioningByLoad_ != 0) {
setPartitioningByLoadValue(other.getPartitioningByLoadValue());
}
if (other.getMinPartitionsCount() != 0L) {
setMinPartitionsCount(other.getMinPartitionsCount());
}
if (other.getMaxPartitionsCount() != 0L) {
setMaxPartitionsCount(other.getMaxPartitionsCount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.PartitioningSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.PartitioningSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int partitioningBySize_ = 0;
/**
*
* Enable auto partitioning on reaching upper or lower partition size bound
*
*
* .Ydb.FeatureFlag.Status partitioning_by_size = 2;
* @return The enum numeric value on the wire for partitioningBySize.
*/
@java.lang.Override public int getPartitioningBySizeValue() {
return partitioningBySize_;
}
/**
*
* Enable auto partitioning on reaching upper or lower partition size bound
*
*
* .Ydb.FeatureFlag.Status partitioning_by_size = 2;
* @param value The enum numeric value on the wire for partitioningBySize to set.
* @return This builder for chaining.
*/
public Builder setPartitioningBySizeValue(int value) {
partitioningBySize_ = value;
onChanged();
return this;
}
/**
*
* Enable auto partitioning on reaching upper or lower partition size bound
*
*
* .Ydb.FeatureFlag.Status partitioning_by_size = 2;
* @return The partitioningBySize.
*/
@java.lang.Override
public com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getPartitioningBySize() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(partitioningBySize_);
return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
/**
*
* Enable auto partitioning on reaching upper or lower partition size bound
*
*
* .Ydb.FeatureFlag.Status partitioning_by_size = 2;
* @param value The partitioningBySize to set.
* @return This builder for chaining.
*/
public Builder setPartitioningBySize(com.yandex.ydb.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
partitioningBySize_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Enable auto partitioning on reaching upper or lower partition size bound
*
*
* .Ydb.FeatureFlag.Status partitioning_by_size = 2;
* @return This builder for chaining.
*/
public Builder clearPartitioningBySize() {
partitioningBySize_ = 0;
onChanged();
return this;
}
private long partitionSizeMb_ ;
/**
*
* Preferred partition size for auto partitioning by size, Mb
*
*
* uint64 partition_size_mb = 3;
* @return The partitionSizeMb.
*/
@java.lang.Override
public long getPartitionSizeMb() {
return partitionSizeMb_;
}
/**
*
* Preferred partition size for auto partitioning by size, Mb
*
*
* uint64 partition_size_mb = 3;
* @param value The partitionSizeMb to set.
* @return This builder for chaining.
*/
public Builder setPartitionSizeMb(long value) {
partitionSizeMb_ = value;
onChanged();
return this;
}
/**
*
* Preferred partition size for auto partitioning by size, Mb
*
*
* uint64 partition_size_mb = 3;
* @return This builder for chaining.
*/
public Builder clearPartitionSizeMb() {
partitionSizeMb_ = 0L;
onChanged();
return this;
}
private int partitioningByLoad_ = 0;
/**
*
* Enable auto partitioning based on load on each partition
*
*
* .Ydb.FeatureFlag.Status partitioning_by_load = 4;
* @return The enum numeric value on the wire for partitioningByLoad.
*/
@java.lang.Override public int getPartitioningByLoadValue() {
return partitioningByLoad_;
}
/**
*
* Enable auto partitioning based on load on each partition
*
*
* .Ydb.FeatureFlag.Status partitioning_by_load = 4;
* @param value The enum numeric value on the wire for partitioningByLoad to set.
* @return This builder for chaining.
*/
public Builder setPartitioningByLoadValue(int value) {
partitioningByLoad_ = value;
onChanged();
return this;
}
/**
*
* Enable auto partitioning based on load on each partition
*
*
* .Ydb.FeatureFlag.Status partitioning_by_load = 4;
* @return The partitioningByLoad.
*/
@java.lang.Override
public com.yandex.ydb.common.CommonProtos.FeatureFlag.Status getPartitioningByLoad() {
@SuppressWarnings("deprecation")
com.yandex.ydb.common.CommonProtos.FeatureFlag.Status result = com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.valueOf(partitioningByLoad_);
return result == null ? com.yandex.ydb.common.CommonProtos.FeatureFlag.Status.UNRECOGNIZED : result;
}
/**
*
* Enable auto partitioning based on load on each partition
*
*
* .Ydb.FeatureFlag.Status partitioning_by_load = 4;
* @param value The partitioningByLoad to set.
* @return This builder for chaining.
*/
public Builder setPartitioningByLoad(com.yandex.ydb.common.CommonProtos.FeatureFlag.Status value) {
if (value == null) {
throw new NullPointerException();
}
partitioningByLoad_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Enable auto partitioning based on load on each partition
*
*
* .Ydb.FeatureFlag.Status partitioning_by_load = 4;
* @return This builder for chaining.
*/
public Builder clearPartitioningByLoad() {
partitioningByLoad_ = 0;
onChanged();
return this;
}
private long minPartitionsCount_ ;
/**
*
* Minimum partitions count auto merge would stop working at
*
*
* uint64 min_partitions_count = 6;
* @return The minPartitionsCount.
*/
@java.lang.Override
public long getMinPartitionsCount() {
return minPartitionsCount_;
}
/**
*
* Minimum partitions count auto merge would stop working at
*
*
* uint64 min_partitions_count = 6;
* @param value The minPartitionsCount to set.
* @return This builder for chaining.
*/
public Builder setMinPartitionsCount(long value) {
minPartitionsCount_ = value;
onChanged();
return this;
}
/**
*
* Minimum partitions count auto merge would stop working at
*
*
* uint64 min_partitions_count = 6;
* @return This builder for chaining.
*/
public Builder clearMinPartitionsCount() {
minPartitionsCount_ = 0L;
onChanged();
return this;
}
private long maxPartitionsCount_ ;
/**
*
* Maximum partitions count auto split would stop working at
*
*
* uint64 max_partitions_count = 7;
* @return The maxPartitionsCount.
*/
@java.lang.Override
public long getMaxPartitionsCount() {
return maxPartitionsCount_;
}
/**
*
* Maximum partitions count auto split would stop working at
*
*
* uint64 max_partitions_count = 7;
* @param value The maxPartitionsCount to set.
* @return This builder for chaining.
*/
public Builder setMaxPartitionsCount(long value) {
maxPartitionsCount_ = value;
onChanged();
return this;
}
/**
*
* Maximum partitions count auto split would stop working at
*
*
* uint64 max_partitions_count = 7;
* @return This builder for chaining.
*/
public Builder clearMaxPartitionsCount() {
maxPartitionsCount_ = 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.PartitioningSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.PartitioningSettings)
private static final com.yandex.ydb.table.YdbTable.PartitioningSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.PartitioningSettings();
}
public static com.yandex.ydb.table.YdbTable.PartitioningSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PartitioningSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PartitioningSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.PartitioningSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AzReadReplicasSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.AzReadReplicasSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* AZ name
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* AZ name
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Read replicas count in this AZ
*
*
* uint64 read_replicas_count = 2;
* @return The readReplicasCount.
*/
long getReadReplicasCount();
}
/**
* Protobuf type {@code Ydb.Table.AzReadReplicasSettings}
*/
public static final class AzReadReplicasSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.AzReadReplicasSettings)
AzReadReplicasSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AzReadReplicasSettings.newBuilder() to construct.
private AzReadReplicasSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AzReadReplicasSettings() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AzReadReplicasSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AzReadReplicasSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 16: {
readReplicasCount_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_AzReadReplicasSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_AzReadReplicasSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.class, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* AZ name
*
*
* 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;
}
}
/**
*
* AZ name
*
*
* 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 READ_REPLICAS_COUNT_FIELD_NUMBER = 2;
private long readReplicasCount_;
/**
*
* Read replicas count in this AZ
*
*
* uint64 read_replicas_count = 2;
* @return The readReplicasCount.
*/
@java.lang.Override
public long getReadReplicasCount() {
return readReplicasCount_;
}
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 (readReplicasCount_ != 0L) {
output.writeUInt64(2, readReplicasCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (readReplicasCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, readReplicasCount_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.AzReadReplicasSettings)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings other = (com.yandex.ydb.table.YdbTable.AzReadReplicasSettings) obj;
if (!getName()
.equals(other.getName())) return false;
if (getReadReplicasCount()
!= other.getReadReplicasCount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + READ_REPLICAS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReadReplicasCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings 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 com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings 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 com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings 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(com.yandex.ydb.table.YdbTable.AzReadReplicasSettings 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.AzReadReplicasSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.AzReadReplicasSettings)
com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_AzReadReplicasSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_AzReadReplicasSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.class, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
readReplicasCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_AzReadReplicasSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettings getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettings build() {
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettings buildPartial() {
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings result = new com.yandex.ydb.table.YdbTable.AzReadReplicasSettings(this);
result.name_ = name_;
result.readReplicasCount_ = readReplicasCount_;
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 com.yandex.ydb.table.YdbTable.AzReadReplicasSettings) {
return mergeFrom((com.yandex.ydb.table.YdbTable.AzReadReplicasSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.AzReadReplicasSettings other) {
if (other == com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getReadReplicasCount() != 0L) {
setReadReplicasCount(other.getReadReplicasCount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.AzReadReplicasSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* AZ name
*
*
* 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;
}
}
/**
*
* AZ name
*
*
* 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;
}
}
/**
*
* AZ name
*
*
* 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;
onChanged();
return this;
}
/**
*
* AZ name
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* AZ name
*
*
* 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;
onChanged();
return this;
}
private long readReplicasCount_ ;
/**
*
* Read replicas count in this AZ
*
*
* uint64 read_replicas_count = 2;
* @return The readReplicasCount.
*/
@java.lang.Override
public long getReadReplicasCount() {
return readReplicasCount_;
}
/**
*
* Read replicas count in this AZ
*
*
* uint64 read_replicas_count = 2;
* @param value The readReplicasCount to set.
* @return This builder for chaining.
*/
public Builder setReadReplicasCount(long value) {
readReplicasCount_ = value;
onChanged();
return this;
}
/**
*
* Read replicas count in this AZ
*
*
* uint64 read_replicas_count = 2;
* @return This builder for chaining.
*/
public Builder clearReadReplicasCount() {
readReplicasCount_ = 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.AzReadReplicasSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.AzReadReplicasSettings)
private static final com.yandex.ydb.table.YdbTable.AzReadReplicasSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.AzReadReplicasSettings();
}
public static com.yandex.ydb.table.YdbTable.AzReadReplicasSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AzReadReplicasSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AzReadReplicasSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClusterReplicasSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ClusterReplicasSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
java.util.List
getAzReadReplicasSettingsList();
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings getAzReadReplicasSettings(int index);
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
int getAzReadReplicasSettingsCount();
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
java.util.List extends com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder>
getAzReadReplicasSettingsOrBuilderList();
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder getAzReadReplicasSettingsOrBuilder(
int index);
}
/**
* Protobuf type {@code Ydb.Table.ClusterReplicasSettings}
*/
public static final class ClusterReplicasSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ClusterReplicasSettings)
ClusterReplicasSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClusterReplicasSettings.newBuilder() to construct.
private ClusterReplicasSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClusterReplicasSettings() {
azReadReplicasSettings_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClusterReplicasSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClusterReplicasSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
azReadReplicasSettings_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
azReadReplicasSettings_.add(
input.readMessage(com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
azReadReplicasSettings_ = java.util.Collections.unmodifiableList(azReadReplicasSettings_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ClusterReplicasSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ClusterReplicasSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ClusterReplicasSettings.class, com.yandex.ydb.table.YdbTable.ClusterReplicasSettings.Builder.class);
}
public static final int AZ_READ_REPLICAS_SETTINGS_FIELD_NUMBER = 2;
private java.util.List azReadReplicasSettings_;
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
@java.lang.Override
public java.util.List getAzReadReplicasSettingsList() {
return azReadReplicasSettings_;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder>
getAzReadReplicasSettingsOrBuilderList() {
return azReadReplicasSettings_;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
@java.lang.Override
public int getAzReadReplicasSettingsCount() {
return azReadReplicasSettings_.size();
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettings getAzReadReplicasSettings(int index) {
return azReadReplicasSettings_.get(index);
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
@java.lang.Override
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder getAzReadReplicasSettingsOrBuilder(
int index) {
return azReadReplicasSettings_.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 < azReadReplicasSettings_.size(); i++) {
output.writeMessage(2, azReadReplicasSettings_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < azReadReplicasSettings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, azReadReplicasSettings_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ClusterReplicasSettings)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ClusterReplicasSettings other = (com.yandex.ydb.table.YdbTable.ClusterReplicasSettings) obj;
if (!getAzReadReplicasSettingsList()
.equals(other.getAzReadReplicasSettingsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAzReadReplicasSettingsCount() > 0) {
hash = (37 * hash) + AZ_READ_REPLICAS_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getAzReadReplicasSettingsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings 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 com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings 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 com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings 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(com.yandex.ydb.table.YdbTable.ClusterReplicasSettings 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.ClusterReplicasSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ClusterReplicasSettings)
com.yandex.ydb.table.YdbTable.ClusterReplicasSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ClusterReplicasSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ClusterReplicasSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ClusterReplicasSettings.class, com.yandex.ydb.table.YdbTable.ClusterReplicasSettings.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ClusterReplicasSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAzReadReplicasSettingsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (azReadReplicasSettingsBuilder_ == null) {
azReadReplicasSettings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
azReadReplicasSettingsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ClusterReplicasSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ClusterReplicasSettings getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ClusterReplicasSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ClusterReplicasSettings build() {
com.yandex.ydb.table.YdbTable.ClusterReplicasSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ClusterReplicasSettings buildPartial() {
com.yandex.ydb.table.YdbTable.ClusterReplicasSettings result = new com.yandex.ydb.table.YdbTable.ClusterReplicasSettings(this);
int from_bitField0_ = bitField0_;
if (azReadReplicasSettingsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
azReadReplicasSettings_ = java.util.Collections.unmodifiableList(azReadReplicasSettings_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.azReadReplicasSettings_ = azReadReplicasSettings_;
} else {
result.azReadReplicasSettings_ = azReadReplicasSettingsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.table.YdbTable.ClusterReplicasSettings) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ClusterReplicasSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ClusterReplicasSettings other) {
if (other == com.yandex.ydb.table.YdbTable.ClusterReplicasSettings.getDefaultInstance()) return this;
if (azReadReplicasSettingsBuilder_ == null) {
if (!other.azReadReplicasSettings_.isEmpty()) {
if (azReadReplicasSettings_.isEmpty()) {
azReadReplicasSettings_ = other.azReadReplicasSettings_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAzReadReplicasSettingsIsMutable();
azReadReplicasSettings_.addAll(other.azReadReplicasSettings_);
}
onChanged();
}
} else {
if (!other.azReadReplicasSettings_.isEmpty()) {
if (azReadReplicasSettingsBuilder_.isEmpty()) {
azReadReplicasSettingsBuilder_.dispose();
azReadReplicasSettingsBuilder_ = null;
azReadReplicasSettings_ = other.azReadReplicasSettings_;
bitField0_ = (bitField0_ & ~0x00000001);
azReadReplicasSettingsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAzReadReplicasSettingsFieldBuilder() : null;
} else {
azReadReplicasSettingsBuilder_.addAllMessages(other.azReadReplicasSettings_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ClusterReplicasSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ClusterReplicasSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List azReadReplicasSettings_ =
java.util.Collections.emptyList();
private void ensureAzReadReplicasSettingsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
azReadReplicasSettings_ = new java.util.ArrayList(azReadReplicasSettings_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder, com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder> azReadReplicasSettingsBuilder_;
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public java.util.List getAzReadReplicasSettingsList() {
if (azReadReplicasSettingsBuilder_ == null) {
return java.util.Collections.unmodifiableList(azReadReplicasSettings_);
} else {
return azReadReplicasSettingsBuilder_.getMessageList();
}
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public int getAzReadReplicasSettingsCount() {
if (azReadReplicasSettingsBuilder_ == null) {
return azReadReplicasSettings_.size();
} else {
return azReadReplicasSettingsBuilder_.getCount();
}
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettings getAzReadReplicasSettings(int index) {
if (azReadReplicasSettingsBuilder_ == null) {
return azReadReplicasSettings_.get(index);
} else {
return azReadReplicasSettingsBuilder_.getMessage(index);
}
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public Builder setAzReadReplicasSettings(
int index, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings value) {
if (azReadReplicasSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAzReadReplicasSettingsIsMutable();
azReadReplicasSettings_.set(index, value);
onChanged();
} else {
azReadReplicasSettingsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public Builder setAzReadReplicasSettings(
int index, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder builderForValue) {
if (azReadReplicasSettingsBuilder_ == null) {
ensureAzReadReplicasSettingsIsMutable();
azReadReplicasSettings_.set(index, builderForValue.build());
onChanged();
} else {
azReadReplicasSettingsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public Builder addAzReadReplicasSettings(com.yandex.ydb.table.YdbTable.AzReadReplicasSettings value) {
if (azReadReplicasSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAzReadReplicasSettingsIsMutable();
azReadReplicasSettings_.add(value);
onChanged();
} else {
azReadReplicasSettingsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public Builder addAzReadReplicasSettings(
int index, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings value) {
if (azReadReplicasSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAzReadReplicasSettingsIsMutable();
azReadReplicasSettings_.add(index, value);
onChanged();
} else {
azReadReplicasSettingsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public Builder addAzReadReplicasSettings(
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder builderForValue) {
if (azReadReplicasSettingsBuilder_ == null) {
ensureAzReadReplicasSettingsIsMutable();
azReadReplicasSettings_.add(builderForValue.build());
onChanged();
} else {
azReadReplicasSettingsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public Builder addAzReadReplicasSettings(
int index, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder builderForValue) {
if (azReadReplicasSettingsBuilder_ == null) {
ensureAzReadReplicasSettingsIsMutable();
azReadReplicasSettings_.add(index, builderForValue.build());
onChanged();
} else {
azReadReplicasSettingsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public Builder addAllAzReadReplicasSettings(
java.lang.Iterable extends com.yandex.ydb.table.YdbTable.AzReadReplicasSettings> values) {
if (azReadReplicasSettingsBuilder_ == null) {
ensureAzReadReplicasSettingsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, azReadReplicasSettings_);
onChanged();
} else {
azReadReplicasSettingsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public Builder clearAzReadReplicasSettings() {
if (azReadReplicasSettingsBuilder_ == null) {
azReadReplicasSettings_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
azReadReplicasSettingsBuilder_.clear();
}
return this;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public Builder removeAzReadReplicasSettings(int index) {
if (azReadReplicasSettingsBuilder_ == null) {
ensureAzReadReplicasSettingsIsMutable();
azReadReplicasSettings_.remove(index);
onChanged();
} else {
azReadReplicasSettingsBuilder_.remove(index);
}
return this;
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder getAzReadReplicasSettingsBuilder(
int index) {
return getAzReadReplicasSettingsFieldBuilder().getBuilder(index);
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder getAzReadReplicasSettingsOrBuilder(
int index) {
if (azReadReplicasSettingsBuilder_ == null) {
return azReadReplicasSettings_.get(index); } else {
return azReadReplicasSettingsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public java.util.List extends com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder>
getAzReadReplicasSettingsOrBuilderList() {
if (azReadReplicasSettingsBuilder_ != null) {
return azReadReplicasSettingsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(azReadReplicasSettings_);
}
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder addAzReadReplicasSettingsBuilder() {
return getAzReadReplicasSettingsFieldBuilder().addBuilder(
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.getDefaultInstance());
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder addAzReadReplicasSettingsBuilder(
int index) {
return getAzReadReplicasSettingsFieldBuilder().addBuilder(
index, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.getDefaultInstance());
}
/**
*
* List of read replicas settings for each AZ
*
*
* repeated .Ydb.Table.AzReadReplicasSettings az_read_replicas_settings = 2;
*/
public java.util.List
getAzReadReplicasSettingsBuilderList() {
return getAzReadReplicasSettingsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder, com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder>
getAzReadReplicasSettingsFieldBuilder() {
if (azReadReplicasSettingsBuilder_ == null) {
azReadReplicasSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.table.YdbTable.AzReadReplicasSettings, com.yandex.ydb.table.YdbTable.AzReadReplicasSettings.Builder, com.yandex.ydb.table.YdbTable.AzReadReplicasSettingsOrBuilder>(
azReadReplicasSettings_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
azReadReplicasSettings_ = null;
}
return azReadReplicasSettingsBuilder_;
}
@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.ClusterReplicasSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ClusterReplicasSettings)
private static final com.yandex.ydb.table.YdbTable.ClusterReplicasSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ClusterReplicasSettings();
}
public static com.yandex.ydb.table.YdbTable.ClusterReplicasSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClusterReplicasSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClusterReplicasSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ClusterReplicasSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReadReplicasSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.ReadReplicasSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Set equal read replicas count for every AZ
*
*
* uint64 per_az_read_replicas_count = 1;
* @return Whether the perAzReadReplicasCount field is set.
*/
boolean hasPerAzReadReplicasCount();
/**
*
* Set equal read replicas count for every AZ
*
*
* uint64 per_az_read_replicas_count = 1;
* @return The perAzReadReplicasCount.
*/
long getPerAzReadReplicasCount();
/**
*
* Set total replicas count between all AZs
*
*
* uint64 any_az_read_replicas_count = 2;
* @return Whether the anyAzReadReplicasCount field is set.
*/
boolean hasAnyAzReadReplicasCount();
/**
*
* Set total replicas count between all AZs
*
*
* uint64 any_az_read_replicas_count = 2;
* @return The anyAzReadReplicasCount.
*/
long getAnyAzReadReplicasCount();
public com.yandex.ydb.table.YdbTable.ReadReplicasSettings.SettingsCase getSettingsCase();
}
/**
* Protobuf type {@code Ydb.Table.ReadReplicasSettings}
*/
public static final class ReadReplicasSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Table.ReadReplicasSettings)
ReadReplicasSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReadReplicasSettings.newBuilder() to construct.
private ReadReplicasSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReadReplicasSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReadReplicasSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReadReplicasSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
settings_ = input.readUInt64();
settingsCase_ = 1;
break;
}
case 16: {
settings_ = input.readUInt64();
settingsCase_ = 2;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReadReplicasSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReadReplicasSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ReadReplicasSettings.class, com.yandex.ydb.table.YdbTable.ReadReplicasSettings.Builder.class);
}
private int settingsCase_ = 0;
private java.lang.Object settings_;
public enum SettingsCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
PER_AZ_READ_REPLICAS_COUNT(1),
ANY_AZ_READ_REPLICAS_COUNT(2),
SETTINGS_NOT_SET(0);
private final int value;
private SettingsCase(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 SettingsCase valueOf(int value) {
return forNumber(value);
}
public static SettingsCase forNumber(int value) {
switch (value) {
case 1: return PER_AZ_READ_REPLICAS_COUNT;
case 2: return ANY_AZ_READ_REPLICAS_COUNT;
case 0: return SETTINGS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SettingsCase
getSettingsCase() {
return SettingsCase.forNumber(
settingsCase_);
}
public static final int PER_AZ_READ_REPLICAS_COUNT_FIELD_NUMBER = 1;
/**
*
* Set equal read replicas count for every AZ
*
*
* uint64 per_az_read_replicas_count = 1;
* @return Whether the perAzReadReplicasCount field is set.
*/
@java.lang.Override
public boolean hasPerAzReadReplicasCount() {
return settingsCase_ == 1;
}
/**
*
* Set equal read replicas count for every AZ
*
*
* uint64 per_az_read_replicas_count = 1;
* @return The perAzReadReplicasCount.
*/
@java.lang.Override
public long getPerAzReadReplicasCount() {
if (settingsCase_ == 1) {
return (java.lang.Long) settings_;
}
return 0L;
}
public static final int ANY_AZ_READ_REPLICAS_COUNT_FIELD_NUMBER = 2;
/**
*
* Set total replicas count between all AZs
*
*
* uint64 any_az_read_replicas_count = 2;
* @return Whether the anyAzReadReplicasCount field is set.
*/
@java.lang.Override
public boolean hasAnyAzReadReplicasCount() {
return settingsCase_ == 2;
}
/**
*
* Set total replicas count between all AZs
*
*
* uint64 any_az_read_replicas_count = 2;
* @return The anyAzReadReplicasCount.
*/
@java.lang.Override
public long getAnyAzReadReplicasCount() {
if (settingsCase_ == 2) {
return (java.lang.Long) settings_;
}
return 0L;
}
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 (settingsCase_ == 1) {
output.writeUInt64(
1, (long)((java.lang.Long) settings_));
}
if (settingsCase_ == 2) {
output.writeUInt64(
2, (long)((java.lang.Long) settings_));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (settingsCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
1, (long)((java.lang.Long) settings_));
}
if (settingsCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(
2, (long)((java.lang.Long) settings_));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.table.YdbTable.ReadReplicasSettings)) {
return super.equals(obj);
}
com.yandex.ydb.table.YdbTable.ReadReplicasSettings other = (com.yandex.ydb.table.YdbTable.ReadReplicasSettings) obj;
if (!getSettingsCase().equals(other.getSettingsCase())) return false;
switch (settingsCase_) {
case 1:
if (getPerAzReadReplicasCount()
!= other.getPerAzReadReplicasCount()) return false;
break;
case 2:
if (getAnyAzReadReplicasCount()
!= other.getAnyAzReadReplicasCount()) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (settingsCase_) {
case 1:
hash = (37 * hash) + PER_AZ_READ_REPLICAS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPerAzReadReplicasCount());
break;
case 2:
hash = (37 * hash) + ANY_AZ_READ_REPLICAS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAnyAzReadReplicasCount());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings 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 com.yandex.ydb.table.YdbTable.ReadReplicasSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings 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 com.yandex.ydb.table.YdbTable.ReadReplicasSettings parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings 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(com.yandex.ydb.table.YdbTable.ReadReplicasSettings 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.ReadReplicasSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Table.ReadReplicasSettings)
com.yandex.ydb.table.YdbTable.ReadReplicasSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReadReplicasSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReadReplicasSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.table.YdbTable.ReadReplicasSettings.class, com.yandex.ydb.table.YdbTable.ReadReplicasSettings.Builder.class);
}
// Construct using com.yandex.ydb.table.YdbTable.ReadReplicasSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
settingsCase_ = 0;
settings_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.table.YdbTable.internal_static_Ydb_Table_ReadReplicasSettings_descriptor;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ReadReplicasSettings getDefaultInstanceForType() {
return com.yandex.ydb.table.YdbTable.ReadReplicasSettings.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ReadReplicasSettings build() {
com.yandex.ydb.table.YdbTable.ReadReplicasSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ReadReplicasSettings buildPartial() {
com.yandex.ydb.table.YdbTable.ReadReplicasSettings result = new com.yandex.ydb.table.YdbTable.ReadReplicasSettings(this);
if (settingsCase_ == 1) {
result.settings_ = settings_;
}
if (settingsCase_ == 2) {
result.settings_ = settings_;
}
result.settingsCase_ = settingsCase_;
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 com.yandex.ydb.table.YdbTable.ReadReplicasSettings) {
return mergeFrom((com.yandex.ydb.table.YdbTable.ReadReplicasSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.table.YdbTable.ReadReplicasSettings other) {
if (other == com.yandex.ydb.table.YdbTable.ReadReplicasSettings.getDefaultInstance()) return this;
switch (other.getSettingsCase()) {
case PER_AZ_READ_REPLICAS_COUNT: {
setPerAzReadReplicasCount(other.getPerAzReadReplicasCount());
break;
}
case ANY_AZ_READ_REPLICAS_COUNT: {
setAnyAzReadReplicasCount(other.getAnyAzReadReplicasCount());
break;
}
case SETTINGS_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.table.YdbTable.ReadReplicasSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.table.YdbTable.ReadReplicasSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int settingsCase_ = 0;
private java.lang.Object settings_;
public SettingsCase
getSettingsCase() {
return SettingsCase.forNumber(
settingsCase_);
}
public Builder clearSettings() {
settingsCase_ = 0;
settings_ = null;
onChanged();
return this;
}
/**
*
* Set equal read replicas count for every AZ
*
*
* uint64 per_az_read_replicas_count = 1;
* @return Whether the perAzReadReplicasCount field is set.
*/
public boolean hasPerAzReadReplicasCount() {
return settingsCase_ == 1;
}
/**
*
* Set equal read replicas count for every AZ
*
*
* uint64 per_az_read_replicas_count = 1;
* @return The perAzReadReplicasCount.
*/
public long getPerAzReadReplicasCount() {
if (settingsCase_ == 1) {
return (java.lang.Long) settings_;
}
return 0L;
}
/**
*
* Set equal read replicas count for every AZ
*
*
* uint64 per_az_read_replicas_count = 1;
* @param value The perAzReadReplicasCount to set.
* @return This builder for chaining.
*/
public Builder setPerAzReadReplicasCount(long value) {
settingsCase_ = 1;
settings_ = value;
onChanged();
return this;
}
/**
*
* Set equal read replicas count for every AZ
*
*
* uint64 per_az_read_replicas_count = 1;
* @return This builder for chaining.
*/
public Builder clearPerAzReadReplicasCount() {
if (settingsCase_ == 1) {
settingsCase_ = 0;
settings_ = null;
onChanged();
}
return this;
}
/**
*
* Set total replicas count between all AZs
*
*
* uint64 any_az_read_replicas_count = 2;
* @return Whether the anyAzReadReplicasCount field is set.
*/
public boolean hasAnyAzReadReplicasCount() {
return settingsCase_ == 2;
}
/**
*
* Set total replicas count between all AZs
*
*
* uint64 any_az_read_replicas_count = 2;
* @return The anyAzReadReplicasCount.
*/
public long getAnyAzReadReplicasCount() {
if (settingsCase_ == 2) {
return (java.lang.Long) settings_;
}
return 0L;
}
/**
*
* Set total replicas count between all AZs
*
*
* uint64 any_az_read_replicas_count = 2;
* @param value The anyAzReadReplicasCount to set.
* @return This builder for chaining.
*/
public Builder setAnyAzReadReplicasCount(long value) {
settingsCase_ = 2;
settings_ = value;
onChanged();
return this;
}
/**
*
* Set total replicas count between all AZs
*
*
* uint64 any_az_read_replicas_count = 2;
* @return This builder for chaining.
*/
public Builder clearAnyAzReadReplicasCount() {
if (settingsCase_ == 2) {
settingsCase_ = 0;
settings_ = null;
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.ReadReplicasSettings)
}
// @@protoc_insertion_point(class_scope:Ydb.Table.ReadReplicasSettings)
private static final com.yandex.ydb.table.YdbTable.ReadReplicasSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.table.YdbTable.ReadReplicasSettings();
}
public static com.yandex.ydb.table.YdbTable.ReadReplicasSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReadReplicasSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReadReplicasSettings(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.yandex.ydb.table.YdbTable.ReadReplicasSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateTableRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Table.CreateTableRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The sessionId.
*/
java.lang.String getSessionId();
/**
*
* Session identifier
*
*
* string session_id = 1;
* @return The bytes for sessionId.
*/
com.google.protobuf.ByteString
getSessionIdBytes();
/**
*
* Full path
*
*
* string path = 2;
* @return The path.
*/
java.lang.String getPath();
/**
*
* Full path
*
*
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* Columns (name, type)
*
*
* repeated .Ydb.Table.ColumnMeta columns = 3;
*/
java.util.List
getColumnsList();
/**
*
* Columns (name, type)
*
*
* repeated .Ydb.Table.ColumnMeta columns = 3;
*/
com.yandex.ydb.table.YdbTable.ColumnMeta getColumns(int index);
/**
*
* Columns (name, type)
*
*
* repeated .Ydb.Table.ColumnMeta columns = 3;
*/
int getColumnsCount();
/**
*
* Columns (name, type)
*
*
* repeated .Ydb.Table.ColumnMeta columns = 3;
*/
java.util.List extends com.yandex.ydb.table.YdbTable.ColumnMetaOrBuilder>
getColumnsOrBuilderList();
/**
*
* Columns (name, type)
*
*
* repeated .Ydb.Table.ColumnMeta columns = 3;
*/
com.yandex.ydb.table.YdbTable.ColumnMetaOrBuilder getColumnsOrBuilder(
int index);
/**
*
* List of columns used as primary key
*
*
* repeated string primary_key = 4;
* @return A list containing the primaryKey.
*/
java.util.List
getPrimaryKeyList();
/**
*
* List of columns used as primary key
*
*
* repeated string primary_key = 4;
* @return The count of primaryKey.
*/
int getPrimaryKeyCount();
/**
*
* List of columns used as primary key
*
*
* repeated string primary_key = 4;
* @param index The index of the element to return.
* @return The primaryKey at the given index.
*/
java.lang.String getPrimaryKey(int index);
/**
*
* List of columns used as primary key
*
*
* repeated string primary_key = 4;
* @param index The index of the value to return.
* @return The bytes of the primaryKey at the given index.
*/
com.google.protobuf.ByteString
getPrimaryKeyBytes(int index);
/**
*
* Table profile
*
*
* .Ydb.Table.TableProfile profile = 5;
* @return Whether the profile field is set.
*/
boolean hasProfile();
/**
*
* Table profile
*
*
* .Ydb.Table.TableProfile profile = 5;
* @return The profile.
*/
com.yandex.ydb.table.YdbTable.TableProfile getProfile();
/**
*
* Table profile
*
*
* .Ydb.Table.TableProfile profile = 5;
*/
com.yandex.ydb.table.YdbTable.TableProfileOrBuilder getProfileOrBuilder();
/**
* .Ydb.Operations.OperationParams operation_params = 6;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 6;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 6;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
*
* List of secondary indexes
*
*
* repeated .Ydb.Table.TableIndex indexes = 7;
*/
java.util.List
getIndexesList();
/**
*