Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* string session_id = 1;
* @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 (!getNameBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
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;
}
/**
*
*
* 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 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
*
* 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 (!getNameBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
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;
}
/**
*
*
* 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;
}
/**
*
*
* 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
*
* 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 (!getPathBytes().isEmpty()) {
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 (!getPathBytes().isEmpty()) {
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 (progress_ != 0F) {
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 (progress_ != 0F) {
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),
/**
*
*
* .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 (!getNameBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
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.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 (!getNameBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
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 (!getMediaBytes().isEmpty()) {
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 (!getMediaBytes().isEmpty()) {
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 (!getPresetNameBytes().isEmpty()) {
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 (!getPresetNameBytes().isEmpty()) {
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
*
* 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 (!getNameBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
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)
*
* 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 (!getPresetNameBytes().isEmpty()) {
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 (!getPresetNameBytes().isEmpty()) {
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.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
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.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public int getSplitPointsCount() {
return splitPoints_.size();
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
@java.lang.Override
public 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.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public int getSplitPointsCount() {
if (splitPointsBuilder_ == null) {
return splitPoints_.size();
} else {
return splitPointsBuilder_.getCount();
}
}
/**
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public Builder setSplitPoints(
int index, 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.
*
* 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.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public 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.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
* Specify key values used to split table into partitions.
* Each value becomes the first key of a new partition.
* Key values should go in ascending order.
* Total number of created partitions is number of specified
* keys + 1.
*
*
* repeated .Ydb.TypedValue split_points = 1;
*/
public java.util.List
getSplitPointsBuilderList() {
return getSplitPointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
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 {
/**
*
*
* 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;
}
/**
*
* 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 (!getPresetNameBytes().isEmpty()) {
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 (!getPresetNameBytes().isEmpty()) {
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.
*
* 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 (!getPresetNameBytes().isEmpty()) {
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 (!getPresetNameBytes().isEmpty()) {
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 (!getPresetNameBytes().isEmpty()) {
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 (!getPresetNameBytes().isEmpty()) {
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 (!getPresetNameBytes().isEmpty()) {
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 (!getPresetNameBytes().isEmpty()) {
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();
/**
*
*
* 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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (type_ != null) {
output.writeMessage(2, getType());
}
if (!getFamilyBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (type_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getType());
}
if (!getFamilyBytes().isEmpty()) {
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;
}
/**
*
*
* 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 {
/**
*
*
* 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_;
/**
*
*
* 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 (!getColumnNameBytes().isEmpty()) {
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 (!getColumnNameBytes().isEmpty()) {
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 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>
*
* 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.
*
* 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.
*
* 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 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
*
* 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
*
* Optionally specify how data should be compressed
*
*
* .Ydb.Table.ColumnFamily.Compression compression = 3;
* @return The enum numeric value on the wire for compression.
*/
int getCompressionValue();
/**
*
* Optionally specify how data should be compressed
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The enum numeric value on the wire for keepInMemory.
*/
int getKeepInMemoryValue();
/**
*
* When enabled table data will be kept in memory
* WARNING: DO NOT USE
*
*
* .Ydb.FeatureFlag.Status keep_in_memory = 4;
* @return The keepInMemory.
*/
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 (!getNameBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
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
*
* 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
*
* 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
*
* 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
*
* 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 (!getNameBytes().isEmpty()) {
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 (!getNameBytes().isEmpty()) {
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 {
/**
*
*
* 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();
/**
*