Please wait. This can take some minutes ...
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.
com.yandex.ydb.cms.YdbCms Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ydb/public/api/protos/ydb_cms.proto
package com.yandex.ydb.cms;
public final class YdbCms {
private YdbCms() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface StorageUnitsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.StorageUnits)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. Kind of the storage unit. Determine guarantees
* for all main unit parameters: used hard disk type, capacity
* throughput, IOPS etc.
*
*
* string unit_kind = 1;
* @return The unitKind.
*/
java.lang.String getUnitKind();
/**
*
* Required. Kind of the storage unit. Determine guarantees
* for all main unit parameters: used hard disk type, capacity
* throughput, IOPS etc.
*
*
* string unit_kind = 1;
* @return The bytes for unitKind.
*/
com.google.protobuf.ByteString
getUnitKindBytes();
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 2;
* @return The count.
*/
long getCount();
}
/**
*
* A set of uniform storage units.
* Single storage unit can be thought of as a reserved part of a RAID.
*
*
* Protobuf type {@code Ydb.Cms.StorageUnits}
*/
public static final class StorageUnits extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.StorageUnits)
StorageUnitsOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageUnits.newBuilder() to construct.
private StorageUnits(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StorageUnits() {
unitKind_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StorageUnits();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StorageUnits(
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();
unitKind_ = s;
break;
}
case 16: {
count_ = 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.cms.YdbCms.internal_static_Ydb_Cms_StorageUnits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_StorageUnits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.StorageUnits.class, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder.class);
}
public static final int UNIT_KIND_FIELD_NUMBER = 1;
private volatile java.lang.Object unitKind_;
/**
*
* Required. Kind of the storage unit. Determine guarantees
* for all main unit parameters: used hard disk type, capacity
* throughput, IOPS etc.
*
*
* string unit_kind = 1;
* @return The unitKind.
*/
@java.lang.Override
public java.lang.String getUnitKind() {
java.lang.Object ref = unitKind_;
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();
unitKind_ = s;
return s;
}
}
/**
*
* Required. Kind of the storage unit. Determine guarantees
* for all main unit parameters: used hard disk type, capacity
* throughput, IOPS etc.
*
*
* string unit_kind = 1;
* @return The bytes for unitKind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnitKindBytes() {
java.lang.Object ref = unitKind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unitKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNT_FIELD_NUMBER = 2;
private long count_;
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 2;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
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 (!getUnitKindBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unitKind_);
}
if (count_ != 0L) {
output.writeUInt64(2, count_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUnitKindBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, unitKind_);
}
if (count_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, count_);
}
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.cms.YdbCms.StorageUnits)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.StorageUnits other = (com.yandex.ydb.cms.YdbCms.StorageUnits) obj;
if (!getUnitKind()
.equals(other.getUnitKind())) return false;
if (getCount()
!= other.getCount()) 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) + UNIT_KIND_FIELD_NUMBER;
hash = (53 * hash) + getUnitKind().hashCode();
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.StorageUnits parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnits 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.cms.YdbCms.StorageUnits parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnits 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.cms.YdbCms.StorageUnits parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnits parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnits parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnits 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.cms.YdbCms.StorageUnits parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnits 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.cms.YdbCms.StorageUnits parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnits 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.cms.YdbCms.StorageUnits 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;
}
/**
*
* A set of uniform storage units.
* Single storage unit can be thought of as a reserved part of a RAID.
*
*
* Protobuf type {@code Ydb.Cms.StorageUnits}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.StorageUnits)
com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_StorageUnits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_StorageUnits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.StorageUnits.class, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.StorageUnits.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();
unitKind_ = "";
count_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_StorageUnits_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnits getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.StorageUnits.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnits build() {
com.yandex.ydb.cms.YdbCms.StorageUnits result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnits buildPartial() {
com.yandex.ydb.cms.YdbCms.StorageUnits result = new com.yandex.ydb.cms.YdbCms.StorageUnits(this);
result.unitKind_ = unitKind_;
result.count_ = count_;
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.cms.YdbCms.StorageUnits) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.StorageUnits)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.StorageUnits other) {
if (other == com.yandex.ydb.cms.YdbCms.StorageUnits.getDefaultInstance()) return this;
if (!other.getUnitKind().isEmpty()) {
unitKind_ = other.unitKind_;
onChanged();
}
if (other.getCount() != 0L) {
setCount(other.getCount());
}
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.cms.YdbCms.StorageUnits parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.StorageUnits) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object unitKind_ = "";
/**
*
* Required. Kind of the storage unit. Determine guarantees
* for all main unit parameters: used hard disk type, capacity
* throughput, IOPS etc.
*
*
* string unit_kind = 1;
* @return The unitKind.
*/
public java.lang.String getUnitKind() {
java.lang.Object ref = unitKind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
unitKind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. Kind of the storage unit. Determine guarantees
* for all main unit parameters: used hard disk type, capacity
* throughput, IOPS etc.
*
*
* string unit_kind = 1;
* @return The bytes for unitKind.
*/
public com.google.protobuf.ByteString
getUnitKindBytes() {
java.lang.Object ref = unitKind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unitKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. Kind of the storage unit. Determine guarantees
* for all main unit parameters: used hard disk type, capacity
* throughput, IOPS etc.
*
*
* string unit_kind = 1;
* @param value The unitKind to set.
* @return This builder for chaining.
*/
public Builder setUnitKind(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
unitKind_ = value;
onChanged();
return this;
}
/**
*
* Required. Kind of the storage unit. Determine guarantees
* for all main unit parameters: used hard disk type, capacity
* throughput, IOPS etc.
*
*
* string unit_kind = 1;
* @return This builder for chaining.
*/
public Builder clearUnitKind() {
unitKind_ = getDefaultInstance().getUnitKind();
onChanged();
return this;
}
/**
*
* Required. Kind of the storage unit. Determine guarantees
* for all main unit parameters: used hard disk type, capacity
* throughput, IOPS etc.
*
*
* string unit_kind = 1;
* @param value The bytes for unitKind to set.
* @return This builder for chaining.
*/
public Builder setUnitKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
unitKind_ = value;
onChanged();
return this;
}
private long count_ ;
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 2;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 2;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(long value) {
count_ = value;
onChanged();
return this;
}
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 2;
* @return This builder for chaining.
*/
public Builder clearCount() {
count_ = 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.Cms.StorageUnits)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.StorageUnits)
private static final com.yandex.ydb.cms.YdbCms.StorageUnits DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.StorageUnits();
}
public static com.yandex.ydb.cms.YdbCms.StorageUnits getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageUnits parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StorageUnits(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.cms.YdbCms.StorageUnits getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ComputationalUnitsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.ComputationalUnits)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. Kind of the computational unit. Determine main
* unit parameters like available memory, CPU, etc.
*
*
* string unit_kind = 1;
* @return The unitKind.
*/
java.lang.String getUnitKind();
/**
*
* Required. Kind of the computational unit. Determine main
* unit parameters like available memory, CPU, etc.
*
*
* string unit_kind = 1;
* @return The bytes for unitKind.
*/
com.google.protobuf.ByteString
getUnitKindBytes();
/**
*
* The availability zone all unit should be located in.
* By default any availability zone can be used.
*
*
* string availability_zone = 2;
* @return The availabilityZone.
*/
java.lang.String getAvailabilityZone();
/**
*
* The availability zone all unit should be located in.
* By default any availability zone can be used.
*
*
* string availability_zone = 2;
* @return The bytes for availabilityZone.
*/
com.google.protobuf.ByteString
getAvailabilityZoneBytes();
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 3;
* @return The count.
*/
long getCount();
}
/**
*
* A set of uniform computational units.
*
*
* Protobuf type {@code Ydb.Cms.ComputationalUnits}
*/
public static final class ComputationalUnits extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.ComputationalUnits)
ComputationalUnitsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ComputationalUnits.newBuilder() to construct.
private ComputationalUnits(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ComputationalUnits() {
unitKind_ = "";
availabilityZone_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ComputationalUnits();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputationalUnits(
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();
unitKind_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
availabilityZone_ = s;
break;
}
case 24: {
count_ = 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.cms.YdbCms.internal_static_Ydb_Cms_ComputationalUnits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ComputationalUnits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ComputationalUnits.class, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder.class);
}
public static final int UNIT_KIND_FIELD_NUMBER = 1;
private volatile java.lang.Object unitKind_;
/**
*
* Required. Kind of the computational unit. Determine main
* unit parameters like available memory, CPU, etc.
*
*
* string unit_kind = 1;
* @return The unitKind.
*/
@java.lang.Override
public java.lang.String getUnitKind() {
java.lang.Object ref = unitKind_;
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();
unitKind_ = s;
return s;
}
}
/**
*
* Required. Kind of the computational unit. Determine main
* unit parameters like available memory, CPU, etc.
*
*
* string unit_kind = 1;
* @return The bytes for unitKind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnitKindBytes() {
java.lang.Object ref = unitKind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unitKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AVAILABILITY_ZONE_FIELD_NUMBER = 2;
private volatile java.lang.Object availabilityZone_;
/**
*
* The availability zone all unit should be located in.
* By default any availability zone can be used.
*
*
* string availability_zone = 2;
* @return The availabilityZone.
*/
@java.lang.Override
public java.lang.String getAvailabilityZone() {
java.lang.Object ref = availabilityZone_;
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();
availabilityZone_ = s;
return s;
}
}
/**
*
* The availability zone all unit should be located in.
* By default any availability zone can be used.
*
*
* string availability_zone = 2;
* @return The bytes for availabilityZone.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAvailabilityZoneBytes() {
java.lang.Object ref = availabilityZone_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
availabilityZone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNT_FIELD_NUMBER = 3;
private long count_;
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 3;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
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 (!getUnitKindBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unitKind_);
}
if (!getAvailabilityZoneBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, availabilityZone_);
}
if (count_ != 0L) {
output.writeUInt64(3, count_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUnitKindBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, unitKind_);
}
if (!getAvailabilityZoneBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, availabilityZone_);
}
if (count_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, count_);
}
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.cms.YdbCms.ComputationalUnits)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.ComputationalUnits other = (com.yandex.ydb.cms.YdbCms.ComputationalUnits) obj;
if (!getUnitKind()
.equals(other.getUnitKind())) return false;
if (!getAvailabilityZone()
.equals(other.getAvailabilityZone())) return false;
if (getCount()
!= other.getCount()) 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) + UNIT_KIND_FIELD_NUMBER;
hash = (53 * hash) + getUnitKind().hashCode();
hash = (37 * hash) + AVAILABILITY_ZONE_FIELD_NUMBER;
hash = (53 * hash) + getAvailabilityZone().hashCode();
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.ComputationalUnits parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ComputationalUnits 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.cms.YdbCms.ComputationalUnits parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ComputationalUnits 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.cms.YdbCms.ComputationalUnits parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ComputationalUnits parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.ComputationalUnits parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ComputationalUnits 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.cms.YdbCms.ComputationalUnits parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ComputationalUnits 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.cms.YdbCms.ComputationalUnits parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ComputationalUnits 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.cms.YdbCms.ComputationalUnits 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;
}
/**
*
* A set of uniform computational units.
*
*
* Protobuf type {@code Ydb.Cms.ComputationalUnits}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.ComputationalUnits)
com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ComputationalUnits_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ComputationalUnits_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ComputationalUnits.class, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.ComputationalUnits.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();
unitKind_ = "";
availabilityZone_ = "";
count_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ComputationalUnits_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ComputationalUnits getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.ComputationalUnits.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ComputationalUnits build() {
com.yandex.ydb.cms.YdbCms.ComputationalUnits result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ComputationalUnits buildPartial() {
com.yandex.ydb.cms.YdbCms.ComputationalUnits result = new com.yandex.ydb.cms.YdbCms.ComputationalUnits(this);
result.unitKind_ = unitKind_;
result.availabilityZone_ = availabilityZone_;
result.count_ = count_;
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.cms.YdbCms.ComputationalUnits) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.ComputationalUnits)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.ComputationalUnits other) {
if (other == com.yandex.ydb.cms.YdbCms.ComputationalUnits.getDefaultInstance()) return this;
if (!other.getUnitKind().isEmpty()) {
unitKind_ = other.unitKind_;
onChanged();
}
if (!other.getAvailabilityZone().isEmpty()) {
availabilityZone_ = other.availabilityZone_;
onChanged();
}
if (other.getCount() != 0L) {
setCount(other.getCount());
}
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.cms.YdbCms.ComputationalUnits parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.ComputationalUnits) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object unitKind_ = "";
/**
*
* Required. Kind of the computational unit. Determine main
* unit parameters like available memory, CPU, etc.
*
*
* string unit_kind = 1;
* @return The unitKind.
*/
public java.lang.String getUnitKind() {
java.lang.Object ref = unitKind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
unitKind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. Kind of the computational unit. Determine main
* unit parameters like available memory, CPU, etc.
*
*
* string unit_kind = 1;
* @return The bytes for unitKind.
*/
public com.google.protobuf.ByteString
getUnitKindBytes() {
java.lang.Object ref = unitKind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unitKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. Kind of the computational unit. Determine main
* unit parameters like available memory, CPU, etc.
*
*
* string unit_kind = 1;
* @param value The unitKind to set.
* @return This builder for chaining.
*/
public Builder setUnitKind(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
unitKind_ = value;
onChanged();
return this;
}
/**
*
* Required. Kind of the computational unit. Determine main
* unit parameters like available memory, CPU, etc.
*
*
* string unit_kind = 1;
* @return This builder for chaining.
*/
public Builder clearUnitKind() {
unitKind_ = getDefaultInstance().getUnitKind();
onChanged();
return this;
}
/**
*
* Required. Kind of the computational unit. Determine main
* unit parameters like available memory, CPU, etc.
*
*
* string unit_kind = 1;
* @param value The bytes for unitKind to set.
* @return This builder for chaining.
*/
public Builder setUnitKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
unitKind_ = value;
onChanged();
return this;
}
private java.lang.Object availabilityZone_ = "";
/**
*
* The availability zone all unit should be located in.
* By default any availability zone can be used.
*
*
* string availability_zone = 2;
* @return The availabilityZone.
*/
public java.lang.String getAvailabilityZone() {
java.lang.Object ref = availabilityZone_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
availabilityZone_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The availability zone all unit should be located in.
* By default any availability zone can be used.
*
*
* string availability_zone = 2;
* @return The bytes for availabilityZone.
*/
public com.google.protobuf.ByteString
getAvailabilityZoneBytes() {
java.lang.Object ref = availabilityZone_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
availabilityZone_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The availability zone all unit should be located in.
* By default any availability zone can be used.
*
*
* string availability_zone = 2;
* @param value The availabilityZone to set.
* @return This builder for chaining.
*/
public Builder setAvailabilityZone(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
availabilityZone_ = value;
onChanged();
return this;
}
/**
*
* The availability zone all unit should be located in.
* By default any availability zone can be used.
*
*
* string availability_zone = 2;
* @return This builder for chaining.
*/
public Builder clearAvailabilityZone() {
availabilityZone_ = getDefaultInstance().getAvailabilityZone();
onChanged();
return this;
}
/**
*
* The availability zone all unit should be located in.
* By default any availability zone can be used.
*
*
* string availability_zone = 2;
* @param value The bytes for availabilityZone to set.
* @return This builder for chaining.
*/
public Builder setAvailabilityZoneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
availabilityZone_ = value;
onChanged();
return this;
}
private long count_ ;
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 3;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 3;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(long value) {
count_ = value;
onChanged();
return this;
}
/**
*
* Required. The number of units in this set.
*
*
* uint64 count = 3;
* @return This builder for chaining.
*/
public Builder clearCount() {
count_ = 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.Cms.ComputationalUnits)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.ComputationalUnits)
private static final com.yandex.ydb.cms.YdbCms.ComputationalUnits DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.ComputationalUnits();
}
public static com.yandex.ydb.cms.YdbCms.ComputationalUnits getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ComputationalUnits parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputationalUnits(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.cms.YdbCms.ComputationalUnits getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AllocatedComputationalUnitOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.AllocatedComputationalUnit)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. Computational unit host name.
*
*
* string host = 1;
* @return The host.
*/
java.lang.String getHost();
/**
*
* Required. Computational unit host name.
*
*
* string host = 1;
* @return The bytes for host.
*/
com.google.protobuf.ByteString
getHostBytes();
/**
*
* Required. Computational unit port.
*
*
* uint32 port = 2;
* @return The port.
*/
int getPort();
/**
*
* Required. Computational unit kind.
*
*
* string unit_kind = 3;
* @return The unitKind.
*/
java.lang.String getUnitKind();
/**
*
* Required. Computational unit kind.
*
*
* string unit_kind = 3;
* @return The bytes for unitKind.
*/
com.google.protobuf.ByteString
getUnitKindBytes();
}
/**
*
* Computational unit allocated for database. Used to register
* externally allocated computational resources in CMS.
*
*
* Protobuf type {@code Ydb.Cms.AllocatedComputationalUnit}
*/
public static final class AllocatedComputationalUnit extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.AllocatedComputationalUnit)
AllocatedComputationalUnitOrBuilder {
private static final long serialVersionUID = 0L;
// Use AllocatedComputationalUnit.newBuilder() to construct.
private AllocatedComputationalUnit(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AllocatedComputationalUnit() {
host_ = "";
unitKind_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AllocatedComputationalUnit();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AllocatedComputationalUnit(
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();
host_ = s;
break;
}
case 16: {
port_ = input.readUInt32();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
unitKind_ = 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.cms.YdbCms.internal_static_Ydb_Cms_AllocatedComputationalUnit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AllocatedComputationalUnit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.class, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder.class);
}
public static final int HOST_FIELD_NUMBER = 1;
private volatile java.lang.Object host_;
/**
*
* Required. Computational unit host name.
*
*
* string host = 1;
* @return The host.
*/
@java.lang.Override
public java.lang.String getHost() {
java.lang.Object ref = host_;
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();
host_ = s;
return s;
}
}
/**
*
* Required. Computational unit host name.
*
*
* string host = 1;
* @return The bytes for host.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 2;
private int port_;
/**
*
* Required. Computational unit port.
*
*
* uint32 port = 2;
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
public static final int UNIT_KIND_FIELD_NUMBER = 3;
private volatile java.lang.Object unitKind_;
/**
*
* Required. Computational unit kind.
*
*
* string unit_kind = 3;
* @return The unitKind.
*/
@java.lang.Override
public java.lang.String getUnitKind() {
java.lang.Object ref = unitKind_;
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();
unitKind_ = s;
return s;
}
}
/**
*
* Required. Computational unit kind.
*
*
* string unit_kind = 3;
* @return The bytes for unitKind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnitKindBytes() {
java.lang.Object ref = unitKind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unitKind_ = 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 (!getHostBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_);
}
if (port_ != 0) {
output.writeUInt32(2, port_);
}
if (!getUnitKindBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unitKind_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getHostBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_);
}
if (port_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, port_);
}
if (!getUnitKindBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, unitKind_);
}
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.cms.YdbCms.AllocatedComputationalUnit)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit other = (com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit) obj;
if (!getHost()
.equals(other.getHost())) return false;
if (getPort()
!= other.getPort()) return false;
if (!getUnitKind()
.equals(other.getUnitKind())) 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) + HOST_FIELD_NUMBER;
hash = (53 * hash) + getHost().hashCode();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
hash = (37 * hash) + UNIT_KIND_FIELD_NUMBER;
hash = (53 * hash) + getUnitKind().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit 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.cms.YdbCms.AllocatedComputationalUnit parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit 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.cms.YdbCms.AllocatedComputationalUnit parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit 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.cms.YdbCms.AllocatedComputationalUnit parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit 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.cms.YdbCms.AllocatedComputationalUnit parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit 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.cms.YdbCms.AllocatedComputationalUnit 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;
}
/**
*
* Computational unit allocated for database. Used to register
* externally allocated computational resources in CMS.
*
*
* Protobuf type {@code Ydb.Cms.AllocatedComputationalUnit}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.AllocatedComputationalUnit)
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AllocatedComputationalUnit_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AllocatedComputationalUnit_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.class, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.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();
host_ = "";
port_ = 0;
unitKind_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AllocatedComputationalUnit_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit build() {
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit buildPartial() {
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit result = new com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit(this);
result.host_ = host_;
result.port_ = port_;
result.unitKind_ = unitKind_;
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.cms.YdbCms.AllocatedComputationalUnit) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit other) {
if (other == com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.getDefaultInstance()) return this;
if (!other.getHost().isEmpty()) {
host_ = other.host_;
onChanged();
}
if (other.getPort() != 0) {
setPort(other.getPort());
}
if (!other.getUnitKind().isEmpty()) {
unitKind_ = other.unitKind_;
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.cms.YdbCms.AllocatedComputationalUnit parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object host_ = "";
/**
*
* Required. Computational unit host name.
*
*
* string host = 1;
* @return The host.
*/
public java.lang.String getHost() {
java.lang.Object ref = host_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
host_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. Computational unit host name.
*
*
* string host = 1;
* @return The bytes for host.
*/
public com.google.protobuf.ByteString
getHostBytes() {
java.lang.Object ref = host_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
host_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. Computational unit host name.
*
*
* string host = 1;
* @param value The host to set.
* @return This builder for chaining.
*/
public Builder setHost(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
host_ = value;
onChanged();
return this;
}
/**
*
* Required. Computational unit host name.
*
*
* string host = 1;
* @return This builder for chaining.
*/
public Builder clearHost() {
host_ = getDefaultInstance().getHost();
onChanged();
return this;
}
/**
*
* Required. Computational unit host name.
*
*
* string host = 1;
* @param value The bytes for host to set.
* @return This builder for chaining.
*/
public Builder setHostBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
host_ = value;
onChanged();
return this;
}
private int port_ ;
/**
*
* Required. Computational unit port.
*
*
* uint32 port = 2;
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
/**
*
* Required. Computational unit port.
*
*
* uint32 port = 2;
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(int value) {
port_ = value;
onChanged();
return this;
}
/**
*
* Required. Computational unit port.
*
*
* uint32 port = 2;
* @return This builder for chaining.
*/
public Builder clearPort() {
port_ = 0;
onChanged();
return this;
}
private java.lang.Object unitKind_ = "";
/**
*
* Required. Computational unit kind.
*
*
* string unit_kind = 3;
* @return The unitKind.
*/
public java.lang.String getUnitKind() {
java.lang.Object ref = unitKind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
unitKind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Required. Computational unit kind.
*
*
* string unit_kind = 3;
* @return The bytes for unitKind.
*/
public com.google.protobuf.ByteString
getUnitKindBytes() {
java.lang.Object ref = unitKind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unitKind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Required. Computational unit kind.
*
*
* string unit_kind = 3;
* @param value The unitKind to set.
* @return This builder for chaining.
*/
public Builder setUnitKind(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
unitKind_ = value;
onChanged();
return this;
}
/**
*
* Required. Computational unit kind.
*
*
* string unit_kind = 3;
* @return This builder for chaining.
*/
public Builder clearUnitKind() {
unitKind_ = getDefaultInstance().getUnitKind();
onChanged();
return this;
}
/**
*
* Required. Computational unit kind.
*
*
* string unit_kind = 3;
* @param value The bytes for unitKind to set.
* @return This builder for chaining.
*/
public Builder setUnitKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
unitKind_ = 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.Cms.AllocatedComputationalUnit)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.AllocatedComputationalUnit)
private static final com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit();
}
public static com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AllocatedComputationalUnit parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AllocatedComputationalUnit(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.cms.YdbCms.AllocatedComputationalUnit getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourcesOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.Resources)
com.google.protobuf.MessageOrBuilder {
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
java.util.List
getStorageUnitsList();
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
com.yandex.ydb.cms.YdbCms.StorageUnits getStorageUnits(int index);
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
int getStorageUnitsCount();
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
java.util.List extends com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>
getStorageUnitsOrBuilderList();
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder getStorageUnitsOrBuilder(
int index);
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
java.util.List
getComputationalUnitsList();
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
com.yandex.ydb.cms.YdbCms.ComputationalUnits getComputationalUnits(int index);
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
int getComputationalUnitsCount();
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
java.util.List extends com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsOrBuilderList();
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder getComputationalUnitsOrBuilder(
int index);
}
/**
*
* A set of computational and storage resources.
*
*
* Protobuf type {@code Ydb.Cms.Resources}
*/
public static final class Resources extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.Resources)
ResourcesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Resources.newBuilder() to construct.
private Resources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Resources() {
storageUnits_ = java.util.Collections.emptyList();
computationalUnits_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Resources();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Resources(
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)) {
storageUnits_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
storageUnits_.add(
input.readMessage(com.yandex.ydb.cms.YdbCms.StorageUnits.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
computationalUnits_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
computationalUnits_.add(
input.readMessage(com.yandex.ydb.cms.YdbCms.ComputationalUnits.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)) {
storageUnits_ = java.util.Collections.unmodifiableList(storageUnits_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
computationalUnits_ = java.util.Collections.unmodifiableList(computationalUnits_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.Resources.class, com.yandex.ydb.cms.YdbCms.Resources.Builder.class);
}
public static final int STORAGE_UNITS_FIELD_NUMBER = 1;
private java.util.List storageUnits_;
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
@java.lang.Override
public java.util.List getStorageUnitsList() {
return storageUnits_;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>
getStorageUnitsOrBuilderList() {
return storageUnits_;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
@java.lang.Override
public int getStorageUnitsCount() {
return storageUnits_.size();
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnits getStorageUnits(int index) {
return storageUnits_.get(index);
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder getStorageUnitsOrBuilder(
int index) {
return storageUnits_.get(index);
}
public static final int COMPUTATIONAL_UNITS_FIELD_NUMBER = 2;
private java.util.List computationalUnits_;
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
@java.lang.Override
public java.util.List getComputationalUnitsList() {
return computationalUnits_;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsOrBuilderList() {
return computationalUnits_;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
@java.lang.Override
public int getComputationalUnitsCount() {
return computationalUnits_.size();
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ComputationalUnits getComputationalUnits(int index) {
return computationalUnits_.get(index);
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder getComputationalUnitsOrBuilder(
int index) {
return computationalUnits_.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 < storageUnits_.size(); i++) {
output.writeMessage(1, storageUnits_.get(i));
}
for (int i = 0; i < computationalUnits_.size(); i++) {
output.writeMessage(2, computationalUnits_.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 < storageUnits_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, storageUnits_.get(i));
}
for (int i = 0; i < computationalUnits_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, computationalUnits_.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.cms.YdbCms.Resources)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.Resources other = (com.yandex.ydb.cms.YdbCms.Resources) obj;
if (!getStorageUnitsList()
.equals(other.getStorageUnitsList())) return false;
if (!getComputationalUnitsList()
.equals(other.getComputationalUnitsList())) 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 (getStorageUnitsCount() > 0) {
hash = (37 * hash) + STORAGE_UNITS_FIELD_NUMBER;
hash = (53 * hash) + getStorageUnitsList().hashCode();
}
if (getComputationalUnitsCount() > 0) {
hash = (37 * hash) + COMPUTATIONAL_UNITS_FIELD_NUMBER;
hash = (53 * hash) + getComputationalUnitsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.Resources parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.Resources 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.cms.YdbCms.Resources parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.Resources 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.cms.YdbCms.Resources parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.Resources parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.Resources parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.Resources 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.cms.YdbCms.Resources parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.Resources 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.cms.YdbCms.Resources parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.Resources 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.cms.YdbCms.Resources 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;
}
/**
*
* A set of computational and storage resources.
*
*
* Protobuf type {@code Ydb.Cms.Resources}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.Resources)
com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.Resources.class, com.yandex.ydb.cms.YdbCms.Resources.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.Resources.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStorageUnitsFieldBuilder();
getComputationalUnitsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (storageUnitsBuilder_ == null) {
storageUnits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
storageUnitsBuilder_.clear();
}
if (computationalUnitsBuilder_ == null) {
computationalUnits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
computationalUnitsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_Resources_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources build() {
com.yandex.ydb.cms.YdbCms.Resources result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources buildPartial() {
com.yandex.ydb.cms.YdbCms.Resources result = new com.yandex.ydb.cms.YdbCms.Resources(this);
int from_bitField0_ = bitField0_;
if (storageUnitsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
storageUnits_ = java.util.Collections.unmodifiableList(storageUnits_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.storageUnits_ = storageUnits_;
} else {
result.storageUnits_ = storageUnitsBuilder_.build();
}
if (computationalUnitsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
computationalUnits_ = java.util.Collections.unmodifiableList(computationalUnits_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.computationalUnits_ = computationalUnits_;
} else {
result.computationalUnits_ = computationalUnitsBuilder_.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.cms.YdbCms.Resources) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.Resources)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.Resources other) {
if (other == com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance()) return this;
if (storageUnitsBuilder_ == null) {
if (!other.storageUnits_.isEmpty()) {
if (storageUnits_.isEmpty()) {
storageUnits_ = other.storageUnits_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStorageUnitsIsMutable();
storageUnits_.addAll(other.storageUnits_);
}
onChanged();
}
} else {
if (!other.storageUnits_.isEmpty()) {
if (storageUnitsBuilder_.isEmpty()) {
storageUnitsBuilder_.dispose();
storageUnitsBuilder_ = null;
storageUnits_ = other.storageUnits_;
bitField0_ = (bitField0_ & ~0x00000001);
storageUnitsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStorageUnitsFieldBuilder() : null;
} else {
storageUnitsBuilder_.addAllMessages(other.storageUnits_);
}
}
}
if (computationalUnitsBuilder_ == null) {
if (!other.computationalUnits_.isEmpty()) {
if (computationalUnits_.isEmpty()) {
computationalUnits_ = other.computationalUnits_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureComputationalUnitsIsMutable();
computationalUnits_.addAll(other.computationalUnits_);
}
onChanged();
}
} else {
if (!other.computationalUnits_.isEmpty()) {
if (computationalUnitsBuilder_.isEmpty()) {
computationalUnitsBuilder_.dispose();
computationalUnitsBuilder_ = null;
computationalUnits_ = other.computationalUnits_;
bitField0_ = (bitField0_ & ~0x00000002);
computationalUnitsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getComputationalUnitsFieldBuilder() : null;
} else {
computationalUnitsBuilder_.addAllMessages(other.computationalUnits_);
}
}
}
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.cms.YdbCms.Resources parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.Resources) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List storageUnits_ =
java.util.Collections.emptyList();
private void ensureStorageUnitsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
storageUnits_ = new java.util.ArrayList(storageUnits_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.StorageUnits, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder, com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder> storageUnitsBuilder_;
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public java.util.List getStorageUnitsList() {
if (storageUnitsBuilder_ == null) {
return java.util.Collections.unmodifiableList(storageUnits_);
} else {
return storageUnitsBuilder_.getMessageList();
}
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public int getStorageUnitsCount() {
if (storageUnitsBuilder_ == null) {
return storageUnits_.size();
} else {
return storageUnitsBuilder_.getCount();
}
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnits getStorageUnits(int index) {
if (storageUnitsBuilder_ == null) {
return storageUnits_.get(index);
} else {
return storageUnitsBuilder_.getMessage(index);
}
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public Builder setStorageUnits(
int index, com.yandex.ydb.cms.YdbCms.StorageUnits value) {
if (storageUnitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageUnitsIsMutable();
storageUnits_.set(index, value);
onChanged();
} else {
storageUnitsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public Builder setStorageUnits(
int index, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder builderForValue) {
if (storageUnitsBuilder_ == null) {
ensureStorageUnitsIsMutable();
storageUnits_.set(index, builderForValue.build());
onChanged();
} else {
storageUnitsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public Builder addStorageUnits(com.yandex.ydb.cms.YdbCms.StorageUnits value) {
if (storageUnitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageUnitsIsMutable();
storageUnits_.add(value);
onChanged();
} else {
storageUnitsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public Builder addStorageUnits(
int index, com.yandex.ydb.cms.YdbCms.StorageUnits value) {
if (storageUnitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageUnitsIsMutable();
storageUnits_.add(index, value);
onChanged();
} else {
storageUnitsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public Builder addStorageUnits(
com.yandex.ydb.cms.YdbCms.StorageUnits.Builder builderForValue) {
if (storageUnitsBuilder_ == null) {
ensureStorageUnitsIsMutable();
storageUnits_.add(builderForValue.build());
onChanged();
} else {
storageUnitsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public Builder addStorageUnits(
int index, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder builderForValue) {
if (storageUnitsBuilder_ == null) {
ensureStorageUnitsIsMutable();
storageUnits_.add(index, builderForValue.build());
onChanged();
} else {
storageUnitsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public Builder addAllStorageUnits(
java.lang.Iterable extends com.yandex.ydb.cms.YdbCms.StorageUnits> values) {
if (storageUnitsBuilder_ == null) {
ensureStorageUnitsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, storageUnits_);
onChanged();
} else {
storageUnitsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public Builder clearStorageUnits() {
if (storageUnitsBuilder_ == null) {
storageUnits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
storageUnitsBuilder_.clear();
}
return this;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public Builder removeStorageUnits(int index) {
if (storageUnitsBuilder_ == null) {
ensureStorageUnitsIsMutable();
storageUnits_.remove(index);
onChanged();
} else {
storageUnitsBuilder_.remove(index);
}
return this;
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnits.Builder getStorageUnitsBuilder(
int index) {
return getStorageUnitsFieldBuilder().getBuilder(index);
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder getStorageUnitsOrBuilder(
int index) {
if (storageUnitsBuilder_ == null) {
return storageUnits_.get(index); } else {
return storageUnitsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public java.util.List extends com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>
getStorageUnitsOrBuilderList() {
if (storageUnitsBuilder_ != null) {
return storageUnitsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(storageUnits_);
}
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnits.Builder addStorageUnitsBuilder() {
return getStorageUnitsFieldBuilder().addBuilder(
com.yandex.ydb.cms.YdbCms.StorageUnits.getDefaultInstance());
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnits.Builder addStorageUnitsBuilder(
int index) {
return getStorageUnitsFieldBuilder().addBuilder(
index, com.yandex.ydb.cms.YdbCms.StorageUnits.getDefaultInstance());
}
/**
*
* Storage resources.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
public java.util.List
getStorageUnitsBuilderList() {
return getStorageUnitsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.StorageUnits, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder, com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>
getStorageUnitsFieldBuilder() {
if (storageUnitsBuilder_ == null) {
storageUnitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.StorageUnits, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder, com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>(
storageUnits_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
storageUnits_ = null;
}
return storageUnitsBuilder_;
}
private java.util.List computationalUnits_ =
java.util.Collections.emptyList();
private void ensureComputationalUnitsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
computationalUnits_ = new java.util.ArrayList(computationalUnits_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ComputationalUnits, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder, com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder> computationalUnitsBuilder_;
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public java.util.List getComputationalUnitsList() {
if (computationalUnitsBuilder_ == null) {
return java.util.Collections.unmodifiableList(computationalUnits_);
} else {
return computationalUnitsBuilder_.getMessageList();
}
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public int getComputationalUnitsCount() {
if (computationalUnitsBuilder_ == null) {
return computationalUnits_.size();
} else {
return computationalUnitsBuilder_.getCount();
}
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits getComputationalUnits(int index) {
if (computationalUnitsBuilder_ == null) {
return computationalUnits_.get(index);
} else {
return computationalUnitsBuilder_.getMessage(index);
}
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public Builder setComputationalUnits(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits value) {
if (computationalUnitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsIsMutable();
computationalUnits_.set(index, value);
onChanged();
} else {
computationalUnitsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public Builder setComputationalUnits(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder builderForValue) {
if (computationalUnitsBuilder_ == null) {
ensureComputationalUnitsIsMutable();
computationalUnits_.set(index, builderForValue.build());
onChanged();
} else {
computationalUnitsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public Builder addComputationalUnits(com.yandex.ydb.cms.YdbCms.ComputationalUnits value) {
if (computationalUnitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsIsMutable();
computationalUnits_.add(value);
onChanged();
} else {
computationalUnitsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public Builder addComputationalUnits(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits value) {
if (computationalUnitsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsIsMutable();
computationalUnits_.add(index, value);
onChanged();
} else {
computationalUnitsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public Builder addComputationalUnits(
com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder builderForValue) {
if (computationalUnitsBuilder_ == null) {
ensureComputationalUnitsIsMutable();
computationalUnits_.add(builderForValue.build());
onChanged();
} else {
computationalUnitsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public Builder addComputationalUnits(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder builderForValue) {
if (computationalUnitsBuilder_ == null) {
ensureComputationalUnitsIsMutable();
computationalUnits_.add(index, builderForValue.build());
onChanged();
} else {
computationalUnitsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public Builder addAllComputationalUnits(
java.lang.Iterable extends com.yandex.ydb.cms.YdbCms.ComputationalUnits> values) {
if (computationalUnitsBuilder_ == null) {
ensureComputationalUnitsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, computationalUnits_);
onChanged();
} else {
computationalUnitsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public Builder clearComputationalUnits() {
if (computationalUnitsBuilder_ == null) {
computationalUnits_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
computationalUnitsBuilder_.clear();
}
return this;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public Builder removeComputationalUnits(int index) {
if (computationalUnitsBuilder_ == null) {
ensureComputationalUnitsIsMutable();
computationalUnits_.remove(index);
onChanged();
} else {
computationalUnitsBuilder_.remove(index);
}
return this;
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder getComputationalUnitsBuilder(
int index) {
return getComputationalUnitsFieldBuilder().getBuilder(index);
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder getComputationalUnitsOrBuilder(
int index) {
if (computationalUnitsBuilder_ == null) {
return computationalUnits_.get(index); } else {
return computationalUnitsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public java.util.List extends com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsOrBuilderList() {
if (computationalUnitsBuilder_ != null) {
return computationalUnitsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(computationalUnits_);
}
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder addComputationalUnitsBuilder() {
return getComputationalUnitsFieldBuilder().addBuilder(
com.yandex.ydb.cms.YdbCms.ComputationalUnits.getDefaultInstance());
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder addComputationalUnitsBuilder(
int index) {
return getComputationalUnitsFieldBuilder().addBuilder(
index, com.yandex.ydb.cms.YdbCms.ComputationalUnits.getDefaultInstance());
}
/**
*
* Computational resources.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
public java.util.List
getComputationalUnitsBuilderList() {
return getComputationalUnitsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ComputationalUnits, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder, com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsFieldBuilder() {
if (computationalUnitsBuilder_ == null) {
computationalUnitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ComputationalUnits, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder, com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>(
computationalUnits_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
computationalUnits_ = null;
}
return computationalUnitsBuilder_;
}
@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.Cms.Resources)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.Resources)
private static final com.yandex.ydb.cms.YdbCms.Resources DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.Resources();
}
public static com.yandex.ydb.cms.YdbCms.Resources getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Resources parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Resources(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.cms.YdbCms.Resources getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ServerlessResourcesOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.ServerlessResources)
com.google.protobuf.MessageOrBuilder {
/**
*
* Full path to shared database's home dir whose resources will be used.
*
*
* string shared_database_path = 1;
* @return The sharedDatabasePath.
*/
java.lang.String getSharedDatabasePath();
/**
*
* Full path to shared database's home dir whose resources will be used.
*
*
* string shared_database_path = 1;
* @return The bytes for sharedDatabasePath.
*/
com.google.protobuf.ByteString
getSharedDatabasePathBytes();
}
/**
* Protobuf type {@code Ydb.Cms.ServerlessResources}
*/
public static final class ServerlessResources extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.ServerlessResources)
ServerlessResourcesOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServerlessResources.newBuilder() to construct.
private ServerlessResources(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServerlessResources() {
sharedDatabasePath_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServerlessResources();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ServerlessResources(
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();
sharedDatabasePath_ = 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.cms.YdbCms.internal_static_Ydb_Cms_ServerlessResources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ServerlessResources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ServerlessResources.class, com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder.class);
}
public static final int SHARED_DATABASE_PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object sharedDatabasePath_;
/**
*
* Full path to shared database's home dir whose resources will be used.
*
*
* string shared_database_path = 1;
* @return The sharedDatabasePath.
*/
@java.lang.Override
public java.lang.String getSharedDatabasePath() {
java.lang.Object ref = sharedDatabasePath_;
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();
sharedDatabasePath_ = s;
return s;
}
}
/**
*
* Full path to shared database's home dir whose resources will be used.
*
*
* string shared_database_path = 1;
* @return The bytes for sharedDatabasePath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSharedDatabasePathBytes() {
java.lang.Object ref = sharedDatabasePath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sharedDatabasePath_ = 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 (!getSharedDatabasePathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sharedDatabasePath_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSharedDatabasePathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sharedDatabasePath_);
}
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.cms.YdbCms.ServerlessResources)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.ServerlessResources other = (com.yandex.ydb.cms.YdbCms.ServerlessResources) obj;
if (!getSharedDatabasePath()
.equals(other.getSharedDatabasePath())) 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) + SHARED_DATABASE_PATH_FIELD_NUMBER;
hash = (53 * hash) + getSharedDatabasePath().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.ServerlessResources parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ServerlessResources 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.cms.YdbCms.ServerlessResources parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ServerlessResources 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.cms.YdbCms.ServerlessResources parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ServerlessResources parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.ServerlessResources parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ServerlessResources 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.cms.YdbCms.ServerlessResources parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ServerlessResources 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.cms.YdbCms.ServerlessResources parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ServerlessResources 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.cms.YdbCms.ServerlessResources 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.Cms.ServerlessResources}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.ServerlessResources)
com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ServerlessResources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ServerlessResources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ServerlessResources.class, com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.ServerlessResources.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();
sharedDatabasePath_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ServerlessResources_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResources getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResources build() {
com.yandex.ydb.cms.YdbCms.ServerlessResources result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResources buildPartial() {
com.yandex.ydb.cms.YdbCms.ServerlessResources result = new com.yandex.ydb.cms.YdbCms.ServerlessResources(this);
result.sharedDatabasePath_ = sharedDatabasePath_;
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.cms.YdbCms.ServerlessResources) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.ServerlessResources)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.ServerlessResources other) {
if (other == com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance()) return this;
if (!other.getSharedDatabasePath().isEmpty()) {
sharedDatabasePath_ = other.sharedDatabasePath_;
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.cms.YdbCms.ServerlessResources parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.ServerlessResources) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object sharedDatabasePath_ = "";
/**
*
* Full path to shared database's home dir whose resources will be used.
*
*
* string shared_database_path = 1;
* @return The sharedDatabasePath.
*/
public java.lang.String getSharedDatabasePath() {
java.lang.Object ref = sharedDatabasePath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sharedDatabasePath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Full path to shared database's home dir whose resources will be used.
*
*
* string shared_database_path = 1;
* @return The bytes for sharedDatabasePath.
*/
public com.google.protobuf.ByteString
getSharedDatabasePathBytes() {
java.lang.Object ref = sharedDatabasePath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sharedDatabasePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Full path to shared database's home dir whose resources will be used.
*
*
* string shared_database_path = 1;
* @param value The sharedDatabasePath to set.
* @return This builder for chaining.
*/
public Builder setSharedDatabasePath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sharedDatabasePath_ = value;
onChanged();
return this;
}
/**
*
* Full path to shared database's home dir whose resources will be used.
*
*
* string shared_database_path = 1;
* @return This builder for chaining.
*/
public Builder clearSharedDatabasePath() {
sharedDatabasePath_ = getDefaultInstance().getSharedDatabasePath();
onChanged();
return this;
}
/**
*
* Full path to shared database's home dir whose resources will be used.
*
*
* string shared_database_path = 1;
* @param value The bytes for sharedDatabasePath to set.
* @return This builder for chaining.
*/
public Builder setSharedDatabasePathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sharedDatabasePath_ = 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.Cms.ServerlessResources)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.ServerlessResources)
private static final com.yandex.ydb.cms.YdbCms.ServerlessResources DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.ServerlessResources();
}
public static com.yandex.ydb.cms.YdbCms.ServerlessResources getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServerlessResources parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ServerlessResources(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.cms.YdbCms.ServerlessResources getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DatabaseOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.DatabaseOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Do not initialize services required for transactions processing.
*
*
* bool disable_tx_service = 1;
* @return The disableTxService.
*/
boolean getDisableTxService();
/**
*
* Old-style database, do not create external schemeshard for database
*
*
* bool disable_external_subdomain = 2;
* @return The disableExternalSubdomain.
*/
boolean getDisableExternalSubdomain();
/**
*
* Transaction plan resolution in milliseconds
*
*
* uint32 plan_resolution = 3;
* @return The planResolution.
*/
int getPlanResolution();
}
/**
* Protobuf type {@code Ydb.Cms.DatabaseOptions}
*/
public static final class DatabaseOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.DatabaseOptions)
DatabaseOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DatabaseOptions.newBuilder() to construct.
private DatabaseOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DatabaseOptions() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DatabaseOptions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DatabaseOptions(
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: {
disableTxService_ = input.readBool();
break;
}
case 16: {
disableExternalSubdomain_ = input.readBool();
break;
}
case 24: {
planResolution_ = 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.cms.YdbCms.internal_static_Ydb_Cms_DatabaseOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_DatabaseOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.DatabaseOptions.class, com.yandex.ydb.cms.YdbCms.DatabaseOptions.Builder.class);
}
public static final int DISABLE_TX_SERVICE_FIELD_NUMBER = 1;
private boolean disableTxService_;
/**
*
* Do not initialize services required for transactions processing.
*
*
* bool disable_tx_service = 1;
* @return The disableTxService.
*/
@java.lang.Override
public boolean getDisableTxService() {
return disableTxService_;
}
public static final int DISABLE_EXTERNAL_SUBDOMAIN_FIELD_NUMBER = 2;
private boolean disableExternalSubdomain_;
/**
*
* Old-style database, do not create external schemeshard for database
*
*
* bool disable_external_subdomain = 2;
* @return The disableExternalSubdomain.
*/
@java.lang.Override
public boolean getDisableExternalSubdomain() {
return disableExternalSubdomain_;
}
public static final int PLAN_RESOLUTION_FIELD_NUMBER = 3;
private int planResolution_;
/**
*
* Transaction plan resolution in milliseconds
*
*
* uint32 plan_resolution = 3;
* @return The planResolution.
*/
@java.lang.Override
public int getPlanResolution() {
return planResolution_;
}
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 (disableTxService_ != false) {
output.writeBool(1, disableTxService_);
}
if (disableExternalSubdomain_ != false) {
output.writeBool(2, disableExternalSubdomain_);
}
if (planResolution_ != 0) {
output.writeUInt32(3, planResolution_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (disableTxService_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, disableTxService_);
}
if (disableExternalSubdomain_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, disableExternalSubdomain_);
}
if (planResolution_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, planResolution_);
}
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.cms.YdbCms.DatabaseOptions)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.DatabaseOptions other = (com.yandex.ydb.cms.YdbCms.DatabaseOptions) obj;
if (getDisableTxService()
!= other.getDisableTxService()) return false;
if (getDisableExternalSubdomain()
!= other.getDisableExternalSubdomain()) return false;
if (getPlanResolution()
!= other.getPlanResolution()) 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) + DISABLE_TX_SERVICE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableTxService());
hash = (37 * hash) + DISABLE_EXTERNAL_SUBDOMAIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableExternalSubdomain());
hash = (37 * hash) + PLAN_RESOLUTION_FIELD_NUMBER;
hash = (53 * hash) + getPlanResolution();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.DatabaseOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseOptions 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.cms.YdbCms.DatabaseOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseOptions 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.cms.YdbCms.DatabaseOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseOptions 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.cms.YdbCms.DatabaseOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseOptions 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.cms.YdbCms.DatabaseOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseOptions 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.cms.YdbCms.DatabaseOptions 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.Cms.DatabaseOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.DatabaseOptions)
com.yandex.ydb.cms.YdbCms.DatabaseOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_DatabaseOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_DatabaseOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.DatabaseOptions.class, com.yandex.ydb.cms.YdbCms.DatabaseOptions.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.DatabaseOptions.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();
disableTxService_ = false;
disableExternalSubdomain_ = false;
planResolution_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_DatabaseOptions_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseOptions getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.DatabaseOptions.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseOptions build() {
com.yandex.ydb.cms.YdbCms.DatabaseOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseOptions buildPartial() {
com.yandex.ydb.cms.YdbCms.DatabaseOptions result = new com.yandex.ydb.cms.YdbCms.DatabaseOptions(this);
result.disableTxService_ = disableTxService_;
result.disableExternalSubdomain_ = disableExternalSubdomain_;
result.planResolution_ = planResolution_;
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.cms.YdbCms.DatabaseOptions) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.DatabaseOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.DatabaseOptions other) {
if (other == com.yandex.ydb.cms.YdbCms.DatabaseOptions.getDefaultInstance()) return this;
if (other.getDisableTxService() != false) {
setDisableTxService(other.getDisableTxService());
}
if (other.getDisableExternalSubdomain() != false) {
setDisableExternalSubdomain(other.getDisableExternalSubdomain());
}
if (other.getPlanResolution() != 0) {
setPlanResolution(other.getPlanResolution());
}
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.cms.YdbCms.DatabaseOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.DatabaseOptions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean disableTxService_ ;
/**
*
* Do not initialize services required for transactions processing.
*
*
* bool disable_tx_service = 1;
* @return The disableTxService.
*/
@java.lang.Override
public boolean getDisableTxService() {
return disableTxService_;
}
/**
*
* Do not initialize services required for transactions processing.
*
*
* bool disable_tx_service = 1;
* @param value The disableTxService to set.
* @return This builder for chaining.
*/
public Builder setDisableTxService(boolean value) {
disableTxService_ = value;
onChanged();
return this;
}
/**
*
* Do not initialize services required for transactions processing.
*
*
* bool disable_tx_service = 1;
* @return This builder for chaining.
*/
public Builder clearDisableTxService() {
disableTxService_ = false;
onChanged();
return this;
}
private boolean disableExternalSubdomain_ ;
/**
*
* Old-style database, do not create external schemeshard for database
*
*
* bool disable_external_subdomain = 2;
* @return The disableExternalSubdomain.
*/
@java.lang.Override
public boolean getDisableExternalSubdomain() {
return disableExternalSubdomain_;
}
/**
*
* Old-style database, do not create external schemeshard for database
*
*
* bool disable_external_subdomain = 2;
* @param value The disableExternalSubdomain to set.
* @return This builder for chaining.
*/
public Builder setDisableExternalSubdomain(boolean value) {
disableExternalSubdomain_ = value;
onChanged();
return this;
}
/**
*
* Old-style database, do not create external schemeshard for database
*
*
* bool disable_external_subdomain = 2;
* @return This builder for chaining.
*/
public Builder clearDisableExternalSubdomain() {
disableExternalSubdomain_ = false;
onChanged();
return this;
}
private int planResolution_ ;
/**
*
* Transaction plan resolution in milliseconds
*
*
* uint32 plan_resolution = 3;
* @return The planResolution.
*/
@java.lang.Override
public int getPlanResolution() {
return planResolution_;
}
/**
*
* Transaction plan resolution in milliseconds
*
*
* uint32 plan_resolution = 3;
* @param value The planResolution to set.
* @return This builder for chaining.
*/
public Builder setPlanResolution(int value) {
planResolution_ = value;
onChanged();
return this;
}
/**
*
* Transaction plan resolution in milliseconds
*
*
* uint32 plan_resolution = 3;
* @return This builder for chaining.
*/
public Builder clearPlanResolution() {
planResolution_ = 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.Cms.DatabaseOptions)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.DatabaseOptions)
private static final com.yandex.ydb.cms.YdbCms.DatabaseOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.DatabaseOptions();
}
public static com.yandex.ydb.cms.YdbCms.DatabaseOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DatabaseOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DatabaseOptions(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.cms.YdbCms.DatabaseOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SchemaOperationQuotasOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.SchemaOperationQuotas)
com.google.protobuf.MessageOrBuilder {
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
java.util.List
getLeakyBucketQuotasList();
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket getLeakyBucketQuotas(int index);
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
int getLeakyBucketQuotasCount();
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
java.util.List extends com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder>
getLeakyBucketQuotasOrBuilderList();
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder getLeakyBucketQuotasOrBuilder(
int index);
}
/**
*
* A set of quotas for schema operations
*
*
* Protobuf type {@code Ydb.Cms.SchemaOperationQuotas}
*/
public static final class SchemaOperationQuotas extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.SchemaOperationQuotas)
SchemaOperationQuotasOrBuilder {
private static final long serialVersionUID = 0L;
// Use SchemaOperationQuotas.newBuilder() to construct.
private SchemaOperationQuotas(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SchemaOperationQuotas() {
leakyBucketQuotas_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SchemaOperationQuotas();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SchemaOperationQuotas(
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)) {
leakyBucketQuotas_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
leakyBucketQuotas_.add(
input.readMessage(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.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)) {
leakyBucketQuotas_ = java.util.Collections.unmodifiableList(leakyBucketQuotas_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.class, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder.class);
}
public interface LeakyBucketOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.SchemaOperationQuotas.LeakyBucket)
com.google.protobuf.MessageOrBuilder {
/**
*
* Bucket size, e.g. <1000> per day
*
*
* double bucket_size = 1;
* @return The bucketSize.
*/
double getBucketSize();
/**
*
* Bucket duration in seconds, e.g. 1000 per <day>
*
*
* uint64 bucket_seconds = 2;
* @return The bucketSeconds.
*/
long getBucketSeconds();
}
/**
*
* A single quota based on leaky bucket
*
*
* Protobuf type {@code Ydb.Cms.SchemaOperationQuotas.LeakyBucket}
*/
public static final class LeakyBucket extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.SchemaOperationQuotas.LeakyBucket)
LeakyBucketOrBuilder {
private static final long serialVersionUID = 0L;
// Use LeakyBucket.newBuilder() to construct.
private LeakyBucket(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LeakyBucket() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LeakyBucket();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LeakyBucket(
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 9: {
bucketSize_ = input.readDouble();
break;
}
case 16: {
bucketSeconds_ = 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.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_LeakyBucket_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_LeakyBucket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.class, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder.class);
}
public static final int BUCKET_SIZE_FIELD_NUMBER = 1;
private double bucketSize_;
/**
*
* Bucket size, e.g. <1000> per day
*
*
* double bucket_size = 1;
* @return The bucketSize.
*/
@java.lang.Override
public double getBucketSize() {
return bucketSize_;
}
public static final int BUCKET_SECONDS_FIELD_NUMBER = 2;
private long bucketSeconds_;
/**
*
* Bucket duration in seconds, e.g. 1000 per <day>
*
*
* uint64 bucket_seconds = 2;
* @return The bucketSeconds.
*/
@java.lang.Override
public long getBucketSeconds() {
return bucketSeconds_;
}
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 (bucketSize_ != 0D) {
output.writeDouble(1, bucketSize_);
}
if (bucketSeconds_ != 0L) {
output.writeUInt64(2, bucketSeconds_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (bucketSize_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, bucketSize_);
}
if (bucketSeconds_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, bucketSeconds_);
}
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.cms.YdbCms.SchemaOperationQuotas.LeakyBucket)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket other = (com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket) obj;
if (java.lang.Double.doubleToLongBits(getBucketSize())
!= java.lang.Double.doubleToLongBits(
other.getBucketSize())) return false;
if (getBucketSeconds()
!= other.getBucketSeconds()) 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) + BUCKET_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBucketSize()));
hash = (37 * hash) + BUCKET_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getBucketSeconds());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket 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.cms.YdbCms.SchemaOperationQuotas.LeakyBucket parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket 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.cms.YdbCms.SchemaOperationQuotas.LeakyBucket parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket 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.cms.YdbCms.SchemaOperationQuotas.LeakyBucket parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket 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.cms.YdbCms.SchemaOperationQuotas.LeakyBucket parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket 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.cms.YdbCms.SchemaOperationQuotas.LeakyBucket 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;
}
/**
*
* A single quota based on leaky bucket
*
*
* Protobuf type {@code Ydb.Cms.SchemaOperationQuotas.LeakyBucket}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.SchemaOperationQuotas.LeakyBucket)
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_LeakyBucket_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_LeakyBucket_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.class, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.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();
bucketSize_ = 0D;
bucketSeconds_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_LeakyBucket_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket build() {
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket buildPartial() {
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket result = new com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket(this);
result.bucketSize_ = bucketSize_;
result.bucketSeconds_ = bucketSeconds_;
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.cms.YdbCms.SchemaOperationQuotas.LeakyBucket) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket other) {
if (other == com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.getDefaultInstance()) return this;
if (other.getBucketSize() != 0D) {
setBucketSize(other.getBucketSize());
}
if (other.getBucketSeconds() != 0L) {
setBucketSeconds(other.getBucketSeconds());
}
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.cms.YdbCms.SchemaOperationQuotas.LeakyBucket parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double bucketSize_ ;
/**
*
* Bucket size, e.g. <1000> per day
*
*
* double bucket_size = 1;
* @return The bucketSize.
*/
@java.lang.Override
public double getBucketSize() {
return bucketSize_;
}
/**
*
* Bucket size, e.g. <1000> per day
*
*
* double bucket_size = 1;
* @param value The bucketSize to set.
* @return This builder for chaining.
*/
public Builder setBucketSize(double value) {
bucketSize_ = value;
onChanged();
return this;
}
/**
*
* Bucket size, e.g. <1000> per day
*
*
* double bucket_size = 1;
* @return This builder for chaining.
*/
public Builder clearBucketSize() {
bucketSize_ = 0D;
onChanged();
return this;
}
private long bucketSeconds_ ;
/**
*
* Bucket duration in seconds, e.g. 1000 per <day>
*
*
* uint64 bucket_seconds = 2;
* @return The bucketSeconds.
*/
@java.lang.Override
public long getBucketSeconds() {
return bucketSeconds_;
}
/**
*
* Bucket duration in seconds, e.g. 1000 per <day>
*
*
* uint64 bucket_seconds = 2;
* @param value The bucketSeconds to set.
* @return This builder for chaining.
*/
public Builder setBucketSeconds(long value) {
bucketSeconds_ = value;
onChanged();
return this;
}
/**
*
* Bucket duration in seconds, e.g. 1000 per <day>
*
*
* uint64 bucket_seconds = 2;
* @return This builder for chaining.
*/
public Builder clearBucketSeconds() {
bucketSeconds_ = 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.Cms.SchemaOperationQuotas.LeakyBucket)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.SchemaOperationQuotas.LeakyBucket)
private static final com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket();
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LeakyBucket parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LeakyBucket(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.cms.YdbCms.SchemaOperationQuotas.LeakyBucket getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int LEAKY_BUCKET_QUOTAS_FIELD_NUMBER = 1;
private java.util.List leakyBucketQuotas_;
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
@java.lang.Override
public java.util.List getLeakyBucketQuotasList() {
return leakyBucketQuotas_;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder>
getLeakyBucketQuotasOrBuilderList() {
return leakyBucketQuotas_;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
@java.lang.Override
public int getLeakyBucketQuotasCount() {
return leakyBucketQuotas_.size();
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket getLeakyBucketQuotas(int index) {
return leakyBucketQuotas_.get(index);
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder getLeakyBucketQuotasOrBuilder(
int index) {
return leakyBucketQuotas_.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 < leakyBucketQuotas_.size(); i++) {
output.writeMessage(1, leakyBucketQuotas_.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 < leakyBucketQuotas_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, leakyBucketQuotas_.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.cms.YdbCms.SchemaOperationQuotas)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas other = (com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas) obj;
if (!getLeakyBucketQuotasList()
.equals(other.getLeakyBucketQuotasList())) 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 (getLeakyBucketQuotasCount() > 0) {
hash = (37 * hash) + LEAKY_BUCKET_QUOTAS_FIELD_NUMBER;
hash = (53 * hash) + getLeakyBucketQuotasList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas 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.cms.YdbCms.SchemaOperationQuotas parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas 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.cms.YdbCms.SchemaOperationQuotas parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas 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.cms.YdbCms.SchemaOperationQuotas parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas 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.cms.YdbCms.SchemaOperationQuotas parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas 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.cms.YdbCms.SchemaOperationQuotas 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;
}
/**
*
* A set of quotas for schema operations
*
*
* Protobuf type {@code Ydb.Cms.SchemaOperationQuotas}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.SchemaOperationQuotas)
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.class, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLeakyBucketQuotasFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (leakyBucketQuotasBuilder_ == null) {
leakyBucketQuotas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
leakyBucketQuotasBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_SchemaOperationQuotas_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas build() {
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas buildPartial() {
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas result = new com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas(this);
int from_bitField0_ = bitField0_;
if (leakyBucketQuotasBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
leakyBucketQuotas_ = java.util.Collections.unmodifiableList(leakyBucketQuotas_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.leakyBucketQuotas_ = leakyBucketQuotas_;
} else {
result.leakyBucketQuotas_ = leakyBucketQuotasBuilder_.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.cms.YdbCms.SchemaOperationQuotas) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas other) {
if (other == com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance()) return this;
if (leakyBucketQuotasBuilder_ == null) {
if (!other.leakyBucketQuotas_.isEmpty()) {
if (leakyBucketQuotas_.isEmpty()) {
leakyBucketQuotas_ = other.leakyBucketQuotas_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLeakyBucketQuotasIsMutable();
leakyBucketQuotas_.addAll(other.leakyBucketQuotas_);
}
onChanged();
}
} else {
if (!other.leakyBucketQuotas_.isEmpty()) {
if (leakyBucketQuotasBuilder_.isEmpty()) {
leakyBucketQuotasBuilder_.dispose();
leakyBucketQuotasBuilder_ = null;
leakyBucketQuotas_ = other.leakyBucketQuotas_;
bitField0_ = (bitField0_ & ~0x00000001);
leakyBucketQuotasBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLeakyBucketQuotasFieldBuilder() : null;
} else {
leakyBucketQuotasBuilder_.addAllMessages(other.leakyBucketQuotas_);
}
}
}
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.cms.YdbCms.SchemaOperationQuotas parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List leakyBucketQuotas_ =
java.util.Collections.emptyList();
private void ensureLeakyBucketQuotasIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
leakyBucketQuotas_ = new java.util.ArrayList(leakyBucketQuotas_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder> leakyBucketQuotasBuilder_;
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public java.util.List getLeakyBucketQuotasList() {
if (leakyBucketQuotasBuilder_ == null) {
return java.util.Collections.unmodifiableList(leakyBucketQuotas_);
} else {
return leakyBucketQuotasBuilder_.getMessageList();
}
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public int getLeakyBucketQuotasCount() {
if (leakyBucketQuotasBuilder_ == null) {
return leakyBucketQuotas_.size();
} else {
return leakyBucketQuotasBuilder_.getCount();
}
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket getLeakyBucketQuotas(int index) {
if (leakyBucketQuotasBuilder_ == null) {
return leakyBucketQuotas_.get(index);
} else {
return leakyBucketQuotasBuilder_.getMessage(index);
}
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public Builder setLeakyBucketQuotas(
int index, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket value) {
if (leakyBucketQuotasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLeakyBucketQuotasIsMutable();
leakyBucketQuotas_.set(index, value);
onChanged();
} else {
leakyBucketQuotasBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public Builder setLeakyBucketQuotas(
int index, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder builderForValue) {
if (leakyBucketQuotasBuilder_ == null) {
ensureLeakyBucketQuotasIsMutable();
leakyBucketQuotas_.set(index, builderForValue.build());
onChanged();
} else {
leakyBucketQuotasBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public Builder addLeakyBucketQuotas(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket value) {
if (leakyBucketQuotasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLeakyBucketQuotasIsMutable();
leakyBucketQuotas_.add(value);
onChanged();
} else {
leakyBucketQuotasBuilder_.addMessage(value);
}
return this;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public Builder addLeakyBucketQuotas(
int index, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket value) {
if (leakyBucketQuotasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLeakyBucketQuotasIsMutable();
leakyBucketQuotas_.add(index, value);
onChanged();
} else {
leakyBucketQuotasBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public Builder addLeakyBucketQuotas(
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder builderForValue) {
if (leakyBucketQuotasBuilder_ == null) {
ensureLeakyBucketQuotasIsMutable();
leakyBucketQuotas_.add(builderForValue.build());
onChanged();
} else {
leakyBucketQuotasBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public Builder addLeakyBucketQuotas(
int index, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder builderForValue) {
if (leakyBucketQuotasBuilder_ == null) {
ensureLeakyBucketQuotasIsMutable();
leakyBucketQuotas_.add(index, builderForValue.build());
onChanged();
} else {
leakyBucketQuotasBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public Builder addAllLeakyBucketQuotas(
java.lang.Iterable extends com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket> values) {
if (leakyBucketQuotasBuilder_ == null) {
ensureLeakyBucketQuotasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, leakyBucketQuotas_);
onChanged();
} else {
leakyBucketQuotasBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public Builder clearLeakyBucketQuotas() {
if (leakyBucketQuotasBuilder_ == null) {
leakyBucketQuotas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
leakyBucketQuotasBuilder_.clear();
}
return this;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public Builder removeLeakyBucketQuotas(int index) {
if (leakyBucketQuotasBuilder_ == null) {
ensureLeakyBucketQuotasIsMutable();
leakyBucketQuotas_.remove(index);
onChanged();
} else {
leakyBucketQuotasBuilder_.remove(index);
}
return this;
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder getLeakyBucketQuotasBuilder(
int index) {
return getLeakyBucketQuotasFieldBuilder().getBuilder(index);
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder getLeakyBucketQuotasOrBuilder(
int index) {
if (leakyBucketQuotasBuilder_ == null) {
return leakyBucketQuotas_.get(index); } else {
return leakyBucketQuotasBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public java.util.List extends com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder>
getLeakyBucketQuotasOrBuilderList() {
if (leakyBucketQuotasBuilder_ != null) {
return leakyBucketQuotasBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(leakyBucketQuotas_);
}
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder addLeakyBucketQuotasBuilder() {
return getLeakyBucketQuotasFieldBuilder().addBuilder(
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.getDefaultInstance());
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder addLeakyBucketQuotasBuilder(
int index) {
return getLeakyBucketQuotasFieldBuilder().addBuilder(
index, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.getDefaultInstance());
}
/**
*
* Leaky bucket based quotas
*
*
* repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;
*/
public java.util.List
getLeakyBucketQuotasBuilderList() {
return getLeakyBucketQuotasFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder>
getLeakyBucketQuotasFieldBuilder() {
if (leakyBucketQuotasBuilder_ == null) {
leakyBucketQuotasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucket.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.LeakyBucketOrBuilder>(
leakyBucketQuotas_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
leakyBucketQuotas_ = null;
}
return leakyBucketQuotasBuilder_;
}
@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.Cms.SchemaOperationQuotas)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.SchemaOperationQuotas)
private static final com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas();
}
public static com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SchemaOperationQuotas parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SchemaOperationQuotas(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.cms.YdbCms.SchemaOperationQuotas getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DatabaseQuotasOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.DatabaseQuotas)
com.google.protobuf.MessageOrBuilder {
/**
*
* A maximum data size in bytes, new data will be rejected when exceeded
*
*
* uint64 data_size_hard_quota = 1;
* @return The dataSizeHardQuota.
*/
long getDataSizeHardQuota();
/**
*
* An optional size in bytes (lower than data_size_hard_quota). When data
* size becomes lower than this value new data ingestion is re-enabled
* again. This is useful to help avoid database from rapidly entering and
* exiting from the overloaded state.
*
*
* uint64 data_size_soft_quota = 2;
* @return The dataSizeSoftQuota.
*/
long getDataSizeSoftQuota();
/**
*
* A maximum count of shards in all data streams.
*
*
* uint64 data_stream_shards_quota = 3;
* @return The dataStreamShardsQuota.
*/
long getDataStreamShardsQuota();
/**
*
* A maximum storage that will be reserved for all data stream shards.
*
*
* uint64 data_stream_reserved_storage_quota = 5;
* @return The dataStreamReservedStorageQuota.
*/
long getDataStreamReservedStorageQuota();
/**
*
* A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
* Default is 1800 (15 minutes).
*
*
* uint32 ttl_min_run_internal_seconds = 4;
* @return The ttlMinRunInternalSeconds.
*/
int getTtlMinRunInternalSeconds();
}
/**
*
* A set of quotas for the database
*
*
* Protobuf type {@code Ydb.Cms.DatabaseQuotas}
*/
public static final class DatabaseQuotas extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.DatabaseQuotas)
DatabaseQuotasOrBuilder {
private static final long serialVersionUID = 0L;
// Use DatabaseQuotas.newBuilder() to construct.
private DatabaseQuotas(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DatabaseQuotas() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DatabaseQuotas();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DatabaseQuotas(
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: {
dataSizeHardQuota_ = input.readUInt64();
break;
}
case 16: {
dataSizeSoftQuota_ = input.readUInt64();
break;
}
case 24: {
dataStreamShardsQuota_ = input.readUInt64();
break;
}
case 32: {
ttlMinRunInternalSeconds_ = input.readUInt32();
break;
}
case 40: {
dataStreamReservedStorageQuota_ = 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.cms.YdbCms.internal_static_Ydb_Cms_DatabaseQuotas_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_DatabaseQuotas_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.class, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder.class);
}
public static final int DATA_SIZE_HARD_QUOTA_FIELD_NUMBER = 1;
private long dataSizeHardQuota_;
/**
*
* A maximum data size in bytes, new data will be rejected when exceeded
*
*
* uint64 data_size_hard_quota = 1;
* @return The dataSizeHardQuota.
*/
@java.lang.Override
public long getDataSizeHardQuota() {
return dataSizeHardQuota_;
}
public static final int DATA_SIZE_SOFT_QUOTA_FIELD_NUMBER = 2;
private long dataSizeSoftQuota_;
/**
*
* An optional size in bytes (lower than data_size_hard_quota). When data
* size becomes lower than this value new data ingestion is re-enabled
* again. This is useful to help avoid database from rapidly entering and
* exiting from the overloaded state.
*
*
* uint64 data_size_soft_quota = 2;
* @return The dataSizeSoftQuota.
*/
@java.lang.Override
public long getDataSizeSoftQuota() {
return dataSizeSoftQuota_;
}
public static final int DATA_STREAM_SHARDS_QUOTA_FIELD_NUMBER = 3;
private long dataStreamShardsQuota_;
/**
*
* A maximum count of shards in all data streams.
*
*
* uint64 data_stream_shards_quota = 3;
* @return The dataStreamShardsQuota.
*/
@java.lang.Override
public long getDataStreamShardsQuota() {
return dataStreamShardsQuota_;
}
public static final int DATA_STREAM_RESERVED_STORAGE_QUOTA_FIELD_NUMBER = 5;
private long dataStreamReservedStorageQuota_;
/**
*
* A maximum storage that will be reserved for all data stream shards.
*
*
* uint64 data_stream_reserved_storage_quota = 5;
* @return The dataStreamReservedStorageQuota.
*/
@java.lang.Override
public long getDataStreamReservedStorageQuota() {
return dataStreamReservedStorageQuota_;
}
public static final int TTL_MIN_RUN_INTERNAL_SECONDS_FIELD_NUMBER = 4;
private int ttlMinRunInternalSeconds_;
/**
*
* A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
* Default is 1800 (15 minutes).
*
*
* uint32 ttl_min_run_internal_seconds = 4;
* @return The ttlMinRunInternalSeconds.
*/
@java.lang.Override
public int getTtlMinRunInternalSeconds() {
return ttlMinRunInternalSeconds_;
}
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 (dataSizeHardQuota_ != 0L) {
output.writeUInt64(1, dataSizeHardQuota_);
}
if (dataSizeSoftQuota_ != 0L) {
output.writeUInt64(2, dataSizeSoftQuota_);
}
if (dataStreamShardsQuota_ != 0L) {
output.writeUInt64(3, dataStreamShardsQuota_);
}
if (ttlMinRunInternalSeconds_ != 0) {
output.writeUInt32(4, ttlMinRunInternalSeconds_);
}
if (dataStreamReservedStorageQuota_ != 0L) {
output.writeUInt64(5, dataStreamReservedStorageQuota_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dataSizeHardQuota_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, dataSizeHardQuota_);
}
if (dataSizeSoftQuota_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, dataSizeSoftQuota_);
}
if (dataStreamShardsQuota_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, dataStreamShardsQuota_);
}
if (ttlMinRunInternalSeconds_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, ttlMinRunInternalSeconds_);
}
if (dataStreamReservedStorageQuota_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, dataStreamReservedStorageQuota_);
}
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.cms.YdbCms.DatabaseQuotas)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.DatabaseQuotas other = (com.yandex.ydb.cms.YdbCms.DatabaseQuotas) obj;
if (getDataSizeHardQuota()
!= other.getDataSizeHardQuota()) return false;
if (getDataSizeSoftQuota()
!= other.getDataSizeSoftQuota()) return false;
if (getDataStreamShardsQuota()
!= other.getDataStreamShardsQuota()) return false;
if (getDataStreamReservedStorageQuota()
!= other.getDataStreamReservedStorageQuota()) return false;
if (getTtlMinRunInternalSeconds()
!= other.getTtlMinRunInternalSeconds()) 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) + DATA_SIZE_HARD_QUOTA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataSizeHardQuota());
hash = (37 * hash) + DATA_SIZE_SOFT_QUOTA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataSizeSoftQuota());
hash = (37 * hash) + DATA_STREAM_SHARDS_QUOTA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataStreamShardsQuota());
hash = (37 * hash) + DATA_STREAM_RESERVED_STORAGE_QUOTA_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataStreamReservedStorageQuota());
hash = (37 * hash) + TTL_MIN_RUN_INTERNAL_SECONDS_FIELD_NUMBER;
hash = (53 * hash) + getTtlMinRunInternalSeconds();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.DatabaseQuotas parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseQuotas 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.cms.YdbCms.DatabaseQuotas parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseQuotas 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.cms.YdbCms.DatabaseQuotas parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseQuotas parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseQuotas parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseQuotas 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.cms.YdbCms.DatabaseQuotas parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseQuotas 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.cms.YdbCms.DatabaseQuotas parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.DatabaseQuotas 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.cms.YdbCms.DatabaseQuotas 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;
}
/**
*
* A set of quotas for the database
*
*
* Protobuf type {@code Ydb.Cms.DatabaseQuotas}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.DatabaseQuotas)
com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_DatabaseQuotas_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_DatabaseQuotas_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.class, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.DatabaseQuotas.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();
dataSizeHardQuota_ = 0L;
dataSizeSoftQuota_ = 0L;
dataStreamShardsQuota_ = 0L;
dataStreamReservedStorageQuota_ = 0L;
ttlMinRunInternalSeconds_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_DatabaseQuotas_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas build() {
com.yandex.ydb.cms.YdbCms.DatabaseQuotas result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas buildPartial() {
com.yandex.ydb.cms.YdbCms.DatabaseQuotas result = new com.yandex.ydb.cms.YdbCms.DatabaseQuotas(this);
result.dataSizeHardQuota_ = dataSizeHardQuota_;
result.dataSizeSoftQuota_ = dataSizeSoftQuota_;
result.dataStreamShardsQuota_ = dataStreamShardsQuota_;
result.dataStreamReservedStorageQuota_ = dataStreamReservedStorageQuota_;
result.ttlMinRunInternalSeconds_ = ttlMinRunInternalSeconds_;
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.cms.YdbCms.DatabaseQuotas) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.DatabaseQuotas)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.DatabaseQuotas other) {
if (other == com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance()) return this;
if (other.getDataSizeHardQuota() != 0L) {
setDataSizeHardQuota(other.getDataSizeHardQuota());
}
if (other.getDataSizeSoftQuota() != 0L) {
setDataSizeSoftQuota(other.getDataSizeSoftQuota());
}
if (other.getDataStreamShardsQuota() != 0L) {
setDataStreamShardsQuota(other.getDataStreamShardsQuota());
}
if (other.getDataStreamReservedStorageQuota() != 0L) {
setDataStreamReservedStorageQuota(other.getDataStreamReservedStorageQuota());
}
if (other.getTtlMinRunInternalSeconds() != 0) {
setTtlMinRunInternalSeconds(other.getTtlMinRunInternalSeconds());
}
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.cms.YdbCms.DatabaseQuotas parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.DatabaseQuotas) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long dataSizeHardQuota_ ;
/**
*
* A maximum data size in bytes, new data will be rejected when exceeded
*
*
* uint64 data_size_hard_quota = 1;
* @return The dataSizeHardQuota.
*/
@java.lang.Override
public long getDataSizeHardQuota() {
return dataSizeHardQuota_;
}
/**
*
* A maximum data size in bytes, new data will be rejected when exceeded
*
*
* uint64 data_size_hard_quota = 1;
* @param value The dataSizeHardQuota to set.
* @return This builder for chaining.
*/
public Builder setDataSizeHardQuota(long value) {
dataSizeHardQuota_ = value;
onChanged();
return this;
}
/**
*
* A maximum data size in bytes, new data will be rejected when exceeded
*
*
* uint64 data_size_hard_quota = 1;
* @return This builder for chaining.
*/
public Builder clearDataSizeHardQuota() {
dataSizeHardQuota_ = 0L;
onChanged();
return this;
}
private long dataSizeSoftQuota_ ;
/**
*
* An optional size in bytes (lower than data_size_hard_quota). When data
* size becomes lower than this value new data ingestion is re-enabled
* again. This is useful to help avoid database from rapidly entering and
* exiting from the overloaded state.
*
*
* uint64 data_size_soft_quota = 2;
* @return The dataSizeSoftQuota.
*/
@java.lang.Override
public long getDataSizeSoftQuota() {
return dataSizeSoftQuota_;
}
/**
*
* An optional size in bytes (lower than data_size_hard_quota). When data
* size becomes lower than this value new data ingestion is re-enabled
* again. This is useful to help avoid database from rapidly entering and
* exiting from the overloaded state.
*
*
* uint64 data_size_soft_quota = 2;
* @param value The dataSizeSoftQuota to set.
* @return This builder for chaining.
*/
public Builder setDataSizeSoftQuota(long value) {
dataSizeSoftQuota_ = value;
onChanged();
return this;
}
/**
*
* An optional size in bytes (lower than data_size_hard_quota). When data
* size becomes lower than this value new data ingestion is re-enabled
* again. This is useful to help avoid database from rapidly entering and
* exiting from the overloaded state.
*
*
* uint64 data_size_soft_quota = 2;
* @return This builder for chaining.
*/
public Builder clearDataSizeSoftQuota() {
dataSizeSoftQuota_ = 0L;
onChanged();
return this;
}
private long dataStreamShardsQuota_ ;
/**
*
* A maximum count of shards in all data streams.
*
*
* uint64 data_stream_shards_quota = 3;
* @return The dataStreamShardsQuota.
*/
@java.lang.Override
public long getDataStreamShardsQuota() {
return dataStreamShardsQuota_;
}
/**
*
* A maximum count of shards in all data streams.
*
*
* uint64 data_stream_shards_quota = 3;
* @param value The dataStreamShardsQuota to set.
* @return This builder for chaining.
*/
public Builder setDataStreamShardsQuota(long value) {
dataStreamShardsQuota_ = value;
onChanged();
return this;
}
/**
*
* A maximum count of shards in all data streams.
*
*
* uint64 data_stream_shards_quota = 3;
* @return This builder for chaining.
*/
public Builder clearDataStreamShardsQuota() {
dataStreamShardsQuota_ = 0L;
onChanged();
return this;
}
private long dataStreamReservedStorageQuota_ ;
/**
*
* A maximum storage that will be reserved for all data stream shards.
*
*
* uint64 data_stream_reserved_storage_quota = 5;
* @return The dataStreamReservedStorageQuota.
*/
@java.lang.Override
public long getDataStreamReservedStorageQuota() {
return dataStreamReservedStorageQuota_;
}
/**
*
* A maximum storage that will be reserved for all data stream shards.
*
*
* uint64 data_stream_reserved_storage_quota = 5;
* @param value The dataStreamReservedStorageQuota to set.
* @return This builder for chaining.
*/
public Builder setDataStreamReservedStorageQuota(long value) {
dataStreamReservedStorageQuota_ = value;
onChanged();
return this;
}
/**
*
* A maximum storage that will be reserved for all data stream shards.
*
*
* uint64 data_stream_reserved_storage_quota = 5;
* @return This builder for chaining.
*/
public Builder clearDataStreamReservedStorageQuota() {
dataStreamReservedStorageQuota_ = 0L;
onChanged();
return this;
}
private int ttlMinRunInternalSeconds_ ;
/**
*
* A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
* Default is 1800 (15 minutes).
*
*
* uint32 ttl_min_run_internal_seconds = 4;
* @return The ttlMinRunInternalSeconds.
*/
@java.lang.Override
public int getTtlMinRunInternalSeconds() {
return ttlMinRunInternalSeconds_;
}
/**
*
* A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
* Default is 1800 (15 minutes).
*
*
* uint32 ttl_min_run_internal_seconds = 4;
* @param value The ttlMinRunInternalSeconds to set.
* @return This builder for chaining.
*/
public Builder setTtlMinRunInternalSeconds(int value) {
ttlMinRunInternalSeconds_ = value;
onChanged();
return this;
}
/**
*
* A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
* Default is 1800 (15 minutes).
*
*
* uint32 ttl_min_run_internal_seconds = 4;
* @return This builder for chaining.
*/
public Builder clearTtlMinRunInternalSeconds() {
ttlMinRunInternalSeconds_ = 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.Cms.DatabaseQuotas)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.DatabaseQuotas)
private static final com.yandex.ydb.cms.YdbCms.DatabaseQuotas DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.DatabaseQuotas();
}
public static com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DatabaseQuotas parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DatabaseQuotas(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.cms.YdbCms.DatabaseQuotas getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateDatabaseRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.CreateDatabaseRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
*
* Required. Full path to database's home dir. Used as database ID.
*
*
* string path = 2;
* @return The path.
*/
java.lang.String getPath();
/**
*
* Required. Full path to database's home dir. Used as database ID.
*
*
* string path = 2;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
* @return The resources.
*/
com.yandex.ydb.cms.YdbCms.Resources getResources();
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
*/
com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getResourcesOrBuilder();
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
* @return Whether the sharedResources field is set.
*/
boolean hasSharedResources();
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
* @return The sharedResources.
*/
com.yandex.ydb.cms.YdbCms.Resources getSharedResources();
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
*/
com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getSharedResourcesOrBuilder();
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
* @return Whether the serverlessResources field is set.
*/
boolean hasServerlessResources();
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
* @return The serverlessResources.
*/
com.yandex.ydb.cms.YdbCms.ServerlessResources getServerlessResources();
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
*/
com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder getServerlessResourcesOrBuilder();
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
* @return Whether the options field is set.
*/
boolean hasOptions();
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
* @return The options.
*/
com.yandex.ydb.cms.YdbCms.DatabaseOptions getOptions();
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
*/
com.yandex.ydb.cms.YdbCms.DatabaseOptionsOrBuilder getOptionsOrBuilder();
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
int getAttributesCount();
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
boolean containsAttributes(
java.lang.String key);
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAttributes();
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
java.util.Map
getAttributesMap();
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
java.lang.String getAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
java.lang.String getAttributesOrThrow(
java.lang.String key);
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
* @return Whether the schemaOperationQuotas field is set.
*/
boolean hasSchemaOperationQuotas();
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
* @return The schemaOperationQuotas.
*/
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getSchemaOperationQuotas();
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
*/
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder getSchemaOperationQuotasOrBuilder();
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 9;
* @return The idempotencyKey.
*/
java.lang.String getIdempotencyKey();
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 9;
* @return The bytes for idempotencyKey.
*/
com.google.protobuf.ByteString
getIdempotencyKeyBytes();
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return Whether the databaseQuotas field is set.
*/
boolean hasDatabaseQuotas();
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return The databaseQuotas.
*/
com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDatabaseQuotas();
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder getDatabaseQuotasOrBuilder();
public com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest.ResourcesKindCase getResourcesKindCase();
}
/**
*
* Request to create a new database. For successfull creation
* specified database shouldn't exist. At least one storage
* unit should be requested for the database.
*
*
* Protobuf type {@code Ydb.Cms.CreateDatabaseRequest}
*/
public static final class CreateDatabaseRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.CreateDatabaseRequest)
CreateDatabaseRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateDatabaseRequest.newBuilder() to construct.
private CreateDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateDatabaseRequest() {
path_ = "";
idempotencyKey_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateDatabaseRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateDatabaseRequest(
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: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 26: {
com.yandex.ydb.cms.YdbCms.Resources.Builder subBuilder = null;
if (resourcesKindCase_ == 3) {
subBuilder = ((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_).toBuilder();
}
resourcesKind_ =
input.readMessage(com.yandex.ydb.cms.YdbCms.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
resourcesKind_ = subBuilder.buildPartial();
}
resourcesKindCase_ = 3;
break;
}
case 34: {
com.yandex.ydb.cms.YdbCms.DatabaseOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(com.yandex.ydb.cms.YdbCms.DatabaseOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
attributes_ = com.google.protobuf.MapField.newMapField(
AttributesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
attributes__ = input.readMessage(
AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
attributes_.getMutableMap().put(
attributes__.getKey(), attributes__.getValue());
break;
}
case 50: {
com.yandex.ydb.cms.YdbCms.Resources.Builder subBuilder = null;
if (resourcesKindCase_ == 6) {
subBuilder = ((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_).toBuilder();
}
resourcesKind_ =
input.readMessage(com.yandex.ydb.cms.YdbCms.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
resourcesKind_ = subBuilder.buildPartial();
}
resourcesKindCase_ = 6;
break;
}
case 58: {
com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder subBuilder = null;
if (resourcesKindCase_ == 7) {
subBuilder = ((com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_).toBuilder();
}
resourcesKind_ =
input.readMessage(com.yandex.ydb.cms.YdbCms.ServerlessResources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_);
resourcesKind_ = subBuilder.buildPartial();
}
resourcesKindCase_ = 7;
break;
}
case 66: {
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder subBuilder = null;
if (schemaOperationQuotas_ != null) {
subBuilder = schemaOperationQuotas_.toBuilder();
}
schemaOperationQuotas_ = input.readMessage(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schemaOperationQuotas_);
schemaOperationQuotas_ = subBuilder.buildPartial();
}
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
idempotencyKey_ = s;
break;
}
case 82: {
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder subBuilder = null;
if (databaseQuotas_ != null) {
subBuilder = databaseQuotas_.toBuilder();
}
databaseQuotas_ = input.readMessage(com.yandex.ydb.cms.YdbCms.DatabaseQuotas.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(databaseQuotas_);
databaseQuotas_ = 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.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest.class, com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest.Builder.class);
}
private int resourcesKindCase_ = 0;
private java.lang.Object resourcesKind_;
public enum ResourcesKindCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
RESOURCES(3),
SHARED_RESOURCES(6),
SERVERLESS_RESOURCES(7),
RESOURCESKIND_NOT_SET(0);
private final int value;
private ResourcesKindCase(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 ResourcesKindCase valueOf(int value) {
return forNumber(value);
}
public static ResourcesKindCase forNumber(int value) {
switch (value) {
case 3: return RESOURCES;
case 6: return SHARED_RESOURCES;
case 7: return SERVERLESS_RESOURCES;
case 0: return RESOURCESKIND_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResourcesKindCase
getResourcesKindCase() {
return ResourcesKindCase.forNumber(
resourcesKindCase_);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
public static final int PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
*
* Required. Full path to database's home dir. Used as database ID.
*
*
* string path = 2;
* @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;
}
}
/**
*
* Required. Full path to database's home dir. Used as database ID.
*
*
* string path = 2;
* @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 RESOURCES_FIELD_NUMBER = 3;
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resourcesKindCase_ == 3;
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
* @return The resources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getResources() {
if (resourcesKindCase_ == 3) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesKindCase_ == 3) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
public static final int SHARED_RESOURCES_FIELD_NUMBER = 6;
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
* @return Whether the sharedResources field is set.
*/
@java.lang.Override
public boolean hasSharedResources() {
return resourcesKindCase_ == 6;
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
* @return The sharedResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getSharedResources() {
if (resourcesKindCase_ == 6) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getSharedResourcesOrBuilder() {
if (resourcesKindCase_ == 6) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
public static final int SERVERLESS_RESOURCES_FIELD_NUMBER = 7;
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
* @return Whether the serverlessResources field is set.
*/
@java.lang.Override
public boolean hasServerlessResources() {
return resourcesKindCase_ == 7;
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
* @return The serverlessResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResources getServerlessResources() {
if (resourcesKindCase_ == 7) {
return (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder getServerlessResourcesOrBuilder() {
if (resourcesKindCase_ == 7) {
return (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
public static final int OPTIONS_FIELD_NUMBER = 4;
private com.yandex.ydb.cms.YdbCms.DatabaseOptions options_;
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
* @return Whether the options field is set.
*/
@java.lang.Override
public boolean hasOptions() {
return options_ != null;
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
* @return The options.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseOptions getOptions() {
return options_ == null ? com.yandex.ydb.cms.YdbCms.DatabaseOptions.getDefaultInstance() : options_;
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
public static final int ATTRIBUTES_FIELD_NUMBER = 5;
private static final class AttributesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseRequest_AttributesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> attributes_;
private com.google.protobuf.MapField
internalGetAttributes() {
if (attributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
return attributes_;
}
public int getAttributesCount() {
return internalGetAttributes().getMap().size();
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return internalGetAttributes().getMap();
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
@java.lang.Override
public java.lang.String getAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SCHEMA_OPERATION_QUOTAS_FIELD_NUMBER = 8;
private com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas schemaOperationQuotas_;
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
* @return Whether the schemaOperationQuotas field is set.
*/
@java.lang.Override
public boolean hasSchemaOperationQuotas() {
return schemaOperationQuotas_ != null;
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
* @return The schemaOperationQuotas.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getSchemaOperationQuotas() {
return schemaOperationQuotas_ == null ? com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance() : schemaOperationQuotas_;
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder getSchemaOperationQuotasOrBuilder() {
return getSchemaOperationQuotas();
}
public static final int IDEMPOTENCY_KEY_FIELD_NUMBER = 9;
private volatile java.lang.Object idempotencyKey_;
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 9;
* @return The idempotencyKey.
*/
@java.lang.Override
public java.lang.String getIdempotencyKey() {
java.lang.Object ref = idempotencyKey_;
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();
idempotencyKey_ = s;
return s;
}
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 9;
* @return The bytes for idempotencyKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdempotencyKeyBytes() {
java.lang.Object ref = idempotencyKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idempotencyKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATABASE_QUOTAS_FIELD_NUMBER = 10;
private com.yandex.ydb.cms.YdbCms.DatabaseQuotas databaseQuotas_;
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return Whether the databaseQuotas field is set.
*/
@java.lang.Override
public boolean hasDatabaseQuotas() {
return databaseQuotas_ != null;
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return The databaseQuotas.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDatabaseQuotas() {
return databaseQuotas_ == null ? com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance() : databaseQuotas_;
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder getDatabaseQuotasOrBuilder() {
return getDatabaseQuotas();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
if (!getPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
if (resourcesKindCase_ == 3) {
output.writeMessage(3, (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
}
if (options_ != null) {
output.writeMessage(4, getOptions());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAttributes(),
AttributesDefaultEntryHolder.defaultEntry,
5);
if (resourcesKindCase_ == 6) {
output.writeMessage(6, (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
}
if (resourcesKindCase_ == 7) {
output.writeMessage(7, (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_);
}
if (schemaOperationQuotas_ != null) {
output.writeMessage(8, getSchemaOperationQuotas());
}
if (!getIdempotencyKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, idempotencyKey_);
}
if (databaseQuotas_ != null) {
output.writeMessage(10, getDatabaseQuotas());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
if (!getPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
if (resourcesKindCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getOptions());
}
for (java.util.Map.Entry entry
: internalGetAttributes().getMap().entrySet()) {
com.google.protobuf.MapEntry
attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, attributes__);
}
if (resourcesKindCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
}
if (resourcesKindCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_);
}
if (schemaOperationQuotas_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getSchemaOperationQuotas());
}
if (!getIdempotencyKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, idempotencyKey_);
}
if (databaseQuotas_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getDatabaseQuotas());
}
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.cms.YdbCms.CreateDatabaseRequest)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest other = (com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!getPath()
.equals(other.getPath())) return false;
if (hasOptions() != other.hasOptions()) return false;
if (hasOptions()) {
if (!getOptions()
.equals(other.getOptions())) return false;
}
if (!internalGetAttributes().equals(
other.internalGetAttributes())) return false;
if (hasSchemaOperationQuotas() != other.hasSchemaOperationQuotas()) return false;
if (hasSchemaOperationQuotas()) {
if (!getSchemaOperationQuotas()
.equals(other.getSchemaOperationQuotas())) return false;
}
if (!getIdempotencyKey()
.equals(other.getIdempotencyKey())) return false;
if (hasDatabaseQuotas() != other.hasDatabaseQuotas()) return false;
if (hasDatabaseQuotas()) {
if (!getDatabaseQuotas()
.equals(other.getDatabaseQuotas())) return false;
}
if (!getResourcesKindCase().equals(other.getResourcesKindCase())) return false;
switch (resourcesKindCase_) {
case 3:
if (!getResources()
.equals(other.getResources())) return false;
break;
case 6:
if (!getSharedResources()
.equals(other.getSharedResources())) return false;
break;
case 7:
if (!getServerlessResources()
.equals(other.getServerlessResources())) 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();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
if (!internalGetAttributes().getMap().isEmpty()) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + internalGetAttributes().hashCode();
}
if (hasSchemaOperationQuotas()) {
hash = (37 * hash) + SCHEMA_OPERATION_QUOTAS_FIELD_NUMBER;
hash = (53 * hash) + getSchemaOperationQuotas().hashCode();
}
hash = (37 * hash) + IDEMPOTENCY_KEY_FIELD_NUMBER;
hash = (53 * hash) + getIdempotencyKey().hashCode();
if (hasDatabaseQuotas()) {
hash = (37 * hash) + DATABASE_QUOTAS_FIELD_NUMBER;
hash = (53 * hash) + getDatabaseQuotas().hashCode();
}
switch (resourcesKindCase_) {
case 3:
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
break;
case 6:
hash = (37 * hash) + SHARED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getSharedResources().hashCode();
break;
case 7:
hash = (37 * hash) + SERVERLESS_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getServerlessResources().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest 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.cms.YdbCms.CreateDatabaseRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest 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.cms.YdbCms.CreateDatabaseRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest 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.cms.YdbCms.CreateDatabaseRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest 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.cms.YdbCms.CreateDatabaseRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest 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.cms.YdbCms.CreateDatabaseRequest 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;
}
/**
*
* Request to create a new database. For successfull creation
* specified database shouldn't exist. At least one storage
* unit should be requested for the database.
*
*
* Protobuf type {@code Ydb.Cms.CreateDatabaseRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.CreateDatabaseRequest)
com.yandex.ydb.cms.YdbCms.CreateDatabaseRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest.class, com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
path_ = "";
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
internalGetMutableAttributes().clear();
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotas_ = null;
} else {
schemaOperationQuotas_ = null;
schemaOperationQuotasBuilder_ = null;
}
idempotencyKey_ = "";
if (databaseQuotasBuilder_ == null) {
databaseQuotas_ = null;
} else {
databaseQuotas_ = null;
databaseQuotasBuilder_ = null;
}
resourcesKindCase_ = 0;
resourcesKind_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest build() {
com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest buildPartial() {
com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest result = new com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest(this);
int from_bitField0_ = bitField0_;
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
result.path_ = path_;
if (resourcesKindCase_ == 3) {
if (resourcesBuilder_ == null) {
result.resourcesKind_ = resourcesKind_;
} else {
result.resourcesKind_ = resourcesBuilder_.build();
}
}
if (resourcesKindCase_ == 6) {
if (sharedResourcesBuilder_ == null) {
result.resourcesKind_ = resourcesKind_;
} else {
result.resourcesKind_ = sharedResourcesBuilder_.build();
}
}
if (resourcesKindCase_ == 7) {
if (serverlessResourcesBuilder_ == null) {
result.resourcesKind_ = resourcesKind_;
} else {
result.resourcesKind_ = serverlessResourcesBuilder_.build();
}
}
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.build();
}
result.attributes_ = internalGetAttributes();
result.attributes_.makeImmutable();
if (schemaOperationQuotasBuilder_ == null) {
result.schemaOperationQuotas_ = schemaOperationQuotas_;
} else {
result.schemaOperationQuotas_ = schemaOperationQuotasBuilder_.build();
}
result.idempotencyKey_ = idempotencyKey_;
if (databaseQuotasBuilder_ == null) {
result.databaseQuotas_ = databaseQuotas_;
} else {
result.databaseQuotas_ = databaseQuotasBuilder_.build();
}
result.resourcesKindCase_ = resourcesKindCase_;
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.cms.YdbCms.CreateDatabaseRequest) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest other) {
if (other == com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
internalGetMutableAttributes().mergeFrom(
other.internalGetAttributes());
if (other.hasSchemaOperationQuotas()) {
mergeSchemaOperationQuotas(other.getSchemaOperationQuotas());
}
if (!other.getIdempotencyKey().isEmpty()) {
idempotencyKey_ = other.idempotencyKey_;
onChanged();
}
if (other.hasDatabaseQuotas()) {
mergeDatabaseQuotas(other.getDatabaseQuotas());
}
switch (other.getResourcesKindCase()) {
case RESOURCES: {
mergeResources(other.getResources());
break;
}
case SHARED_RESOURCES: {
mergeSharedResources(other.getSharedResources());
break;
}
case SERVERLESS_RESOURCES: {
mergeServerlessResources(other.getServerlessResources());
break;
}
case RESOURCESKIND_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int resourcesKindCase_ = 0;
private java.lang.Object resourcesKind_;
public ResourcesKindCase
getResourcesKindCase() {
return ResourcesKindCase.forNumber(
resourcesKindCase_);
}
public Builder clearResourcesKind() {
resourcesKindCase_ = 0;
resourcesKind_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
private java.lang.Object path_ = "";
/**
*
* Required. Full path to database's home dir. Used as database ID.
*
*
* string path = 2;
* @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;
}
}
/**
*
* Required. Full path to database's home dir. Used as database ID.
*
*
* string path = 2;
* @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;
}
}
/**
*
* Required. Full path to database's home dir. Used as database ID.
*
*
* string path = 2;
* @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;
}
/**
*
* Required. Full path to database's home dir. Used as database ID.
*
*
* string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Required. Full path to database's home dir. Used as database ID.
*
*
* string path = 2;
* @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.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder> resourcesBuilder_;
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resourcesKindCase_ == 3;
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
* @return The resources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getResources() {
if (resourcesBuilder_ == null) {
if (resourcesKindCase_ == 3) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
} else {
if (resourcesKindCase_ == 3) {
return resourcesBuilder_.getMessage();
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
*/
public Builder setResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourcesKind_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 3;
return this;
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
*/
public Builder setResources(
com.yandex.ydb.cms.YdbCms.Resources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resourcesKind_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
resourcesKindCase_ = 3;
return this;
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
*/
public Builder mergeResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (resourcesBuilder_ == null) {
if (resourcesKindCase_ == 3 &&
resourcesKind_ != com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance()) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.Resources.newBuilder((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_)
.mergeFrom(value).buildPartial();
} else {
resourcesKind_ = value;
}
onChanged();
} else {
if (resourcesKindCase_ == 3) {
resourcesBuilder_.mergeFrom(value);
}
resourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 3;
return this;
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
if (resourcesKindCase_ == 3) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
onChanged();
}
} else {
if (resourcesKindCase_ == 3) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
}
resourcesBuilder_.clear();
}
return this;
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
*/
public com.yandex.ydb.cms.YdbCms.Resources.Builder getResourcesBuilder() {
return getResourcesFieldBuilder().getBuilder();
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getResourcesOrBuilder() {
if ((resourcesKindCase_ == 3) && (resourcesBuilder_ != null)) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
if (resourcesKindCase_ == 3) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
}
/**
*
* Resources to allocate for database by CMS.
*
*
* .Ydb.Cms.Resources resources = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
if (!(resourcesKindCase_ == 3)) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>(
(com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_,
getParentForChildren(),
isClean());
resourcesKind_ = null;
}
resourcesKindCase_ = 3;
onChanged();;
return resourcesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder> sharedResourcesBuilder_;
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
* @return Whether the sharedResources field is set.
*/
@java.lang.Override
public boolean hasSharedResources() {
return resourcesKindCase_ == 6;
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
* @return The sharedResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getSharedResources() {
if (sharedResourcesBuilder_ == null) {
if (resourcesKindCase_ == 6) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
} else {
if (resourcesKindCase_ == 6) {
return sharedResourcesBuilder_.getMessage();
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
*/
public Builder setSharedResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (sharedResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourcesKind_ = value;
onChanged();
} else {
sharedResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 6;
return this;
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
*/
public Builder setSharedResources(
com.yandex.ydb.cms.YdbCms.Resources.Builder builderForValue) {
if (sharedResourcesBuilder_ == null) {
resourcesKind_ = builderForValue.build();
onChanged();
} else {
sharedResourcesBuilder_.setMessage(builderForValue.build());
}
resourcesKindCase_ = 6;
return this;
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
*/
public Builder mergeSharedResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (sharedResourcesBuilder_ == null) {
if (resourcesKindCase_ == 6 &&
resourcesKind_ != com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance()) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.Resources.newBuilder((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_)
.mergeFrom(value).buildPartial();
} else {
resourcesKind_ = value;
}
onChanged();
} else {
if (resourcesKindCase_ == 6) {
sharedResourcesBuilder_.mergeFrom(value);
}
sharedResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 6;
return this;
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
*/
public Builder clearSharedResources() {
if (sharedResourcesBuilder_ == null) {
if (resourcesKindCase_ == 6) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
onChanged();
}
} else {
if (resourcesKindCase_ == 6) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
}
sharedResourcesBuilder_.clear();
}
return this;
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
*/
public com.yandex.ydb.cms.YdbCms.Resources.Builder getSharedResourcesBuilder() {
return getSharedResourcesFieldBuilder().getBuilder();
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getSharedResourcesOrBuilder() {
if ((resourcesKindCase_ == 6) && (sharedResourcesBuilder_ != null)) {
return sharedResourcesBuilder_.getMessageOrBuilder();
} else {
if (resourcesKindCase_ == 6) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
}
/**
*
* Shared resources can be used by serverless databases.
*
*
* .Ydb.Cms.Resources shared_resources = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>
getSharedResourcesFieldBuilder() {
if (sharedResourcesBuilder_ == null) {
if (!(resourcesKindCase_ == 6)) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
sharedResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>(
(com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_,
getParentForChildren(),
isClean());
resourcesKind_ = null;
}
resourcesKindCase_ = 6;
onChanged();;
return sharedResourcesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ServerlessResources, com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder, com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder> serverlessResourcesBuilder_;
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
* @return Whether the serverlessResources field is set.
*/
@java.lang.Override
public boolean hasServerlessResources() {
return resourcesKindCase_ == 7;
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
* @return The serverlessResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResources getServerlessResources() {
if (serverlessResourcesBuilder_ == null) {
if (resourcesKindCase_ == 7) {
return (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
} else {
if (resourcesKindCase_ == 7) {
return serverlessResourcesBuilder_.getMessage();
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
*/
public Builder setServerlessResources(com.yandex.ydb.cms.YdbCms.ServerlessResources value) {
if (serverlessResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourcesKind_ = value;
onChanged();
} else {
serverlessResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 7;
return this;
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
*/
public Builder setServerlessResources(
com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder builderForValue) {
if (serverlessResourcesBuilder_ == null) {
resourcesKind_ = builderForValue.build();
onChanged();
} else {
serverlessResourcesBuilder_.setMessage(builderForValue.build());
}
resourcesKindCase_ = 7;
return this;
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
*/
public Builder mergeServerlessResources(com.yandex.ydb.cms.YdbCms.ServerlessResources value) {
if (serverlessResourcesBuilder_ == null) {
if (resourcesKindCase_ == 7 &&
resourcesKind_ != com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance()) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.ServerlessResources.newBuilder((com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_)
.mergeFrom(value).buildPartial();
} else {
resourcesKind_ = value;
}
onChanged();
} else {
if (resourcesKindCase_ == 7) {
serverlessResourcesBuilder_.mergeFrom(value);
}
serverlessResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 7;
return this;
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
*/
public Builder clearServerlessResources() {
if (serverlessResourcesBuilder_ == null) {
if (resourcesKindCase_ == 7) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
onChanged();
}
} else {
if (resourcesKindCase_ == 7) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
}
serverlessResourcesBuilder_.clear();
}
return this;
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
*/
public com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder getServerlessResourcesBuilder() {
return getServerlessResourcesFieldBuilder().getBuilder();
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder getServerlessResourcesOrBuilder() {
if ((resourcesKindCase_ == 7) && (serverlessResourcesBuilder_ != null)) {
return serverlessResourcesBuilder_.getMessageOrBuilder();
} else {
if (resourcesKindCase_ == 7) {
return (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
}
/**
*
* If specified, the created database will be "serverless".
*
*
* .Ydb.Cms.ServerlessResources serverless_resources = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ServerlessResources, com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder, com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder>
getServerlessResourcesFieldBuilder() {
if (serverlessResourcesBuilder_ == null) {
if (!(resourcesKindCase_ == 7)) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
serverlessResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ServerlessResources, com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder, com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder>(
(com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_,
getParentForChildren(),
isClean());
resourcesKind_ = null;
}
resourcesKindCase_ = 7;
onChanged();;
return serverlessResourcesBuilder_;
}
private com.yandex.ydb.cms.YdbCms.DatabaseOptions options_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseOptions, com.yandex.ydb.cms.YdbCms.DatabaseOptions.Builder, com.yandex.ydb.cms.YdbCms.DatabaseOptionsOrBuilder> optionsBuilder_;
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
* @return Whether the options field is set.
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
* @return The options.
*/
public com.yandex.ydb.cms.YdbCms.DatabaseOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? com.yandex.ydb.cms.YdbCms.DatabaseOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
*/
public Builder setOptions(com.yandex.ydb.cms.YdbCms.DatabaseOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
*/
public Builder setOptions(
com.yandex.ydb.cms.YdbCms.DatabaseOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
*/
public Builder mergeOptions(com.yandex.ydb.cms.YdbCms.DatabaseOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
com.yandex.ydb.cms.YdbCms.DatabaseOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
*/
public com.yandex.ydb.cms.YdbCms.DatabaseOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
*/
public com.yandex.ydb.cms.YdbCms.DatabaseOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
com.yandex.ydb.cms.YdbCms.DatabaseOptions.getDefaultInstance() : options_;
}
}
/**
*
* Additional database options.
*
*
* .Ydb.Cms.DatabaseOptions options = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseOptions, com.yandex.ydb.cms.YdbCms.DatabaseOptions.Builder, com.yandex.ydb.cms.YdbCms.DatabaseOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseOptions, com.yandex.ydb.cms.YdbCms.DatabaseOptions.Builder, com.yandex.ydb.cms.YdbCms.DatabaseOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> attributes_;
private com.google.protobuf.MapField
internalGetAttributes() {
if (attributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
return attributes_;
}
private com.google.protobuf.MapField
internalGetMutableAttributes() {
onChanged();;
if (attributes_ == null) {
attributes_ = com.google.protobuf.MapField.newMapField(
AttributesDefaultEntryHolder.defaultEntry);
}
if (!attributes_.isMutable()) {
attributes_ = attributes_.copy();
}
return attributes_;
}
public int getAttributesCount() {
return internalGetAttributes().getMap().size();
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
@java.lang.Override
public boolean containsAttributes(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAttributes() {
return getAttributesMap();
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
@java.lang.Override
public java.util.Map getAttributesMap() {
return internalGetAttributes().getMap();
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
@java.lang.Override
public java.lang.String getAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
@java.lang.Override
public java.lang.String getAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAttributes() {
internalGetMutableAttributes().getMutableMap()
.clear();
return this;
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
public Builder removeAttributes(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAttributes().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAttributes() {
return internalGetMutableAttributes().getMutableMap();
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
public Builder putAttributes(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAttributes().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Attach attributes to database.
*
*
* map<string, string> attributes = 5;
*/
public Builder putAllAttributes(
java.util.Map values) {
internalGetMutableAttributes().getMutableMap()
.putAll(values);
return this;
}
private com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas schemaOperationQuotas_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder> schemaOperationQuotasBuilder_;
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
* @return Whether the schemaOperationQuotas field is set.
*/
public boolean hasSchemaOperationQuotas() {
return schemaOperationQuotasBuilder_ != null || schemaOperationQuotas_ != null;
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
* @return The schemaOperationQuotas.
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getSchemaOperationQuotas() {
if (schemaOperationQuotasBuilder_ == null) {
return schemaOperationQuotas_ == null ? com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance() : schemaOperationQuotas_;
} else {
return schemaOperationQuotasBuilder_.getMessage();
}
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
*/
public Builder setSchemaOperationQuotas(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas value) {
if (schemaOperationQuotasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schemaOperationQuotas_ = value;
onChanged();
} else {
schemaOperationQuotasBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
*/
public Builder setSchemaOperationQuotas(
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder builderForValue) {
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotas_ = builderForValue.build();
onChanged();
} else {
schemaOperationQuotasBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
*/
public Builder mergeSchemaOperationQuotas(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas value) {
if (schemaOperationQuotasBuilder_ == null) {
if (schemaOperationQuotas_ != null) {
schemaOperationQuotas_ =
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.newBuilder(schemaOperationQuotas_).mergeFrom(value).buildPartial();
} else {
schemaOperationQuotas_ = value;
}
onChanged();
} else {
schemaOperationQuotasBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
*/
public Builder clearSchemaOperationQuotas() {
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotas_ = null;
onChanged();
} else {
schemaOperationQuotas_ = null;
schemaOperationQuotasBuilder_ = null;
}
return this;
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder getSchemaOperationQuotasBuilder() {
onChanged();
return getSchemaOperationQuotasFieldBuilder().getBuilder();
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder getSchemaOperationQuotasOrBuilder() {
if (schemaOperationQuotasBuilder_ != null) {
return schemaOperationQuotasBuilder_.getMessageOrBuilder();
} else {
return schemaOperationQuotas_ == null ?
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance() : schemaOperationQuotas_;
}
}
/**
*
* Optional quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder>
getSchemaOperationQuotasFieldBuilder() {
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder>(
getSchemaOperationQuotas(),
getParentForChildren(),
isClean());
schemaOperationQuotas_ = null;
}
return schemaOperationQuotasBuilder_;
}
private java.lang.Object idempotencyKey_ = "";
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 9;
* @return The idempotencyKey.
*/
public java.lang.String getIdempotencyKey() {
java.lang.Object ref = idempotencyKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
idempotencyKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 9;
* @return The bytes for idempotencyKey.
*/
public com.google.protobuf.ByteString
getIdempotencyKeyBytes() {
java.lang.Object ref = idempotencyKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idempotencyKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 9;
* @param value The idempotencyKey to set.
* @return This builder for chaining.
*/
public Builder setIdempotencyKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
idempotencyKey_ = value;
onChanged();
return this;
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 9;
* @return This builder for chaining.
*/
public Builder clearIdempotencyKey() {
idempotencyKey_ = getDefaultInstance().getIdempotencyKey();
onChanged();
return this;
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 9;
* @param value The bytes for idempotencyKey to set.
* @return This builder for chaining.
*/
public Builder setIdempotencyKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
idempotencyKey_ = value;
onChanged();
return this;
}
private com.yandex.ydb.cms.YdbCms.DatabaseQuotas databaseQuotas_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseQuotas, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder, com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder> databaseQuotasBuilder_;
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return Whether the databaseQuotas field is set.
*/
public boolean hasDatabaseQuotas() {
return databaseQuotasBuilder_ != null || databaseQuotas_ != null;
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return The databaseQuotas.
*/
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDatabaseQuotas() {
if (databaseQuotasBuilder_ == null) {
return databaseQuotas_ == null ? com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance() : databaseQuotas_;
} else {
return databaseQuotasBuilder_.getMessage();
}
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public Builder setDatabaseQuotas(com.yandex.ydb.cms.YdbCms.DatabaseQuotas value) {
if (databaseQuotasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
databaseQuotas_ = value;
onChanged();
} else {
databaseQuotasBuilder_.setMessage(value);
}
return this;
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public Builder setDatabaseQuotas(
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder builderForValue) {
if (databaseQuotasBuilder_ == null) {
databaseQuotas_ = builderForValue.build();
onChanged();
} else {
databaseQuotasBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public Builder mergeDatabaseQuotas(com.yandex.ydb.cms.YdbCms.DatabaseQuotas value) {
if (databaseQuotasBuilder_ == null) {
if (databaseQuotas_ != null) {
databaseQuotas_ =
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.newBuilder(databaseQuotas_).mergeFrom(value).buildPartial();
} else {
databaseQuotas_ = value;
}
onChanged();
} else {
databaseQuotasBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public Builder clearDatabaseQuotas() {
if (databaseQuotasBuilder_ == null) {
databaseQuotas_ = null;
onChanged();
} else {
databaseQuotas_ = null;
databaseQuotasBuilder_ = null;
}
return this;
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder getDatabaseQuotasBuilder() {
onChanged();
return getDatabaseQuotasFieldBuilder().getBuilder();
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder getDatabaseQuotasOrBuilder() {
if (databaseQuotasBuilder_ != null) {
return databaseQuotasBuilder_.getMessageOrBuilder();
} else {
return databaseQuotas_ == null ?
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance() : databaseQuotas_;
}
}
/**
*
* Optional quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseQuotas, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder, com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder>
getDatabaseQuotasFieldBuilder() {
if (databaseQuotasBuilder_ == null) {
databaseQuotasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseQuotas, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder, com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder>(
getDatabaseQuotas(),
getParentForChildren(),
isClean());
databaseQuotas_ = null;
}
return databaseQuotasBuilder_;
}
@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.Cms.CreateDatabaseRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.CreateDatabaseRequest)
private static final com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest();
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateDatabaseRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateDatabaseRequest(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.cms.YdbCms.CreateDatabaseRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateDatabaseResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.CreateDatabaseResponse)
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.Cms.CreateDatabaseResponse}
*/
public static final class CreateDatabaseResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.CreateDatabaseResponse)
CreateDatabaseResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateDatabaseResponse.newBuilder() to construct.
private CreateDatabaseResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateDatabaseResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateDatabaseResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateDatabaseResponse(
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.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse.class, com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse.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.cms.YdbCms.CreateDatabaseResponse)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse other = (com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse) 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.cms.YdbCms.CreateDatabaseResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse 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.cms.YdbCms.CreateDatabaseResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse 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.cms.YdbCms.CreateDatabaseResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse 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.cms.YdbCms.CreateDatabaseResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse 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.cms.YdbCms.CreateDatabaseResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse 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.cms.YdbCms.CreateDatabaseResponse 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.Cms.CreateDatabaseResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.CreateDatabaseResponse)
com.yandex.ydb.cms.YdbCms.CreateDatabaseResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse.class, com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse.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.cms.YdbCms.internal_static_Ydb_Cms_CreateDatabaseResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse build() {
com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse buildPartial() {
com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse result = new com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse(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.cms.YdbCms.CreateDatabaseResponse) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse other) {
if (other == com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse.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.cms.YdbCms.CreateDatabaseResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse) 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.Cms.CreateDatabaseResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.CreateDatabaseResponse)
private static final com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse();
}
public static com.yandex.ydb.cms.YdbCms.CreateDatabaseResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateDatabaseResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateDatabaseResponse(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.cms.YdbCms.CreateDatabaseResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetDatabaseStatusRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.GetDatabaseStatusRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. Full path to database's home dir.
*
*
* string path = 1;
* @return The path.
*/
java.lang.String getPath();
/**
*
* Required. Full path to database's home dir.
*
*
* string path = 1;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 2;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
}
/**
*
* Get current database status.
*
*
* Protobuf type {@code Ydb.Cms.GetDatabaseStatusRequest}
*/
public static final class GetDatabaseStatusRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.GetDatabaseStatusRequest)
GetDatabaseStatusRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetDatabaseStatusRequest.newBuilder() to construct.
private GetDatabaseStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetDatabaseStatusRequest() {
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetDatabaseStatusRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetDatabaseStatusRequest(
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.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest.class, com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest.Builder.class);
}
public static final int PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object path_;
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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 OPERATION_PARAMS_FIELD_NUMBER = 2;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 2;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
}
if (operationParams_ != null) {
output.writeMessage(2, getOperationParams());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
}
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOperationParams());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest other = (com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest) obj;
if (!getPath()
.equals(other.getPath())) return false;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest 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.cms.YdbCms.GetDatabaseStatusRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest 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.cms.YdbCms.GetDatabaseStatusRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest 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.cms.YdbCms.GetDatabaseStatusRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest 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.cms.YdbCms.GetDatabaseStatusRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest 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.cms.YdbCms.GetDatabaseStatusRequest 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;
}
/**
*
* Get current database status.
*
*
* Protobuf type {@code Ydb.Cms.GetDatabaseStatusRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.GetDatabaseStatusRequest)
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest.class, com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest.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 (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest build() {
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest buildPartial() {
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest result = new com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest(this);
result.path_ = path_;
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest other) {
if (other == com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object path_ = "";
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
/**
*
* Required. Full path to database's home dir.
*
*
* string path = 1;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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.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_;
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
*
* Operation parameters
*
*
* .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();
}
}
/**
*
* Operation parameters
*
*
* .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;
}
/**
*
* Operation parameters
*
*
* .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;
}
/**
*
* Operation parameters
*
*
* .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;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 2;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
*
* Operation parameters
*
*
* .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_;
}
}
/**
*
* Operation parameters
*
*
* .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.Cms.GetDatabaseStatusRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.GetDatabaseStatusRequest)
private static final com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest();
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetDatabaseStatusRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetDatabaseStatusRequest(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.cms.YdbCms.GetDatabaseStatusRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetDatabaseStatusResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.GetDatabaseStatusResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Cms.GetDatabaseStatusResponse}
*/
public static final class GetDatabaseStatusResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.GetDatabaseStatusResponse)
GetDatabaseStatusResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetDatabaseStatusResponse.newBuilder() to construct.
private GetDatabaseStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetDatabaseStatusResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetDatabaseStatusResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetDatabaseStatusResponse(
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.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse.class, com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .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_;
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .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.cms.YdbCms.GetDatabaseStatusResponse)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse other = (com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse) 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.cms.YdbCms.GetDatabaseStatusResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse 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.cms.YdbCms.GetDatabaseStatusResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse 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.cms.YdbCms.GetDatabaseStatusResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse 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.cms.YdbCms.GetDatabaseStatusResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse 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.cms.YdbCms.GetDatabaseStatusResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse 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.cms.YdbCms.GetDatabaseStatusResponse 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.Cms.GetDatabaseStatusResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.GetDatabaseStatusResponse)
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse.class, com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse.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.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse build() {
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse buildPartial() {
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse result = new com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse(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.cms.YdbCms.GetDatabaseStatusResponse) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse other) {
if (other == com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse.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.cms.YdbCms.GetDatabaseStatusResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse) 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_;
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .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();
}
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .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;
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .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;
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .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;
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .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_;
}
}
/**
*
* operation.result holds GetDatabaseStatusResult
*
*
* .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.Cms.GetDatabaseStatusResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.GetDatabaseStatusResponse)
private static final com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse();
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetDatabaseStatusResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetDatabaseStatusResponse(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.cms.YdbCms.GetDatabaseStatusResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetDatabaseStatusResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.GetDatabaseStatusResult)
com.google.protobuf.MessageOrBuilder {
/**
*
* Full path to database's home dir.
*
*
* string path = 1;
* @return The path.
*/
java.lang.String getPath();
/**
*
* Full path to database's home dir.
*
*
* string path = 1;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* Current database state.
*
*
* .Ydb.Cms.GetDatabaseStatusResult.State state = 2;
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
*
* Current database state.
*
*
* .Ydb.Cms.GetDatabaseStatusResult.State state = 2;
* @return The state.
*/
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State getState();
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
* @return Whether the requiredResources field is set.
*/
boolean hasRequiredResources();
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
* @return The requiredResources.
*/
com.yandex.ydb.cms.YdbCms.Resources getRequiredResources();
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
*/
com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getRequiredResourcesOrBuilder();
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
* @return Whether the requiredSharedResources field is set.
*/
boolean hasRequiredSharedResources();
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
* @return The requiredSharedResources.
*/
com.yandex.ydb.cms.YdbCms.Resources getRequiredSharedResources();
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
*/
com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getRequiredSharedResourcesOrBuilder();
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
* @return Whether the serverlessResources field is set.
*/
boolean hasServerlessResources();
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
* @return The serverlessResources.
*/
com.yandex.ydb.cms.YdbCms.ServerlessResources getServerlessResources();
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
*/
com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder getServerlessResourcesOrBuilder();
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
* @return Whether the allocatedResources field is set.
*/
boolean hasAllocatedResources();
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
* @return The allocatedResources.
*/
com.yandex.ydb.cms.YdbCms.Resources getAllocatedResources();
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
*/
com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getAllocatedResourcesOrBuilder();
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
java.util.List
getRegisteredResourcesList();
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getRegisteredResources(int index);
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
int getRegisteredResourcesCount();
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
java.util.List extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getRegisteredResourcesOrBuilderList();
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder getRegisteredResourcesOrBuilder(
int index);
/**
*
* Current database generation. Incremented at each successful
* alter request.
*
*
* uint64 generation = 6;
* @return The generation.
*/
long getGeneration();
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return Whether the schemaOperationQuotas field is set.
*/
boolean hasSchemaOperationQuotas();
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return The schemaOperationQuotas.
*/
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getSchemaOperationQuotas();
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder getSchemaOperationQuotasOrBuilder();
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return Whether the databaseQuotas field is set.
*/
boolean hasDatabaseQuotas();
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return The databaseQuotas.
*/
com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDatabaseQuotas();
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder getDatabaseQuotasOrBuilder();
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.ResourcesKindCase getResourcesKindCase();
}
/**
* Protobuf type {@code Ydb.Cms.GetDatabaseStatusResult}
*/
public static final class GetDatabaseStatusResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.GetDatabaseStatusResult)
GetDatabaseStatusResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetDatabaseStatusResult.newBuilder() to construct.
private GetDatabaseStatusResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetDatabaseStatusResult() {
path_ = "";
state_ = 0;
registeredResources_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetDatabaseStatusResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetDatabaseStatusResult(
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();
path_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
state_ = rawValue;
break;
}
case 26: {
com.yandex.ydb.cms.YdbCms.Resources.Builder subBuilder = null;
if (resourcesKindCase_ == 3) {
subBuilder = ((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_).toBuilder();
}
resourcesKind_ =
input.readMessage(com.yandex.ydb.cms.YdbCms.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
resourcesKind_ = subBuilder.buildPartial();
}
resourcesKindCase_ = 3;
break;
}
case 34: {
com.yandex.ydb.cms.YdbCms.Resources.Builder subBuilder = null;
if (allocatedResources_ != null) {
subBuilder = allocatedResources_.toBuilder();
}
allocatedResources_ = input.readMessage(com.yandex.ydb.cms.YdbCms.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(allocatedResources_);
allocatedResources_ = subBuilder.buildPartial();
}
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
registeredResources_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
registeredResources_.add(
input.readMessage(com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.parser(), extensionRegistry));
break;
}
case 48: {
generation_ = input.readUInt64();
break;
}
case 58: {
com.yandex.ydb.cms.YdbCms.Resources.Builder subBuilder = null;
if (resourcesKindCase_ == 7) {
subBuilder = ((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_).toBuilder();
}
resourcesKind_ =
input.readMessage(com.yandex.ydb.cms.YdbCms.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
resourcesKind_ = subBuilder.buildPartial();
}
resourcesKindCase_ = 7;
break;
}
case 66: {
com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder subBuilder = null;
if (resourcesKindCase_ == 8) {
subBuilder = ((com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_).toBuilder();
}
resourcesKind_ =
input.readMessage(com.yandex.ydb.cms.YdbCms.ServerlessResources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_);
resourcesKind_ = subBuilder.buildPartial();
}
resourcesKindCase_ = 8;
break;
}
case 74: {
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder subBuilder = null;
if (schemaOperationQuotas_ != null) {
subBuilder = schemaOperationQuotas_.toBuilder();
}
schemaOperationQuotas_ = input.readMessage(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schemaOperationQuotas_);
schemaOperationQuotas_ = subBuilder.buildPartial();
}
break;
}
case 82: {
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder subBuilder = null;
if (databaseQuotas_ != null) {
subBuilder = databaseQuotas_.toBuilder();
}
databaseQuotas_ = input.readMessage(com.yandex.ydb.cms.YdbCms.DatabaseQuotas.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(databaseQuotas_);
databaseQuotas_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
registeredResources_ = java.util.Collections.unmodifiableList(registeredResources_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.class, com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.Builder.class);
}
/**
* Protobuf enum {@code Ydb.Cms.GetDatabaseStatusResult.State}
*/
public enum State
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
* CREATING = 1;
*/
CREATING(1),
/**
* RUNNING = 2;
*/
RUNNING(2),
/**
* REMOVING = 3;
*/
REMOVING(3),
/**
* PENDING_RESOURCES = 4;
*/
PENDING_RESOURCES(4),
/**
* CONFIGURING = 5;
*/
CONFIGURING(5),
UNRECOGNIZED(-1),
;
/**
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
* CREATING = 1;
*/
public static final int CREATING_VALUE = 1;
/**
* RUNNING = 2;
*/
public static final int RUNNING_VALUE = 2;
/**
* REMOVING = 3;
*/
public static final int REMOVING_VALUE = 3;
/**
* PENDING_RESOURCES = 4;
*/
public static final int PENDING_RESOURCES_VALUE = 4;
/**
* CONFIGURING = 5;
*/
public static final int CONFIGURING_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static 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 CREATING;
case 2: return RUNNING;
case 3: return REMOVING;
case 4: return PENDING_RESOURCES;
case 5: return CONFIGURING;
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.cms.YdbCms.GetDatabaseStatusResult.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.Cms.GetDatabaseStatusResult.State)
}
private int resourcesKindCase_ = 0;
private java.lang.Object resourcesKind_;
public enum ResourcesKindCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
REQUIRED_RESOURCES(3),
REQUIRED_SHARED_RESOURCES(7),
SERVERLESS_RESOURCES(8),
RESOURCESKIND_NOT_SET(0);
private final int value;
private ResourcesKindCase(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 ResourcesKindCase valueOf(int value) {
return forNumber(value);
}
public static ResourcesKindCase forNumber(int value) {
switch (value) {
case 3: return REQUIRED_RESOURCES;
case 7: return REQUIRED_SHARED_RESOURCES;
case 8: return SERVERLESS_RESOURCES;
case 0: return RESOURCESKIND_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResourcesKindCase
getResourcesKindCase() {
return ResourcesKindCase.forNumber(
resourcesKindCase_);
}
public static final int PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object path_;
/**
*
* Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Full path to database's home dir.
*
*
* 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 STATE_FIELD_NUMBER = 2;
private int state_;
/**
*
* Current database state.
*
*
* .Ydb.Cms.GetDatabaseStatusResult.State state = 2;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* Current database state.
*
*
* .Ydb.Cms.GetDatabaseStatusResult.State state = 2;
* @return The state.
*/
@java.lang.Override public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State getState() {
@SuppressWarnings("deprecation")
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State result = com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State.valueOf(state_);
return result == null ? com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State.UNRECOGNIZED : result;
}
public static final int REQUIRED_RESOURCES_FIELD_NUMBER = 3;
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
* @return Whether the requiredResources field is set.
*/
@java.lang.Override
public boolean hasRequiredResources() {
return resourcesKindCase_ == 3;
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
* @return The requiredResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getRequiredResources() {
if (resourcesKindCase_ == 3) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getRequiredResourcesOrBuilder() {
if (resourcesKindCase_ == 3) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
public static final int REQUIRED_SHARED_RESOURCES_FIELD_NUMBER = 7;
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
* @return Whether the requiredSharedResources field is set.
*/
@java.lang.Override
public boolean hasRequiredSharedResources() {
return resourcesKindCase_ == 7;
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
* @return The requiredSharedResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getRequiredSharedResources() {
if (resourcesKindCase_ == 7) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getRequiredSharedResourcesOrBuilder() {
if (resourcesKindCase_ == 7) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
public static final int SERVERLESS_RESOURCES_FIELD_NUMBER = 8;
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
* @return Whether the serverlessResources field is set.
*/
@java.lang.Override
public boolean hasServerlessResources() {
return resourcesKindCase_ == 8;
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
* @return The serverlessResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResources getServerlessResources() {
if (resourcesKindCase_ == 8) {
return (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder getServerlessResourcesOrBuilder() {
if (resourcesKindCase_ == 8) {
return (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
public static final int ALLOCATED_RESOURCES_FIELD_NUMBER = 4;
private com.yandex.ydb.cms.YdbCms.Resources allocatedResources_;
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
* @return Whether the allocatedResources field is set.
*/
@java.lang.Override
public boolean hasAllocatedResources() {
return allocatedResources_ != null;
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
* @return The allocatedResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getAllocatedResources() {
return allocatedResources_ == null ? com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance() : allocatedResources_;
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getAllocatedResourcesOrBuilder() {
return getAllocatedResources();
}
public static final int REGISTERED_RESOURCES_FIELD_NUMBER = 5;
private java.util.List registeredResources_;
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
@java.lang.Override
public java.util.List getRegisteredResourcesList() {
return registeredResources_;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getRegisteredResourcesOrBuilderList() {
return registeredResources_;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
@java.lang.Override
public int getRegisteredResourcesCount() {
return registeredResources_.size();
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getRegisteredResources(int index) {
return registeredResources_.get(index);
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder getRegisteredResourcesOrBuilder(
int index) {
return registeredResources_.get(index);
}
public static final int GENERATION_FIELD_NUMBER = 6;
private long generation_;
/**
*
* Current database generation. Incremented at each successful
* alter request.
*
*
* uint64 generation = 6;
* @return The generation.
*/
@java.lang.Override
public long getGeneration() {
return generation_;
}
public static final int SCHEMA_OPERATION_QUOTAS_FIELD_NUMBER = 9;
private com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas schemaOperationQuotas_;
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return Whether the schemaOperationQuotas field is set.
*/
@java.lang.Override
public boolean hasSchemaOperationQuotas() {
return schemaOperationQuotas_ != null;
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return The schemaOperationQuotas.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getSchemaOperationQuotas() {
return schemaOperationQuotas_ == null ? com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance() : schemaOperationQuotas_;
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder getSchemaOperationQuotasOrBuilder() {
return getSchemaOperationQuotas();
}
public static final int DATABASE_QUOTAS_FIELD_NUMBER = 10;
private com.yandex.ydb.cms.YdbCms.DatabaseQuotas databaseQuotas_;
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return Whether the databaseQuotas field is set.
*/
@java.lang.Override
public boolean hasDatabaseQuotas() {
return databaseQuotas_ != null;
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return The databaseQuotas.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDatabaseQuotas() {
return databaseQuotas_ == null ? com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance() : databaseQuotas_;
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder getDatabaseQuotasOrBuilder() {
return getDatabaseQuotas();
}
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 (state_ != com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, state_);
}
if (resourcesKindCase_ == 3) {
output.writeMessage(3, (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
}
if (allocatedResources_ != null) {
output.writeMessage(4, getAllocatedResources());
}
for (int i = 0; i < registeredResources_.size(); i++) {
output.writeMessage(5, registeredResources_.get(i));
}
if (generation_ != 0L) {
output.writeUInt64(6, generation_);
}
if (resourcesKindCase_ == 7) {
output.writeMessage(7, (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
}
if (resourcesKindCase_ == 8) {
output.writeMessage(8, (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_);
}
if (schemaOperationQuotas_ != null) {
output.writeMessage(9, getSchemaOperationQuotas());
}
if (databaseQuotas_ != null) {
output.writeMessage(10, getDatabaseQuotas());
}
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 (state_ != com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, state_);
}
if (resourcesKindCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
}
if (allocatedResources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAllocatedResources());
}
for (int i = 0; i < registeredResources_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, registeredResources_.get(i));
}
if (generation_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, generation_);
}
if (resourcesKindCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_);
}
if (resourcesKindCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_);
}
if (schemaOperationQuotas_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getSchemaOperationQuotas());
}
if (databaseQuotas_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getDatabaseQuotas());
}
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.cms.YdbCms.GetDatabaseStatusResult)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult other = (com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult) obj;
if (!getPath()
.equals(other.getPath())) return false;
if (state_ != other.state_) return false;
if (hasAllocatedResources() != other.hasAllocatedResources()) return false;
if (hasAllocatedResources()) {
if (!getAllocatedResources()
.equals(other.getAllocatedResources())) return false;
}
if (!getRegisteredResourcesList()
.equals(other.getRegisteredResourcesList())) return false;
if (getGeneration()
!= other.getGeneration()) return false;
if (hasSchemaOperationQuotas() != other.hasSchemaOperationQuotas()) return false;
if (hasSchemaOperationQuotas()) {
if (!getSchemaOperationQuotas()
.equals(other.getSchemaOperationQuotas())) return false;
}
if (hasDatabaseQuotas() != other.hasDatabaseQuotas()) return false;
if (hasDatabaseQuotas()) {
if (!getDatabaseQuotas()
.equals(other.getDatabaseQuotas())) return false;
}
if (!getResourcesKindCase().equals(other.getResourcesKindCase())) return false;
switch (resourcesKindCase_) {
case 3:
if (!getRequiredResources()
.equals(other.getRequiredResources())) return false;
break;
case 7:
if (!getRequiredSharedResources()
.equals(other.getRequiredSharedResources())) return false;
break;
case 8:
if (!getServerlessResources()
.equals(other.getServerlessResources())) 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) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (hasAllocatedResources()) {
hash = (37 * hash) + ALLOCATED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getAllocatedResources().hashCode();
}
if (getRegisteredResourcesCount() > 0) {
hash = (37 * hash) + REGISTERED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getRegisteredResourcesList().hashCode();
}
hash = (37 * hash) + GENERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGeneration());
if (hasSchemaOperationQuotas()) {
hash = (37 * hash) + SCHEMA_OPERATION_QUOTAS_FIELD_NUMBER;
hash = (53 * hash) + getSchemaOperationQuotas().hashCode();
}
if (hasDatabaseQuotas()) {
hash = (37 * hash) + DATABASE_QUOTAS_FIELD_NUMBER;
hash = (53 * hash) + getDatabaseQuotas().hashCode();
}
switch (resourcesKindCase_) {
case 3:
hash = (37 * hash) + REQUIRED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getRequiredResources().hashCode();
break;
case 7:
hash = (37 * hash) + REQUIRED_SHARED_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getRequiredSharedResources().hashCode();
break;
case 8:
hash = (37 * hash) + SERVERLESS_RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getServerlessResources().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult 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.cms.YdbCms.GetDatabaseStatusResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult 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.cms.YdbCms.GetDatabaseStatusResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult 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.cms.YdbCms.GetDatabaseStatusResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult 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.cms.YdbCms.GetDatabaseStatusResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult 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.cms.YdbCms.GetDatabaseStatusResult 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.Cms.GetDatabaseStatusResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.GetDatabaseStatusResult)
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.class, com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRegisteredResourcesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
path_ = "";
state_ = 0;
if (allocatedResourcesBuilder_ == null) {
allocatedResources_ = null;
} else {
allocatedResources_ = null;
allocatedResourcesBuilder_ = null;
}
if (registeredResourcesBuilder_ == null) {
registeredResources_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
registeredResourcesBuilder_.clear();
}
generation_ = 0L;
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotas_ = null;
} else {
schemaOperationQuotas_ = null;
schemaOperationQuotasBuilder_ = null;
}
if (databaseQuotasBuilder_ == null) {
databaseQuotas_ = null;
} else {
databaseQuotas_ = null;
databaseQuotasBuilder_ = null;
}
resourcesKindCase_ = 0;
resourcesKind_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_GetDatabaseStatusResult_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult build() {
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult buildPartial() {
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult result = new com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult(this);
int from_bitField0_ = bitField0_;
result.path_ = path_;
result.state_ = state_;
if (resourcesKindCase_ == 3) {
if (requiredResourcesBuilder_ == null) {
result.resourcesKind_ = resourcesKind_;
} else {
result.resourcesKind_ = requiredResourcesBuilder_.build();
}
}
if (resourcesKindCase_ == 7) {
if (requiredSharedResourcesBuilder_ == null) {
result.resourcesKind_ = resourcesKind_;
} else {
result.resourcesKind_ = requiredSharedResourcesBuilder_.build();
}
}
if (resourcesKindCase_ == 8) {
if (serverlessResourcesBuilder_ == null) {
result.resourcesKind_ = resourcesKind_;
} else {
result.resourcesKind_ = serverlessResourcesBuilder_.build();
}
}
if (allocatedResourcesBuilder_ == null) {
result.allocatedResources_ = allocatedResources_;
} else {
result.allocatedResources_ = allocatedResourcesBuilder_.build();
}
if (registeredResourcesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
registeredResources_ = java.util.Collections.unmodifiableList(registeredResources_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.registeredResources_ = registeredResources_;
} else {
result.registeredResources_ = registeredResourcesBuilder_.build();
}
result.generation_ = generation_;
if (schemaOperationQuotasBuilder_ == null) {
result.schemaOperationQuotas_ = schemaOperationQuotas_;
} else {
result.schemaOperationQuotas_ = schemaOperationQuotasBuilder_.build();
}
if (databaseQuotasBuilder_ == null) {
result.databaseQuotas_ = databaseQuotas_;
} else {
result.databaseQuotas_ = databaseQuotasBuilder_.build();
}
result.resourcesKindCase_ = resourcesKindCase_;
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.cms.YdbCms.GetDatabaseStatusResult) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult other) {
if (other == com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.hasAllocatedResources()) {
mergeAllocatedResources(other.getAllocatedResources());
}
if (registeredResourcesBuilder_ == null) {
if (!other.registeredResources_.isEmpty()) {
if (registeredResources_.isEmpty()) {
registeredResources_ = other.registeredResources_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRegisteredResourcesIsMutable();
registeredResources_.addAll(other.registeredResources_);
}
onChanged();
}
} else {
if (!other.registeredResources_.isEmpty()) {
if (registeredResourcesBuilder_.isEmpty()) {
registeredResourcesBuilder_.dispose();
registeredResourcesBuilder_ = null;
registeredResources_ = other.registeredResources_;
bitField0_ = (bitField0_ & ~0x00000001);
registeredResourcesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRegisteredResourcesFieldBuilder() : null;
} else {
registeredResourcesBuilder_.addAllMessages(other.registeredResources_);
}
}
}
if (other.getGeneration() != 0L) {
setGeneration(other.getGeneration());
}
if (other.hasSchemaOperationQuotas()) {
mergeSchemaOperationQuotas(other.getSchemaOperationQuotas());
}
if (other.hasDatabaseQuotas()) {
mergeDatabaseQuotas(other.getDatabaseQuotas());
}
switch (other.getResourcesKindCase()) {
case REQUIRED_RESOURCES: {
mergeRequiredResources(other.getRequiredResources());
break;
}
case REQUIRED_SHARED_RESOURCES: {
mergeRequiredSharedResources(other.getRequiredSharedResources());
break;
}
case SERVERLESS_RESOURCES: {
mergeServerlessResources(other.getServerlessResources());
break;
}
case RESOURCESKIND_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int resourcesKindCase_ = 0;
private java.lang.Object resourcesKind_;
public ResourcesKindCase
getResourcesKindCase() {
return ResourcesKindCase.forNumber(
resourcesKindCase_);
}
public Builder clearResourcesKind() {
resourcesKindCase_ = 0;
resourcesKind_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object path_ = "";
/**
*
* Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Full path to database's home dir.
*
*
* 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;
}
/**
*
* Full path to database's home dir.
*
*
* string path = 1;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Full path to database's home dir.
*
*
* 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 int state_ = 0;
/**
*
* Current database state.
*
*
* .Ydb.Cms.GetDatabaseStatusResult.State state = 2;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
*
* Current database state.
*
*
* .Ydb.Cms.GetDatabaseStatusResult.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;
}
/**
*
* Current database state.
*
*
* .Ydb.Cms.GetDatabaseStatusResult.State state = 2;
* @return The state.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State getState() {
@SuppressWarnings("deprecation")
com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State result = com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State.valueOf(state_);
return result == null ? com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State.UNRECOGNIZED : result;
}
/**
*
* Current database state.
*
*
* .Ydb.Cms.GetDatabaseStatusResult.State state = 2;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult.State value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Current database state.
*
*
* .Ydb.Cms.GetDatabaseStatusResult.State state = 2;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder> requiredResourcesBuilder_;
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
* @return Whether the requiredResources field is set.
*/
@java.lang.Override
public boolean hasRequiredResources() {
return resourcesKindCase_ == 3;
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
* @return The requiredResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getRequiredResources() {
if (requiredResourcesBuilder_ == null) {
if (resourcesKindCase_ == 3) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
} else {
if (resourcesKindCase_ == 3) {
return requiredResourcesBuilder_.getMessage();
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
*/
public Builder setRequiredResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (requiredResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourcesKind_ = value;
onChanged();
} else {
requiredResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 3;
return this;
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
*/
public Builder setRequiredResources(
com.yandex.ydb.cms.YdbCms.Resources.Builder builderForValue) {
if (requiredResourcesBuilder_ == null) {
resourcesKind_ = builderForValue.build();
onChanged();
} else {
requiredResourcesBuilder_.setMessage(builderForValue.build());
}
resourcesKindCase_ = 3;
return this;
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
*/
public Builder mergeRequiredResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (requiredResourcesBuilder_ == null) {
if (resourcesKindCase_ == 3 &&
resourcesKind_ != com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance()) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.Resources.newBuilder((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_)
.mergeFrom(value).buildPartial();
} else {
resourcesKind_ = value;
}
onChanged();
} else {
if (resourcesKindCase_ == 3) {
requiredResourcesBuilder_.mergeFrom(value);
}
requiredResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 3;
return this;
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
*/
public Builder clearRequiredResources() {
if (requiredResourcesBuilder_ == null) {
if (resourcesKindCase_ == 3) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
onChanged();
}
} else {
if (resourcesKindCase_ == 3) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
}
requiredResourcesBuilder_.clear();
}
return this;
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
*/
public com.yandex.ydb.cms.YdbCms.Resources.Builder getRequiredResourcesBuilder() {
return getRequiredResourcesFieldBuilder().getBuilder();
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getRequiredResourcesOrBuilder() {
if ((resourcesKindCase_ == 3) && (requiredResourcesBuilder_ != null)) {
return requiredResourcesBuilder_.getMessageOrBuilder();
} else {
if (resourcesKindCase_ == 3) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
}
/**
*
* Database resources requested for allocation.
*
*
* .Ydb.Cms.Resources required_resources = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>
getRequiredResourcesFieldBuilder() {
if (requiredResourcesBuilder_ == null) {
if (!(resourcesKindCase_ == 3)) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
requiredResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>(
(com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_,
getParentForChildren(),
isClean());
resourcesKind_ = null;
}
resourcesKindCase_ = 3;
onChanged();;
return requiredResourcesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder> requiredSharedResourcesBuilder_;
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
* @return Whether the requiredSharedResources field is set.
*/
@java.lang.Override
public boolean hasRequiredSharedResources() {
return resourcesKindCase_ == 7;
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
* @return The requiredSharedResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.Resources getRequiredSharedResources() {
if (requiredSharedResourcesBuilder_ == null) {
if (resourcesKindCase_ == 7) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
} else {
if (resourcesKindCase_ == 7) {
return requiredSharedResourcesBuilder_.getMessage();
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
*/
public Builder setRequiredSharedResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (requiredSharedResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourcesKind_ = value;
onChanged();
} else {
requiredSharedResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 7;
return this;
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
*/
public Builder setRequiredSharedResources(
com.yandex.ydb.cms.YdbCms.Resources.Builder builderForValue) {
if (requiredSharedResourcesBuilder_ == null) {
resourcesKind_ = builderForValue.build();
onChanged();
} else {
requiredSharedResourcesBuilder_.setMessage(builderForValue.build());
}
resourcesKindCase_ = 7;
return this;
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
*/
public Builder mergeRequiredSharedResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (requiredSharedResourcesBuilder_ == null) {
if (resourcesKindCase_ == 7 &&
resourcesKind_ != com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance()) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.Resources.newBuilder((com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_)
.mergeFrom(value).buildPartial();
} else {
resourcesKind_ = value;
}
onChanged();
} else {
if (resourcesKindCase_ == 7) {
requiredSharedResourcesBuilder_.mergeFrom(value);
}
requiredSharedResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 7;
return this;
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
*/
public Builder clearRequiredSharedResources() {
if (requiredSharedResourcesBuilder_ == null) {
if (resourcesKindCase_ == 7) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
onChanged();
}
} else {
if (resourcesKindCase_ == 7) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
}
requiredSharedResourcesBuilder_.clear();
}
return this;
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
*/
public com.yandex.ydb.cms.YdbCms.Resources.Builder getRequiredSharedResourcesBuilder() {
return getRequiredSharedResourcesFieldBuilder().getBuilder();
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getRequiredSharedResourcesOrBuilder() {
if ((resourcesKindCase_ == 7) && (requiredSharedResourcesBuilder_ != null)) {
return requiredSharedResourcesBuilder_.getMessageOrBuilder();
} else {
if (resourcesKindCase_ == 7) {
return (com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
}
/**
* .Ydb.Cms.Resources required_shared_resources = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>
getRequiredSharedResourcesFieldBuilder() {
if (requiredSharedResourcesBuilder_ == null) {
if (!(resourcesKindCase_ == 7)) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance();
}
requiredSharedResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>(
(com.yandex.ydb.cms.YdbCms.Resources) resourcesKind_,
getParentForChildren(),
isClean());
resourcesKind_ = null;
}
resourcesKindCase_ = 7;
onChanged();;
return requiredSharedResourcesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ServerlessResources, com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder, com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder> serverlessResourcesBuilder_;
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
* @return Whether the serverlessResources field is set.
*/
@java.lang.Override
public boolean hasServerlessResources() {
return resourcesKindCase_ == 8;
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
* @return The serverlessResources.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResources getServerlessResources() {
if (serverlessResourcesBuilder_ == null) {
if (resourcesKindCase_ == 8) {
return (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
} else {
if (resourcesKindCase_ == 8) {
return serverlessResourcesBuilder_.getMessage();
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
*/
public Builder setServerlessResources(com.yandex.ydb.cms.YdbCms.ServerlessResources value) {
if (serverlessResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resourcesKind_ = value;
onChanged();
} else {
serverlessResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 8;
return this;
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
*/
public Builder setServerlessResources(
com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder builderForValue) {
if (serverlessResourcesBuilder_ == null) {
resourcesKind_ = builderForValue.build();
onChanged();
} else {
serverlessResourcesBuilder_.setMessage(builderForValue.build());
}
resourcesKindCase_ = 8;
return this;
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
*/
public Builder mergeServerlessResources(com.yandex.ydb.cms.YdbCms.ServerlessResources value) {
if (serverlessResourcesBuilder_ == null) {
if (resourcesKindCase_ == 8 &&
resourcesKind_ != com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance()) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.ServerlessResources.newBuilder((com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_)
.mergeFrom(value).buildPartial();
} else {
resourcesKind_ = value;
}
onChanged();
} else {
if (resourcesKindCase_ == 8) {
serverlessResourcesBuilder_.mergeFrom(value);
}
serverlessResourcesBuilder_.setMessage(value);
}
resourcesKindCase_ = 8;
return this;
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
*/
public Builder clearServerlessResources() {
if (serverlessResourcesBuilder_ == null) {
if (resourcesKindCase_ == 8) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
onChanged();
}
} else {
if (resourcesKindCase_ == 8) {
resourcesKindCase_ = 0;
resourcesKind_ = null;
}
serverlessResourcesBuilder_.clear();
}
return this;
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
*/
public com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder getServerlessResourcesBuilder() {
return getServerlessResourcesFieldBuilder().getBuilder();
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder getServerlessResourcesOrBuilder() {
if ((resourcesKindCase_ == 8) && (serverlessResourcesBuilder_ != null)) {
return serverlessResourcesBuilder_.getMessageOrBuilder();
} else {
if (resourcesKindCase_ == 8) {
return (com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_;
}
return com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
}
/**
* .Ydb.Cms.ServerlessResources serverless_resources = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ServerlessResources, com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder, com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder>
getServerlessResourcesFieldBuilder() {
if (serverlessResourcesBuilder_ == null) {
if (!(resourcesKindCase_ == 8)) {
resourcesKind_ = com.yandex.ydb.cms.YdbCms.ServerlessResources.getDefaultInstance();
}
serverlessResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ServerlessResources, com.yandex.ydb.cms.YdbCms.ServerlessResources.Builder, com.yandex.ydb.cms.YdbCms.ServerlessResourcesOrBuilder>(
(com.yandex.ydb.cms.YdbCms.ServerlessResources) resourcesKind_,
getParentForChildren(),
isClean());
resourcesKind_ = null;
}
resourcesKindCase_ = 8;
onChanged();;
return serverlessResourcesBuilder_;
}
private com.yandex.ydb.cms.YdbCms.Resources allocatedResources_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder> allocatedResourcesBuilder_;
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
* @return Whether the allocatedResources field is set.
*/
public boolean hasAllocatedResources() {
return allocatedResourcesBuilder_ != null || allocatedResources_ != null;
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
* @return The allocatedResources.
*/
public com.yandex.ydb.cms.YdbCms.Resources getAllocatedResources() {
if (allocatedResourcesBuilder_ == null) {
return allocatedResources_ == null ? com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance() : allocatedResources_;
} else {
return allocatedResourcesBuilder_.getMessage();
}
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
*/
public Builder setAllocatedResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (allocatedResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
allocatedResources_ = value;
onChanged();
} else {
allocatedResourcesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
*/
public Builder setAllocatedResources(
com.yandex.ydb.cms.YdbCms.Resources.Builder builderForValue) {
if (allocatedResourcesBuilder_ == null) {
allocatedResources_ = builderForValue.build();
onChanged();
} else {
allocatedResourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
*/
public Builder mergeAllocatedResources(com.yandex.ydb.cms.YdbCms.Resources value) {
if (allocatedResourcesBuilder_ == null) {
if (allocatedResources_ != null) {
allocatedResources_ =
com.yandex.ydb.cms.YdbCms.Resources.newBuilder(allocatedResources_).mergeFrom(value).buildPartial();
} else {
allocatedResources_ = value;
}
onChanged();
} else {
allocatedResourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
*/
public Builder clearAllocatedResources() {
if (allocatedResourcesBuilder_ == null) {
allocatedResources_ = null;
onChanged();
} else {
allocatedResources_ = null;
allocatedResourcesBuilder_ = null;
}
return this;
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
*/
public com.yandex.ydb.cms.YdbCms.Resources.Builder getAllocatedResourcesBuilder() {
onChanged();
return getAllocatedResourcesFieldBuilder().getBuilder();
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
*/
public com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder getAllocatedResourcesOrBuilder() {
if (allocatedResourcesBuilder_ != null) {
return allocatedResourcesBuilder_.getMessageOrBuilder();
} else {
return allocatedResources_ == null ?
com.yandex.ydb.cms.YdbCms.Resources.getDefaultInstance() : allocatedResources_;
}
}
/**
*
* Database resources allocated by CMS.
*
*
* .Ydb.Cms.Resources allocated_resources = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>
getAllocatedResourcesFieldBuilder() {
if (allocatedResourcesBuilder_ == null) {
allocatedResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.Resources, com.yandex.ydb.cms.YdbCms.Resources.Builder, com.yandex.ydb.cms.YdbCms.ResourcesOrBuilder>(
getAllocatedResources(),
getParentForChildren(),
isClean());
allocatedResources_ = null;
}
return allocatedResourcesBuilder_;
}
private java.util.List registeredResources_ =
java.util.Collections.emptyList();
private void ensureRegisteredResourcesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
registeredResources_ = new java.util.ArrayList(registeredResources_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder> registeredResourcesBuilder_;
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public java.util.List getRegisteredResourcesList() {
if (registeredResourcesBuilder_ == null) {
return java.util.Collections.unmodifiableList(registeredResources_);
} else {
return registeredResourcesBuilder_.getMessageList();
}
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public int getRegisteredResourcesCount() {
if (registeredResourcesBuilder_ == null) {
return registeredResources_.size();
} else {
return registeredResourcesBuilder_.getCount();
}
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getRegisteredResources(int index) {
if (registeredResourcesBuilder_ == null) {
return registeredResources_.get(index);
} else {
return registeredResourcesBuilder_.getMessage(index);
}
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public Builder setRegisteredResources(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit value) {
if (registeredResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegisteredResourcesIsMutable();
registeredResources_.set(index, value);
onChanged();
} else {
registeredResourcesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public Builder setRegisteredResources(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder builderForValue) {
if (registeredResourcesBuilder_ == null) {
ensureRegisteredResourcesIsMutable();
registeredResources_.set(index, builderForValue.build());
onChanged();
} else {
registeredResourcesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public Builder addRegisteredResources(com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit value) {
if (registeredResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegisteredResourcesIsMutable();
registeredResources_.add(value);
onChanged();
} else {
registeredResourcesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public Builder addRegisteredResources(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit value) {
if (registeredResourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegisteredResourcesIsMutable();
registeredResources_.add(index, value);
onChanged();
} else {
registeredResourcesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public Builder addRegisteredResources(
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder builderForValue) {
if (registeredResourcesBuilder_ == null) {
ensureRegisteredResourcesIsMutable();
registeredResources_.add(builderForValue.build());
onChanged();
} else {
registeredResourcesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public Builder addRegisteredResources(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder builderForValue) {
if (registeredResourcesBuilder_ == null) {
ensureRegisteredResourcesIsMutable();
registeredResources_.add(index, builderForValue.build());
onChanged();
} else {
registeredResourcesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public Builder addAllRegisteredResources(
java.lang.Iterable extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit> values) {
if (registeredResourcesBuilder_ == null) {
ensureRegisteredResourcesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, registeredResources_);
onChanged();
} else {
registeredResourcesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public Builder clearRegisteredResources() {
if (registeredResourcesBuilder_ == null) {
registeredResources_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
registeredResourcesBuilder_.clear();
}
return this;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public Builder removeRegisteredResources(int index) {
if (registeredResourcesBuilder_ == null) {
ensureRegisteredResourcesIsMutable();
registeredResources_.remove(index);
onChanged();
} else {
registeredResourcesBuilder_.remove(index);
}
return this;
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder getRegisteredResourcesBuilder(
int index) {
return getRegisteredResourcesFieldBuilder().getBuilder(index);
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder getRegisteredResourcesOrBuilder(
int index) {
if (registeredResourcesBuilder_ == null) {
return registeredResources_.get(index); } else {
return registeredResourcesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public java.util.List extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getRegisteredResourcesOrBuilderList() {
if (registeredResourcesBuilder_ != null) {
return registeredResourcesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(registeredResources_);
}
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder addRegisteredResourcesBuilder() {
return getRegisteredResourcesFieldBuilder().addBuilder(
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.getDefaultInstance());
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder addRegisteredResourcesBuilder(
int index) {
return getRegisteredResourcesFieldBuilder().addBuilder(
index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.getDefaultInstance());
}
/**
*
* Externally allocated database resources registered in CMS.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5;
*/
public java.util.List
getRegisteredResourcesBuilderList() {
return getRegisteredResourcesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getRegisteredResourcesFieldBuilder() {
if (registeredResourcesBuilder_ == null) {
registeredResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>(
registeredResources_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
registeredResources_ = null;
}
return registeredResourcesBuilder_;
}
private long generation_ ;
/**
*
* Current database generation. Incremented at each successful
* alter request.
*
*
* uint64 generation = 6;
* @return The generation.
*/
@java.lang.Override
public long getGeneration() {
return generation_;
}
/**
*
* Current database generation. Incremented at each successful
* alter request.
*
*
* uint64 generation = 6;
* @param value The generation to set.
* @return This builder for chaining.
*/
public Builder setGeneration(long value) {
generation_ = value;
onChanged();
return this;
}
/**
*
* Current database generation. Incremented at each successful
* alter request.
*
*
* uint64 generation = 6;
* @return This builder for chaining.
*/
public Builder clearGeneration() {
generation_ = 0L;
onChanged();
return this;
}
private com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas schemaOperationQuotas_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder> schemaOperationQuotasBuilder_;
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return Whether the schemaOperationQuotas field is set.
*/
public boolean hasSchemaOperationQuotas() {
return schemaOperationQuotasBuilder_ != null || schemaOperationQuotas_ != null;
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return The schemaOperationQuotas.
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getSchemaOperationQuotas() {
if (schemaOperationQuotasBuilder_ == null) {
return schemaOperationQuotas_ == null ? com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance() : schemaOperationQuotas_;
} else {
return schemaOperationQuotasBuilder_.getMessage();
}
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public Builder setSchemaOperationQuotas(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas value) {
if (schemaOperationQuotasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schemaOperationQuotas_ = value;
onChanged();
} else {
schemaOperationQuotasBuilder_.setMessage(value);
}
return this;
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public Builder setSchemaOperationQuotas(
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder builderForValue) {
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotas_ = builderForValue.build();
onChanged();
} else {
schemaOperationQuotasBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public Builder mergeSchemaOperationQuotas(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas value) {
if (schemaOperationQuotasBuilder_ == null) {
if (schemaOperationQuotas_ != null) {
schemaOperationQuotas_ =
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.newBuilder(schemaOperationQuotas_).mergeFrom(value).buildPartial();
} else {
schemaOperationQuotas_ = value;
}
onChanged();
} else {
schemaOperationQuotasBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public Builder clearSchemaOperationQuotas() {
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotas_ = null;
onChanged();
} else {
schemaOperationQuotas_ = null;
schemaOperationQuotasBuilder_ = null;
}
return this;
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder getSchemaOperationQuotasBuilder() {
onChanged();
return getSchemaOperationQuotasFieldBuilder().getBuilder();
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder getSchemaOperationQuotasOrBuilder() {
if (schemaOperationQuotasBuilder_ != null) {
return schemaOperationQuotasBuilder_.getMessageOrBuilder();
} else {
return schemaOperationQuotas_ == null ?
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance() : schemaOperationQuotas_;
}
}
/**
*
* Current quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder>
getSchemaOperationQuotasFieldBuilder() {
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder>(
getSchemaOperationQuotas(),
getParentForChildren(),
isClean());
schemaOperationQuotas_ = null;
}
return schemaOperationQuotasBuilder_;
}
private com.yandex.ydb.cms.YdbCms.DatabaseQuotas databaseQuotas_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseQuotas, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder, com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder> databaseQuotasBuilder_;
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return Whether the databaseQuotas field is set.
*/
public boolean hasDatabaseQuotas() {
return databaseQuotasBuilder_ != null || databaseQuotas_ != null;
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
* @return The databaseQuotas.
*/
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDatabaseQuotas() {
if (databaseQuotasBuilder_ == null) {
return databaseQuotas_ == null ? com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance() : databaseQuotas_;
} else {
return databaseQuotasBuilder_.getMessage();
}
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public Builder setDatabaseQuotas(com.yandex.ydb.cms.YdbCms.DatabaseQuotas value) {
if (databaseQuotasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
databaseQuotas_ = value;
onChanged();
} else {
databaseQuotasBuilder_.setMessage(value);
}
return this;
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public Builder setDatabaseQuotas(
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder builderForValue) {
if (databaseQuotasBuilder_ == null) {
databaseQuotas_ = builderForValue.build();
onChanged();
} else {
databaseQuotasBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public Builder mergeDatabaseQuotas(com.yandex.ydb.cms.YdbCms.DatabaseQuotas value) {
if (databaseQuotasBuilder_ == null) {
if (databaseQuotas_ != null) {
databaseQuotas_ =
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.newBuilder(databaseQuotas_).mergeFrom(value).buildPartial();
} else {
databaseQuotas_ = value;
}
onChanged();
} else {
databaseQuotasBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public Builder clearDatabaseQuotas() {
if (databaseQuotasBuilder_ == null) {
databaseQuotas_ = null;
onChanged();
} else {
databaseQuotas_ = null;
databaseQuotasBuilder_ = null;
}
return this;
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder getDatabaseQuotasBuilder() {
onChanged();
return getDatabaseQuotasFieldBuilder().getBuilder();
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
public com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder getDatabaseQuotasOrBuilder() {
if (databaseQuotasBuilder_ != null) {
return databaseQuotasBuilder_.getMessageOrBuilder();
} else {
return databaseQuotas_ == null ?
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance() : databaseQuotas_;
}
}
/**
*
* Current quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseQuotas, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder, com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder>
getDatabaseQuotasFieldBuilder() {
if (databaseQuotasBuilder_ == null) {
databaseQuotasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseQuotas, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder, com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder>(
getDatabaseQuotas(),
getParentForChildren(),
isClean());
databaseQuotas_ = null;
}
return databaseQuotasBuilder_;
}
@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.Cms.GetDatabaseStatusResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.GetDatabaseStatusResult)
private static final com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult();
}
public static com.yandex.ydb.cms.YdbCms.GetDatabaseStatusResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetDatabaseStatusResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetDatabaseStatusResult(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.cms.YdbCms.GetDatabaseStatusResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AlterDatabaseRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.AlterDatabaseRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. Full path to database's home dir.
*
*
* string path = 1;
* @return The path.
*/
java.lang.String getPath();
/**
*
* Required. Full path to database's home dir.
*
*
* string path = 1;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
java.util.List
getComputationalUnitsToAddList();
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
com.yandex.ydb.cms.YdbCms.ComputationalUnits getComputationalUnitsToAdd(int index);
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
int getComputationalUnitsToAddCount();
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
java.util.List extends com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsToAddOrBuilderList();
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder getComputationalUnitsToAddOrBuilder(
int index);
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
java.util.List
getComputationalUnitsToRemoveList();
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
com.yandex.ydb.cms.YdbCms.ComputationalUnits getComputationalUnitsToRemove(int index);
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
int getComputationalUnitsToRemoveCount();
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
java.util.List extends com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsToRemoveOrBuilderList();
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder getComputationalUnitsToRemoveOrBuilder(
int index);
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
java.util.List
getStorageUnitsToAddList();
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
com.yandex.ydb.cms.YdbCms.StorageUnits getStorageUnitsToAdd(int index);
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
int getStorageUnitsToAddCount();
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
java.util.List extends com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>
getStorageUnitsToAddOrBuilderList();
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder getStorageUnitsToAddOrBuilder(
int index);
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
java.util.List
getComputationalUnitsToRegisterList();
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getComputationalUnitsToRegister(int index);
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
int getComputationalUnitsToRegisterCount();
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
java.util.List extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getComputationalUnitsToRegisterOrBuilderList();
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder getComputationalUnitsToRegisterOrBuilder(
int index);
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
java.util.List
getComputationalUnitsToDeregisterList();
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getComputationalUnitsToDeregister(int index);
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
int getComputationalUnitsToDeregisterCount();
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
java.util.List extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getComputationalUnitsToDeregisterOrBuilderList();
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder getComputationalUnitsToDeregisterOrBuilder(
int index);
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
/**
*
* Current generation of altered database.
*
*
* uint64 generation = 8;
* @return The generation.
*/
long getGeneration();
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return Whether the schemaOperationQuotas field is set.
*/
boolean hasSchemaOperationQuotas();
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return The schemaOperationQuotas.
*/
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getSchemaOperationQuotas();
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder getSchemaOperationQuotasOrBuilder();
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 10;
* @return The idempotencyKey.
*/
java.lang.String getIdempotencyKey();
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 10;
* @return The bytes for idempotencyKey.
*/
com.google.protobuf.ByteString
getIdempotencyKeyBytes();
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
* @return Whether the databaseQuotas field is set.
*/
boolean hasDatabaseQuotas();
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
* @return The databaseQuotas.
*/
com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDatabaseQuotas();
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
*/
com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder getDatabaseQuotasOrBuilder();
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
int getAlterAttributesCount();
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
boolean containsAlterAttributes(
java.lang.String key);
/**
* Use {@link #getAlterAttributesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAlterAttributes();
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
java.util.Map
getAlterAttributesMap();
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
java.lang.String getAlterAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
java.lang.String getAlterAttributesOrThrow(
java.lang.String key);
}
/**
*
* Change resources allocated for database.
*
*
* Protobuf type {@code Ydb.Cms.AlterDatabaseRequest}
*/
public static final class AlterDatabaseRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.AlterDatabaseRequest)
AlterDatabaseRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use AlterDatabaseRequest.newBuilder() to construct.
private AlterDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AlterDatabaseRequest() {
path_ = "";
computationalUnitsToAdd_ = java.util.Collections.emptyList();
computationalUnitsToRemove_ = java.util.Collections.emptyList();
storageUnitsToAdd_ = java.util.Collections.emptyList();
computationalUnitsToRegister_ = java.util.Collections.emptyList();
computationalUnitsToDeregister_ = java.util.Collections.emptyList();
idempotencyKey_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AlterDatabaseRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AlterDatabaseRequest(
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();
path_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
computationalUnitsToAdd_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
computationalUnitsToAdd_.add(
input.readMessage(com.yandex.ydb.cms.YdbCms.ComputationalUnits.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
computationalUnitsToRemove_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
computationalUnitsToRemove_.add(
input.readMessage(com.yandex.ydb.cms.YdbCms.ComputationalUnits.parser(), extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
storageUnitsToAdd_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
storageUnitsToAdd_.add(
input.readMessage(com.yandex.ydb.cms.YdbCms.StorageUnits.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
computationalUnitsToRegister_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
computationalUnitsToRegister_.add(
input.readMessage(com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
computationalUnitsToDeregister_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
computationalUnitsToDeregister_.add(
input.readMessage(com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.parser(), extensionRegistry));
break;
}
case 58: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
case 64: {
generation_ = input.readUInt64();
break;
}
case 74: {
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder subBuilder = null;
if (schemaOperationQuotas_ != null) {
subBuilder = schemaOperationQuotas_.toBuilder();
}
schemaOperationQuotas_ = input.readMessage(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schemaOperationQuotas_);
schemaOperationQuotas_ = subBuilder.buildPartial();
}
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
idempotencyKey_ = s;
break;
}
case 90: {
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder subBuilder = null;
if (databaseQuotas_ != null) {
subBuilder = databaseQuotas_.toBuilder();
}
databaseQuotas_ = input.readMessage(com.yandex.ydb.cms.YdbCms.DatabaseQuotas.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(databaseQuotas_);
databaseQuotas_ = subBuilder.buildPartial();
}
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
alterAttributes_ = com.google.protobuf.MapField.newMapField(
AlterAttributesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000020;
}
com.google.protobuf.MapEntry
alterAttributes__ = input.readMessage(
AlterAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
alterAttributes_.getMutableMap().put(
alterAttributes__.getKey(), alterAttributes__.getValue());
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)) {
computationalUnitsToAdd_ = java.util.Collections.unmodifiableList(computationalUnitsToAdd_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
computationalUnitsToRemove_ = java.util.Collections.unmodifiableList(computationalUnitsToRemove_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
storageUnitsToAdd_ = java.util.Collections.unmodifiableList(storageUnitsToAdd_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
computationalUnitsToRegister_ = java.util.Collections.unmodifiableList(computationalUnitsToRegister_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
computationalUnitsToDeregister_ = java.util.Collections.unmodifiableList(computationalUnitsToDeregister_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 12:
return internalGetAlterAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest.class, com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest.Builder.class);
}
public static final int PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object path_;
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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 COMPUTATIONAL_UNITS_TO_ADD_FIELD_NUMBER = 2;
private java.util.List computationalUnitsToAdd_;
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
@java.lang.Override
public java.util.List getComputationalUnitsToAddList() {
return computationalUnitsToAdd_;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsToAddOrBuilderList() {
return computationalUnitsToAdd_;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
@java.lang.Override
public int getComputationalUnitsToAddCount() {
return computationalUnitsToAdd_.size();
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ComputationalUnits getComputationalUnitsToAdd(int index) {
return computationalUnitsToAdd_.get(index);
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder getComputationalUnitsToAddOrBuilder(
int index) {
return computationalUnitsToAdd_.get(index);
}
public static final int COMPUTATIONAL_UNITS_TO_REMOVE_FIELD_NUMBER = 3;
private java.util.List computationalUnitsToRemove_;
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
@java.lang.Override
public java.util.List getComputationalUnitsToRemoveList() {
return computationalUnitsToRemove_;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsToRemoveOrBuilderList() {
return computationalUnitsToRemove_;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
@java.lang.Override
public int getComputationalUnitsToRemoveCount() {
return computationalUnitsToRemove_.size();
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ComputationalUnits getComputationalUnitsToRemove(int index) {
return computationalUnitsToRemove_.get(index);
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder getComputationalUnitsToRemoveOrBuilder(
int index) {
return computationalUnitsToRemove_.get(index);
}
public static final int STORAGE_UNITS_TO_ADD_FIELD_NUMBER = 4;
private java.util.List storageUnitsToAdd_;
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
@java.lang.Override
public java.util.List getStorageUnitsToAddList() {
return storageUnitsToAdd_;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>
getStorageUnitsToAddOrBuilderList() {
return storageUnitsToAdd_;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
@java.lang.Override
public int getStorageUnitsToAddCount() {
return storageUnitsToAdd_.size();
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnits getStorageUnitsToAdd(int index) {
return storageUnitsToAdd_.get(index);
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder getStorageUnitsToAddOrBuilder(
int index) {
return storageUnitsToAdd_.get(index);
}
public static final int COMPUTATIONAL_UNITS_TO_REGISTER_FIELD_NUMBER = 5;
private java.util.List computationalUnitsToRegister_;
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
@java.lang.Override
public java.util.List getComputationalUnitsToRegisterList() {
return computationalUnitsToRegister_;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getComputationalUnitsToRegisterOrBuilderList() {
return computationalUnitsToRegister_;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
@java.lang.Override
public int getComputationalUnitsToRegisterCount() {
return computationalUnitsToRegister_.size();
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getComputationalUnitsToRegister(int index) {
return computationalUnitsToRegister_.get(index);
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder getComputationalUnitsToRegisterOrBuilder(
int index) {
return computationalUnitsToRegister_.get(index);
}
public static final int COMPUTATIONAL_UNITS_TO_DEREGISTER_FIELD_NUMBER = 6;
private java.util.List computationalUnitsToDeregister_;
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
@java.lang.Override
public java.util.List getComputationalUnitsToDeregisterList() {
return computationalUnitsToDeregister_;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
@java.lang.Override
public java.util.List extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getComputationalUnitsToDeregisterOrBuilderList() {
return computationalUnitsToDeregister_;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
@java.lang.Override
public int getComputationalUnitsToDeregisterCount() {
return computationalUnitsToDeregister_.size();
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getComputationalUnitsToDeregister(int index) {
return computationalUnitsToDeregister_.get(index);
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder getComputationalUnitsToDeregisterOrBuilder(
int index) {
return computationalUnitsToDeregister_.get(index);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 7;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
public static final int GENERATION_FIELD_NUMBER = 8;
private long generation_;
/**
*
* Current generation of altered database.
*
*
* uint64 generation = 8;
* @return The generation.
*/
@java.lang.Override
public long getGeneration() {
return generation_;
}
public static final int SCHEMA_OPERATION_QUOTAS_FIELD_NUMBER = 9;
private com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas schemaOperationQuotas_;
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return Whether the schemaOperationQuotas field is set.
*/
@java.lang.Override
public boolean hasSchemaOperationQuotas() {
return schemaOperationQuotas_ != null;
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return The schemaOperationQuotas.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getSchemaOperationQuotas() {
return schemaOperationQuotas_ == null ? com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance() : schemaOperationQuotas_;
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder getSchemaOperationQuotasOrBuilder() {
return getSchemaOperationQuotas();
}
public static final int IDEMPOTENCY_KEY_FIELD_NUMBER = 10;
private volatile java.lang.Object idempotencyKey_;
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 10;
* @return The idempotencyKey.
*/
@java.lang.Override
public java.lang.String getIdempotencyKey() {
java.lang.Object ref = idempotencyKey_;
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();
idempotencyKey_ = s;
return s;
}
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 10;
* @return The bytes for idempotencyKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdempotencyKeyBytes() {
java.lang.Object ref = idempotencyKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idempotencyKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATABASE_QUOTAS_FIELD_NUMBER = 11;
private com.yandex.ydb.cms.YdbCms.DatabaseQuotas databaseQuotas_;
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
* @return Whether the databaseQuotas field is set.
*/
@java.lang.Override
public boolean hasDatabaseQuotas() {
return databaseQuotas_ != null;
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
* @return The databaseQuotas.
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDatabaseQuotas() {
return databaseQuotas_ == null ? com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance() : databaseQuotas_;
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
*/
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder getDatabaseQuotasOrBuilder() {
return getDatabaseQuotas();
}
public static final int ALTER_ATTRIBUTES_FIELD_NUMBER = 12;
private static final class AlterAttributesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseRequest_AlterAttributesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> alterAttributes_;
private com.google.protobuf.MapField
internalGetAlterAttributes() {
if (alterAttributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AlterAttributesDefaultEntryHolder.defaultEntry);
}
return alterAttributes_;
}
public int getAlterAttributesCount() {
return internalGetAlterAttributes().getMap().size();
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
@java.lang.Override
public boolean containsAlterAttributes(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAlterAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAlterAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAlterAttributes() {
return getAlterAttributesMap();
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
@java.lang.Override
public java.util.Map getAlterAttributesMap() {
return internalGetAlterAttributes().getMap();
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
@java.lang.Override
public java.lang.String getAlterAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAlterAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
@java.lang.Override
public java.lang.String getAlterAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAlterAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
}
for (int i = 0; i < computationalUnitsToAdd_.size(); i++) {
output.writeMessage(2, computationalUnitsToAdd_.get(i));
}
for (int i = 0; i < computationalUnitsToRemove_.size(); i++) {
output.writeMessage(3, computationalUnitsToRemove_.get(i));
}
for (int i = 0; i < storageUnitsToAdd_.size(); i++) {
output.writeMessage(4, storageUnitsToAdd_.get(i));
}
for (int i = 0; i < computationalUnitsToRegister_.size(); i++) {
output.writeMessage(5, computationalUnitsToRegister_.get(i));
}
for (int i = 0; i < computationalUnitsToDeregister_.size(); i++) {
output.writeMessage(6, computationalUnitsToDeregister_.get(i));
}
if (operationParams_ != null) {
output.writeMessage(7, getOperationParams());
}
if (generation_ != 0L) {
output.writeUInt64(8, generation_);
}
if (schemaOperationQuotas_ != null) {
output.writeMessage(9, getSchemaOperationQuotas());
}
if (!getIdempotencyKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, idempotencyKey_);
}
if (databaseQuotas_ != null) {
output.writeMessage(11, getDatabaseQuotas());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAlterAttributes(),
AlterAttributesDefaultEntryHolder.defaultEntry,
12);
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_);
}
for (int i = 0; i < computationalUnitsToAdd_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, computationalUnitsToAdd_.get(i));
}
for (int i = 0; i < computationalUnitsToRemove_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, computationalUnitsToRemove_.get(i));
}
for (int i = 0; i < storageUnitsToAdd_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, storageUnitsToAdd_.get(i));
}
for (int i = 0; i < computationalUnitsToRegister_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, computationalUnitsToRegister_.get(i));
}
for (int i = 0; i < computationalUnitsToDeregister_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, computationalUnitsToDeregister_.get(i));
}
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getOperationParams());
}
if (generation_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, generation_);
}
if (schemaOperationQuotas_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getSchemaOperationQuotas());
}
if (!getIdempotencyKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, idempotencyKey_);
}
if (databaseQuotas_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getDatabaseQuotas());
}
for (java.util.Map.Entry entry
: internalGetAlterAttributes().getMap().entrySet()) {
com.google.protobuf.MapEntry
alterAttributes__ = AlterAttributesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, alterAttributes__);
}
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.cms.YdbCms.AlterDatabaseRequest)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest other = (com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest) obj;
if (!getPath()
.equals(other.getPath())) return false;
if (!getComputationalUnitsToAddList()
.equals(other.getComputationalUnitsToAddList())) return false;
if (!getComputationalUnitsToRemoveList()
.equals(other.getComputationalUnitsToRemoveList())) return false;
if (!getStorageUnitsToAddList()
.equals(other.getStorageUnitsToAddList())) return false;
if (!getComputationalUnitsToRegisterList()
.equals(other.getComputationalUnitsToRegisterList())) return false;
if (!getComputationalUnitsToDeregisterList()
.equals(other.getComputationalUnitsToDeregisterList())) return false;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (getGeneration()
!= other.getGeneration()) return false;
if (hasSchemaOperationQuotas() != other.hasSchemaOperationQuotas()) return false;
if (hasSchemaOperationQuotas()) {
if (!getSchemaOperationQuotas()
.equals(other.getSchemaOperationQuotas())) return false;
}
if (!getIdempotencyKey()
.equals(other.getIdempotencyKey())) return false;
if (hasDatabaseQuotas() != other.hasDatabaseQuotas()) return false;
if (hasDatabaseQuotas()) {
if (!getDatabaseQuotas()
.equals(other.getDatabaseQuotas())) return false;
}
if (!internalGetAlterAttributes().equals(
other.internalGetAlterAttributes())) 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 (getComputationalUnitsToAddCount() > 0) {
hash = (37 * hash) + COMPUTATIONAL_UNITS_TO_ADD_FIELD_NUMBER;
hash = (53 * hash) + getComputationalUnitsToAddList().hashCode();
}
if (getComputationalUnitsToRemoveCount() > 0) {
hash = (37 * hash) + COMPUTATIONAL_UNITS_TO_REMOVE_FIELD_NUMBER;
hash = (53 * hash) + getComputationalUnitsToRemoveList().hashCode();
}
if (getStorageUnitsToAddCount() > 0) {
hash = (37 * hash) + STORAGE_UNITS_TO_ADD_FIELD_NUMBER;
hash = (53 * hash) + getStorageUnitsToAddList().hashCode();
}
if (getComputationalUnitsToRegisterCount() > 0) {
hash = (37 * hash) + COMPUTATIONAL_UNITS_TO_REGISTER_FIELD_NUMBER;
hash = (53 * hash) + getComputationalUnitsToRegisterList().hashCode();
}
if (getComputationalUnitsToDeregisterCount() > 0) {
hash = (37 * hash) + COMPUTATIONAL_UNITS_TO_DEREGISTER_FIELD_NUMBER;
hash = (53 * hash) + getComputationalUnitsToDeregisterList().hashCode();
}
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (37 * hash) + GENERATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getGeneration());
if (hasSchemaOperationQuotas()) {
hash = (37 * hash) + SCHEMA_OPERATION_QUOTAS_FIELD_NUMBER;
hash = (53 * hash) + getSchemaOperationQuotas().hashCode();
}
hash = (37 * hash) + IDEMPOTENCY_KEY_FIELD_NUMBER;
hash = (53 * hash) + getIdempotencyKey().hashCode();
if (hasDatabaseQuotas()) {
hash = (37 * hash) + DATABASE_QUOTAS_FIELD_NUMBER;
hash = (53 * hash) + getDatabaseQuotas().hashCode();
}
if (!internalGetAlterAttributes().getMap().isEmpty()) {
hash = (37 * hash) + ALTER_ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + internalGetAlterAttributes().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest 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.cms.YdbCms.AlterDatabaseRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest 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.cms.YdbCms.AlterDatabaseRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest 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.cms.YdbCms.AlterDatabaseRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest 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.cms.YdbCms.AlterDatabaseRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest 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.cms.YdbCms.AlterDatabaseRequest 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;
}
/**
*
* Change resources allocated for database.
*
*
* Protobuf type {@code Ydb.Cms.AlterDatabaseRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.AlterDatabaseRequest)
com.yandex.ydb.cms.YdbCms.AlterDatabaseRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 12:
return internalGetAlterAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 12:
return internalGetMutableAlterAttributes();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest.class, com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getComputationalUnitsToAddFieldBuilder();
getComputationalUnitsToRemoveFieldBuilder();
getStorageUnitsToAddFieldBuilder();
getComputationalUnitsToRegisterFieldBuilder();
getComputationalUnitsToDeregisterFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
path_ = "";
if (computationalUnitsToAddBuilder_ == null) {
computationalUnitsToAdd_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
computationalUnitsToAddBuilder_.clear();
}
if (computationalUnitsToRemoveBuilder_ == null) {
computationalUnitsToRemove_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
computationalUnitsToRemoveBuilder_.clear();
}
if (storageUnitsToAddBuilder_ == null) {
storageUnitsToAdd_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
storageUnitsToAddBuilder_.clear();
}
if (computationalUnitsToRegisterBuilder_ == null) {
computationalUnitsToRegister_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
computationalUnitsToRegisterBuilder_.clear();
}
if (computationalUnitsToDeregisterBuilder_ == null) {
computationalUnitsToDeregister_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
computationalUnitsToDeregisterBuilder_.clear();
}
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
generation_ = 0L;
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotas_ = null;
} else {
schemaOperationQuotas_ = null;
schemaOperationQuotasBuilder_ = null;
}
idempotencyKey_ = "";
if (databaseQuotasBuilder_ == null) {
databaseQuotas_ = null;
} else {
databaseQuotas_ = null;
databaseQuotasBuilder_ = null;
}
internalGetMutableAlterAttributes().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest build() {
com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest buildPartial() {
com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest result = new com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest(this);
int from_bitField0_ = bitField0_;
result.path_ = path_;
if (computationalUnitsToAddBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
computationalUnitsToAdd_ = java.util.Collections.unmodifiableList(computationalUnitsToAdd_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.computationalUnitsToAdd_ = computationalUnitsToAdd_;
} else {
result.computationalUnitsToAdd_ = computationalUnitsToAddBuilder_.build();
}
if (computationalUnitsToRemoveBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
computationalUnitsToRemove_ = java.util.Collections.unmodifiableList(computationalUnitsToRemove_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.computationalUnitsToRemove_ = computationalUnitsToRemove_;
} else {
result.computationalUnitsToRemove_ = computationalUnitsToRemoveBuilder_.build();
}
if (storageUnitsToAddBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
storageUnitsToAdd_ = java.util.Collections.unmodifiableList(storageUnitsToAdd_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.storageUnitsToAdd_ = storageUnitsToAdd_;
} else {
result.storageUnitsToAdd_ = storageUnitsToAddBuilder_.build();
}
if (computationalUnitsToRegisterBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
computationalUnitsToRegister_ = java.util.Collections.unmodifiableList(computationalUnitsToRegister_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.computationalUnitsToRegister_ = computationalUnitsToRegister_;
} else {
result.computationalUnitsToRegister_ = computationalUnitsToRegisterBuilder_.build();
}
if (computationalUnitsToDeregisterBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
computationalUnitsToDeregister_ = java.util.Collections.unmodifiableList(computationalUnitsToDeregister_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.computationalUnitsToDeregister_ = computationalUnitsToDeregister_;
} else {
result.computationalUnitsToDeregister_ = computationalUnitsToDeregisterBuilder_.build();
}
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
result.generation_ = generation_;
if (schemaOperationQuotasBuilder_ == null) {
result.schemaOperationQuotas_ = schemaOperationQuotas_;
} else {
result.schemaOperationQuotas_ = schemaOperationQuotasBuilder_.build();
}
result.idempotencyKey_ = idempotencyKey_;
if (databaseQuotasBuilder_ == null) {
result.databaseQuotas_ = databaseQuotas_;
} else {
result.databaseQuotas_ = databaseQuotasBuilder_.build();
}
result.alterAttributes_ = internalGetAlterAttributes();
result.alterAttributes_.makeImmutable();
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.cms.YdbCms.AlterDatabaseRequest) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest other) {
if (other == com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (computationalUnitsToAddBuilder_ == null) {
if (!other.computationalUnitsToAdd_.isEmpty()) {
if (computationalUnitsToAdd_.isEmpty()) {
computationalUnitsToAdd_ = other.computationalUnitsToAdd_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureComputationalUnitsToAddIsMutable();
computationalUnitsToAdd_.addAll(other.computationalUnitsToAdd_);
}
onChanged();
}
} else {
if (!other.computationalUnitsToAdd_.isEmpty()) {
if (computationalUnitsToAddBuilder_.isEmpty()) {
computationalUnitsToAddBuilder_.dispose();
computationalUnitsToAddBuilder_ = null;
computationalUnitsToAdd_ = other.computationalUnitsToAdd_;
bitField0_ = (bitField0_ & ~0x00000001);
computationalUnitsToAddBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getComputationalUnitsToAddFieldBuilder() : null;
} else {
computationalUnitsToAddBuilder_.addAllMessages(other.computationalUnitsToAdd_);
}
}
}
if (computationalUnitsToRemoveBuilder_ == null) {
if (!other.computationalUnitsToRemove_.isEmpty()) {
if (computationalUnitsToRemove_.isEmpty()) {
computationalUnitsToRemove_ = other.computationalUnitsToRemove_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureComputationalUnitsToRemoveIsMutable();
computationalUnitsToRemove_.addAll(other.computationalUnitsToRemove_);
}
onChanged();
}
} else {
if (!other.computationalUnitsToRemove_.isEmpty()) {
if (computationalUnitsToRemoveBuilder_.isEmpty()) {
computationalUnitsToRemoveBuilder_.dispose();
computationalUnitsToRemoveBuilder_ = null;
computationalUnitsToRemove_ = other.computationalUnitsToRemove_;
bitField0_ = (bitField0_ & ~0x00000002);
computationalUnitsToRemoveBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getComputationalUnitsToRemoveFieldBuilder() : null;
} else {
computationalUnitsToRemoveBuilder_.addAllMessages(other.computationalUnitsToRemove_);
}
}
}
if (storageUnitsToAddBuilder_ == null) {
if (!other.storageUnitsToAdd_.isEmpty()) {
if (storageUnitsToAdd_.isEmpty()) {
storageUnitsToAdd_ = other.storageUnitsToAdd_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureStorageUnitsToAddIsMutable();
storageUnitsToAdd_.addAll(other.storageUnitsToAdd_);
}
onChanged();
}
} else {
if (!other.storageUnitsToAdd_.isEmpty()) {
if (storageUnitsToAddBuilder_.isEmpty()) {
storageUnitsToAddBuilder_.dispose();
storageUnitsToAddBuilder_ = null;
storageUnitsToAdd_ = other.storageUnitsToAdd_;
bitField0_ = (bitField0_ & ~0x00000004);
storageUnitsToAddBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStorageUnitsToAddFieldBuilder() : null;
} else {
storageUnitsToAddBuilder_.addAllMessages(other.storageUnitsToAdd_);
}
}
}
if (computationalUnitsToRegisterBuilder_ == null) {
if (!other.computationalUnitsToRegister_.isEmpty()) {
if (computationalUnitsToRegister_.isEmpty()) {
computationalUnitsToRegister_ = other.computationalUnitsToRegister_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureComputationalUnitsToRegisterIsMutable();
computationalUnitsToRegister_.addAll(other.computationalUnitsToRegister_);
}
onChanged();
}
} else {
if (!other.computationalUnitsToRegister_.isEmpty()) {
if (computationalUnitsToRegisterBuilder_.isEmpty()) {
computationalUnitsToRegisterBuilder_.dispose();
computationalUnitsToRegisterBuilder_ = null;
computationalUnitsToRegister_ = other.computationalUnitsToRegister_;
bitField0_ = (bitField0_ & ~0x00000008);
computationalUnitsToRegisterBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getComputationalUnitsToRegisterFieldBuilder() : null;
} else {
computationalUnitsToRegisterBuilder_.addAllMessages(other.computationalUnitsToRegister_);
}
}
}
if (computationalUnitsToDeregisterBuilder_ == null) {
if (!other.computationalUnitsToDeregister_.isEmpty()) {
if (computationalUnitsToDeregister_.isEmpty()) {
computationalUnitsToDeregister_ = other.computationalUnitsToDeregister_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureComputationalUnitsToDeregisterIsMutable();
computationalUnitsToDeregister_.addAll(other.computationalUnitsToDeregister_);
}
onChanged();
}
} else {
if (!other.computationalUnitsToDeregister_.isEmpty()) {
if (computationalUnitsToDeregisterBuilder_.isEmpty()) {
computationalUnitsToDeregisterBuilder_.dispose();
computationalUnitsToDeregisterBuilder_ = null;
computationalUnitsToDeregister_ = other.computationalUnitsToDeregister_;
bitField0_ = (bitField0_ & ~0x00000010);
computationalUnitsToDeregisterBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getComputationalUnitsToDeregisterFieldBuilder() : null;
} else {
computationalUnitsToDeregisterBuilder_.addAllMessages(other.computationalUnitsToDeregister_);
}
}
}
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
if (other.getGeneration() != 0L) {
setGeneration(other.getGeneration());
}
if (other.hasSchemaOperationQuotas()) {
mergeSchemaOperationQuotas(other.getSchemaOperationQuotas());
}
if (!other.getIdempotencyKey().isEmpty()) {
idempotencyKey_ = other.idempotencyKey_;
onChanged();
}
if (other.hasDatabaseQuotas()) {
mergeDatabaseQuotas(other.getDatabaseQuotas());
}
internalGetMutableAlterAttributes().mergeFrom(
other.internalGetAlterAttributes());
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.cms.YdbCms.AlterDatabaseRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object path_ = "";
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
/**
*
* Required. Full path to database's home dir.
*
*
* string path = 1;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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 java.util.List computationalUnitsToAdd_ =
java.util.Collections.emptyList();
private void ensureComputationalUnitsToAddIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
computationalUnitsToAdd_ = new java.util.ArrayList(computationalUnitsToAdd_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ComputationalUnits, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder, com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder> computationalUnitsToAddBuilder_;
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public java.util.List getComputationalUnitsToAddList() {
if (computationalUnitsToAddBuilder_ == null) {
return java.util.Collections.unmodifiableList(computationalUnitsToAdd_);
} else {
return computationalUnitsToAddBuilder_.getMessageList();
}
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public int getComputationalUnitsToAddCount() {
if (computationalUnitsToAddBuilder_ == null) {
return computationalUnitsToAdd_.size();
} else {
return computationalUnitsToAddBuilder_.getCount();
}
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits getComputationalUnitsToAdd(int index) {
if (computationalUnitsToAddBuilder_ == null) {
return computationalUnitsToAdd_.get(index);
} else {
return computationalUnitsToAddBuilder_.getMessage(index);
}
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public Builder setComputationalUnitsToAdd(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits value) {
if (computationalUnitsToAddBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToAddIsMutable();
computationalUnitsToAdd_.set(index, value);
onChanged();
} else {
computationalUnitsToAddBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public Builder setComputationalUnitsToAdd(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder builderForValue) {
if (computationalUnitsToAddBuilder_ == null) {
ensureComputationalUnitsToAddIsMutable();
computationalUnitsToAdd_.set(index, builderForValue.build());
onChanged();
} else {
computationalUnitsToAddBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public Builder addComputationalUnitsToAdd(com.yandex.ydb.cms.YdbCms.ComputationalUnits value) {
if (computationalUnitsToAddBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToAddIsMutable();
computationalUnitsToAdd_.add(value);
onChanged();
} else {
computationalUnitsToAddBuilder_.addMessage(value);
}
return this;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public Builder addComputationalUnitsToAdd(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits value) {
if (computationalUnitsToAddBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToAddIsMutable();
computationalUnitsToAdd_.add(index, value);
onChanged();
} else {
computationalUnitsToAddBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public Builder addComputationalUnitsToAdd(
com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder builderForValue) {
if (computationalUnitsToAddBuilder_ == null) {
ensureComputationalUnitsToAddIsMutable();
computationalUnitsToAdd_.add(builderForValue.build());
onChanged();
} else {
computationalUnitsToAddBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public Builder addComputationalUnitsToAdd(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder builderForValue) {
if (computationalUnitsToAddBuilder_ == null) {
ensureComputationalUnitsToAddIsMutable();
computationalUnitsToAdd_.add(index, builderForValue.build());
onChanged();
} else {
computationalUnitsToAddBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public Builder addAllComputationalUnitsToAdd(
java.lang.Iterable extends com.yandex.ydb.cms.YdbCms.ComputationalUnits> values) {
if (computationalUnitsToAddBuilder_ == null) {
ensureComputationalUnitsToAddIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, computationalUnitsToAdd_);
onChanged();
} else {
computationalUnitsToAddBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public Builder clearComputationalUnitsToAdd() {
if (computationalUnitsToAddBuilder_ == null) {
computationalUnitsToAdd_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
computationalUnitsToAddBuilder_.clear();
}
return this;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public Builder removeComputationalUnitsToAdd(int index) {
if (computationalUnitsToAddBuilder_ == null) {
ensureComputationalUnitsToAddIsMutable();
computationalUnitsToAdd_.remove(index);
onChanged();
} else {
computationalUnitsToAddBuilder_.remove(index);
}
return this;
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder getComputationalUnitsToAddBuilder(
int index) {
return getComputationalUnitsToAddFieldBuilder().getBuilder(index);
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder getComputationalUnitsToAddOrBuilder(
int index) {
if (computationalUnitsToAddBuilder_ == null) {
return computationalUnitsToAdd_.get(index); } else {
return computationalUnitsToAddBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public java.util.List extends com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsToAddOrBuilderList() {
if (computationalUnitsToAddBuilder_ != null) {
return computationalUnitsToAddBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(computationalUnitsToAdd_);
}
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder addComputationalUnitsToAddBuilder() {
return getComputationalUnitsToAddFieldBuilder().addBuilder(
com.yandex.ydb.cms.YdbCms.ComputationalUnits.getDefaultInstance());
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder addComputationalUnitsToAddBuilder(
int index) {
return getComputationalUnitsToAddFieldBuilder().addBuilder(
index, com.yandex.ydb.cms.YdbCms.ComputationalUnits.getDefaultInstance());
}
/**
*
* Additional computational units to allocate for database.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;
*/
public java.util.List
getComputationalUnitsToAddBuilderList() {
return getComputationalUnitsToAddFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ComputationalUnits, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder, com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsToAddFieldBuilder() {
if (computationalUnitsToAddBuilder_ == null) {
computationalUnitsToAddBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ComputationalUnits, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder, com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>(
computationalUnitsToAdd_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
computationalUnitsToAdd_ = null;
}
return computationalUnitsToAddBuilder_;
}
private java.util.List computationalUnitsToRemove_ =
java.util.Collections.emptyList();
private void ensureComputationalUnitsToRemoveIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
computationalUnitsToRemove_ = new java.util.ArrayList(computationalUnitsToRemove_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ComputationalUnits, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder, com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder> computationalUnitsToRemoveBuilder_;
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public java.util.List getComputationalUnitsToRemoveList() {
if (computationalUnitsToRemoveBuilder_ == null) {
return java.util.Collections.unmodifiableList(computationalUnitsToRemove_);
} else {
return computationalUnitsToRemoveBuilder_.getMessageList();
}
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public int getComputationalUnitsToRemoveCount() {
if (computationalUnitsToRemoveBuilder_ == null) {
return computationalUnitsToRemove_.size();
} else {
return computationalUnitsToRemoveBuilder_.getCount();
}
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits getComputationalUnitsToRemove(int index) {
if (computationalUnitsToRemoveBuilder_ == null) {
return computationalUnitsToRemove_.get(index);
} else {
return computationalUnitsToRemoveBuilder_.getMessage(index);
}
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public Builder setComputationalUnitsToRemove(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits value) {
if (computationalUnitsToRemoveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToRemoveIsMutable();
computationalUnitsToRemove_.set(index, value);
onChanged();
} else {
computationalUnitsToRemoveBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public Builder setComputationalUnitsToRemove(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder builderForValue) {
if (computationalUnitsToRemoveBuilder_ == null) {
ensureComputationalUnitsToRemoveIsMutable();
computationalUnitsToRemove_.set(index, builderForValue.build());
onChanged();
} else {
computationalUnitsToRemoveBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public Builder addComputationalUnitsToRemove(com.yandex.ydb.cms.YdbCms.ComputationalUnits value) {
if (computationalUnitsToRemoveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToRemoveIsMutable();
computationalUnitsToRemove_.add(value);
onChanged();
} else {
computationalUnitsToRemoveBuilder_.addMessage(value);
}
return this;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public Builder addComputationalUnitsToRemove(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits value) {
if (computationalUnitsToRemoveBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToRemoveIsMutable();
computationalUnitsToRemove_.add(index, value);
onChanged();
} else {
computationalUnitsToRemoveBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public Builder addComputationalUnitsToRemove(
com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder builderForValue) {
if (computationalUnitsToRemoveBuilder_ == null) {
ensureComputationalUnitsToRemoveIsMutable();
computationalUnitsToRemove_.add(builderForValue.build());
onChanged();
} else {
computationalUnitsToRemoveBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public Builder addComputationalUnitsToRemove(
int index, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder builderForValue) {
if (computationalUnitsToRemoveBuilder_ == null) {
ensureComputationalUnitsToRemoveIsMutable();
computationalUnitsToRemove_.add(index, builderForValue.build());
onChanged();
} else {
computationalUnitsToRemoveBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public Builder addAllComputationalUnitsToRemove(
java.lang.Iterable extends com.yandex.ydb.cms.YdbCms.ComputationalUnits> values) {
if (computationalUnitsToRemoveBuilder_ == null) {
ensureComputationalUnitsToRemoveIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, computationalUnitsToRemove_);
onChanged();
} else {
computationalUnitsToRemoveBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public Builder clearComputationalUnitsToRemove() {
if (computationalUnitsToRemoveBuilder_ == null) {
computationalUnitsToRemove_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
computationalUnitsToRemoveBuilder_.clear();
}
return this;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public Builder removeComputationalUnitsToRemove(int index) {
if (computationalUnitsToRemoveBuilder_ == null) {
ensureComputationalUnitsToRemoveIsMutable();
computationalUnitsToRemove_.remove(index);
onChanged();
} else {
computationalUnitsToRemoveBuilder_.remove(index);
}
return this;
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder getComputationalUnitsToRemoveBuilder(
int index) {
return getComputationalUnitsToRemoveFieldBuilder().getBuilder(index);
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder getComputationalUnitsToRemoveOrBuilder(
int index) {
if (computationalUnitsToRemoveBuilder_ == null) {
return computationalUnitsToRemove_.get(index); } else {
return computationalUnitsToRemoveBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public java.util.List extends com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsToRemoveOrBuilderList() {
if (computationalUnitsToRemoveBuilder_ != null) {
return computationalUnitsToRemoveBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(computationalUnitsToRemove_);
}
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder addComputationalUnitsToRemoveBuilder() {
return getComputationalUnitsToRemoveFieldBuilder().addBuilder(
com.yandex.ydb.cms.YdbCms.ComputationalUnits.getDefaultInstance());
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder addComputationalUnitsToRemoveBuilder(
int index) {
return getComputationalUnitsToRemoveFieldBuilder().addBuilder(
index, com.yandex.ydb.cms.YdbCms.ComputationalUnits.getDefaultInstance());
}
/**
*
* Computational units to deallocate.
*
*
* repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;
*/
public java.util.List
getComputationalUnitsToRemoveBuilderList() {
return getComputationalUnitsToRemoveFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ComputationalUnits, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder, com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>
getComputationalUnitsToRemoveFieldBuilder() {
if (computationalUnitsToRemoveBuilder_ == null) {
computationalUnitsToRemoveBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.ComputationalUnits, com.yandex.ydb.cms.YdbCms.ComputationalUnits.Builder, com.yandex.ydb.cms.YdbCms.ComputationalUnitsOrBuilder>(
computationalUnitsToRemove_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
computationalUnitsToRemove_ = null;
}
return computationalUnitsToRemoveBuilder_;
}
private java.util.List storageUnitsToAdd_ =
java.util.Collections.emptyList();
private void ensureStorageUnitsToAddIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
storageUnitsToAdd_ = new java.util.ArrayList(storageUnitsToAdd_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.StorageUnits, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder, com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder> storageUnitsToAddBuilder_;
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public java.util.List getStorageUnitsToAddList() {
if (storageUnitsToAddBuilder_ == null) {
return java.util.Collections.unmodifiableList(storageUnitsToAdd_);
} else {
return storageUnitsToAddBuilder_.getMessageList();
}
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public int getStorageUnitsToAddCount() {
if (storageUnitsToAddBuilder_ == null) {
return storageUnitsToAdd_.size();
} else {
return storageUnitsToAddBuilder_.getCount();
}
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnits getStorageUnitsToAdd(int index) {
if (storageUnitsToAddBuilder_ == null) {
return storageUnitsToAdd_.get(index);
} else {
return storageUnitsToAddBuilder_.getMessage(index);
}
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public Builder setStorageUnitsToAdd(
int index, com.yandex.ydb.cms.YdbCms.StorageUnits value) {
if (storageUnitsToAddBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageUnitsToAddIsMutable();
storageUnitsToAdd_.set(index, value);
onChanged();
} else {
storageUnitsToAddBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public Builder setStorageUnitsToAdd(
int index, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder builderForValue) {
if (storageUnitsToAddBuilder_ == null) {
ensureStorageUnitsToAddIsMutable();
storageUnitsToAdd_.set(index, builderForValue.build());
onChanged();
} else {
storageUnitsToAddBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public Builder addStorageUnitsToAdd(com.yandex.ydb.cms.YdbCms.StorageUnits value) {
if (storageUnitsToAddBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageUnitsToAddIsMutable();
storageUnitsToAdd_.add(value);
onChanged();
} else {
storageUnitsToAddBuilder_.addMessage(value);
}
return this;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public Builder addStorageUnitsToAdd(
int index, com.yandex.ydb.cms.YdbCms.StorageUnits value) {
if (storageUnitsToAddBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStorageUnitsToAddIsMutable();
storageUnitsToAdd_.add(index, value);
onChanged();
} else {
storageUnitsToAddBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public Builder addStorageUnitsToAdd(
com.yandex.ydb.cms.YdbCms.StorageUnits.Builder builderForValue) {
if (storageUnitsToAddBuilder_ == null) {
ensureStorageUnitsToAddIsMutable();
storageUnitsToAdd_.add(builderForValue.build());
onChanged();
} else {
storageUnitsToAddBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public Builder addStorageUnitsToAdd(
int index, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder builderForValue) {
if (storageUnitsToAddBuilder_ == null) {
ensureStorageUnitsToAddIsMutable();
storageUnitsToAdd_.add(index, builderForValue.build());
onChanged();
} else {
storageUnitsToAddBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public Builder addAllStorageUnitsToAdd(
java.lang.Iterable extends com.yandex.ydb.cms.YdbCms.StorageUnits> values) {
if (storageUnitsToAddBuilder_ == null) {
ensureStorageUnitsToAddIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, storageUnitsToAdd_);
onChanged();
} else {
storageUnitsToAddBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public Builder clearStorageUnitsToAdd() {
if (storageUnitsToAddBuilder_ == null) {
storageUnitsToAdd_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
storageUnitsToAddBuilder_.clear();
}
return this;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public Builder removeStorageUnitsToAdd(int index) {
if (storageUnitsToAddBuilder_ == null) {
ensureStorageUnitsToAddIsMutable();
storageUnitsToAdd_.remove(index);
onChanged();
} else {
storageUnitsToAddBuilder_.remove(index);
}
return this;
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnits.Builder getStorageUnitsToAddBuilder(
int index) {
return getStorageUnitsToAddFieldBuilder().getBuilder(index);
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder getStorageUnitsToAddOrBuilder(
int index) {
if (storageUnitsToAddBuilder_ == null) {
return storageUnitsToAdd_.get(index); } else {
return storageUnitsToAddBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public java.util.List extends com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>
getStorageUnitsToAddOrBuilderList() {
if (storageUnitsToAddBuilder_ != null) {
return storageUnitsToAddBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(storageUnitsToAdd_);
}
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnits.Builder addStorageUnitsToAddBuilder() {
return getStorageUnitsToAddFieldBuilder().addBuilder(
com.yandex.ydb.cms.YdbCms.StorageUnits.getDefaultInstance());
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public com.yandex.ydb.cms.YdbCms.StorageUnits.Builder addStorageUnitsToAddBuilder(
int index) {
return getStorageUnitsToAddFieldBuilder().addBuilder(
index, com.yandex.ydb.cms.YdbCms.StorageUnits.getDefaultInstance());
}
/**
*
* Additional storage units to allocate for database.
*
*
* repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;
*/
public java.util.List
getStorageUnitsToAddBuilderList() {
return getStorageUnitsToAddFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.StorageUnits, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder, com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>
getStorageUnitsToAddFieldBuilder() {
if (storageUnitsToAddBuilder_ == null) {
storageUnitsToAddBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.StorageUnits, com.yandex.ydb.cms.YdbCms.StorageUnits.Builder, com.yandex.ydb.cms.YdbCms.StorageUnitsOrBuilder>(
storageUnitsToAdd_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
storageUnitsToAdd_ = null;
}
return storageUnitsToAddBuilder_;
}
private java.util.List computationalUnitsToRegister_ =
java.util.Collections.emptyList();
private void ensureComputationalUnitsToRegisterIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
computationalUnitsToRegister_ = new java.util.ArrayList(computationalUnitsToRegister_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder> computationalUnitsToRegisterBuilder_;
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public java.util.List getComputationalUnitsToRegisterList() {
if (computationalUnitsToRegisterBuilder_ == null) {
return java.util.Collections.unmodifiableList(computationalUnitsToRegister_);
} else {
return computationalUnitsToRegisterBuilder_.getMessageList();
}
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public int getComputationalUnitsToRegisterCount() {
if (computationalUnitsToRegisterBuilder_ == null) {
return computationalUnitsToRegister_.size();
} else {
return computationalUnitsToRegisterBuilder_.getCount();
}
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getComputationalUnitsToRegister(int index) {
if (computationalUnitsToRegisterBuilder_ == null) {
return computationalUnitsToRegister_.get(index);
} else {
return computationalUnitsToRegisterBuilder_.getMessage(index);
}
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public Builder setComputationalUnitsToRegister(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit value) {
if (computationalUnitsToRegisterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToRegisterIsMutable();
computationalUnitsToRegister_.set(index, value);
onChanged();
} else {
computationalUnitsToRegisterBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public Builder setComputationalUnitsToRegister(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder builderForValue) {
if (computationalUnitsToRegisterBuilder_ == null) {
ensureComputationalUnitsToRegisterIsMutable();
computationalUnitsToRegister_.set(index, builderForValue.build());
onChanged();
} else {
computationalUnitsToRegisterBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public Builder addComputationalUnitsToRegister(com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit value) {
if (computationalUnitsToRegisterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToRegisterIsMutable();
computationalUnitsToRegister_.add(value);
onChanged();
} else {
computationalUnitsToRegisterBuilder_.addMessage(value);
}
return this;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public Builder addComputationalUnitsToRegister(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit value) {
if (computationalUnitsToRegisterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToRegisterIsMutable();
computationalUnitsToRegister_.add(index, value);
onChanged();
} else {
computationalUnitsToRegisterBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public Builder addComputationalUnitsToRegister(
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder builderForValue) {
if (computationalUnitsToRegisterBuilder_ == null) {
ensureComputationalUnitsToRegisterIsMutable();
computationalUnitsToRegister_.add(builderForValue.build());
onChanged();
} else {
computationalUnitsToRegisterBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public Builder addComputationalUnitsToRegister(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder builderForValue) {
if (computationalUnitsToRegisterBuilder_ == null) {
ensureComputationalUnitsToRegisterIsMutable();
computationalUnitsToRegister_.add(index, builderForValue.build());
onChanged();
} else {
computationalUnitsToRegisterBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public Builder addAllComputationalUnitsToRegister(
java.lang.Iterable extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit> values) {
if (computationalUnitsToRegisterBuilder_ == null) {
ensureComputationalUnitsToRegisterIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, computationalUnitsToRegister_);
onChanged();
} else {
computationalUnitsToRegisterBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public Builder clearComputationalUnitsToRegister() {
if (computationalUnitsToRegisterBuilder_ == null) {
computationalUnitsToRegister_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
computationalUnitsToRegisterBuilder_.clear();
}
return this;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public Builder removeComputationalUnitsToRegister(int index) {
if (computationalUnitsToRegisterBuilder_ == null) {
ensureComputationalUnitsToRegisterIsMutable();
computationalUnitsToRegister_.remove(index);
onChanged();
} else {
computationalUnitsToRegisterBuilder_.remove(index);
}
return this;
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder getComputationalUnitsToRegisterBuilder(
int index) {
return getComputationalUnitsToRegisterFieldBuilder().getBuilder(index);
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder getComputationalUnitsToRegisterOrBuilder(
int index) {
if (computationalUnitsToRegisterBuilder_ == null) {
return computationalUnitsToRegister_.get(index); } else {
return computationalUnitsToRegisterBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public java.util.List extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getComputationalUnitsToRegisterOrBuilderList() {
if (computationalUnitsToRegisterBuilder_ != null) {
return computationalUnitsToRegisterBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(computationalUnitsToRegister_);
}
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder addComputationalUnitsToRegisterBuilder() {
return getComputationalUnitsToRegisterFieldBuilder().addBuilder(
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.getDefaultInstance());
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder addComputationalUnitsToRegisterBuilder(
int index) {
return getComputationalUnitsToRegisterFieldBuilder().addBuilder(
index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.getDefaultInstance());
}
/**
*
* Externally allocated computational units to register for database.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;
*/
public java.util.List
getComputationalUnitsToRegisterBuilderList() {
return getComputationalUnitsToRegisterFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getComputationalUnitsToRegisterFieldBuilder() {
if (computationalUnitsToRegisterBuilder_ == null) {
computationalUnitsToRegisterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>(
computationalUnitsToRegister_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
computationalUnitsToRegister_ = null;
}
return computationalUnitsToRegisterBuilder_;
}
private java.util.List computationalUnitsToDeregister_ =
java.util.Collections.emptyList();
private void ensureComputationalUnitsToDeregisterIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
computationalUnitsToDeregister_ = new java.util.ArrayList(computationalUnitsToDeregister_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder> computationalUnitsToDeregisterBuilder_;
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public java.util.List getComputationalUnitsToDeregisterList() {
if (computationalUnitsToDeregisterBuilder_ == null) {
return java.util.Collections.unmodifiableList(computationalUnitsToDeregister_);
} else {
return computationalUnitsToDeregisterBuilder_.getMessageList();
}
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public int getComputationalUnitsToDeregisterCount() {
if (computationalUnitsToDeregisterBuilder_ == null) {
return computationalUnitsToDeregister_.size();
} else {
return computationalUnitsToDeregisterBuilder_.getCount();
}
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit getComputationalUnitsToDeregister(int index) {
if (computationalUnitsToDeregisterBuilder_ == null) {
return computationalUnitsToDeregister_.get(index);
} else {
return computationalUnitsToDeregisterBuilder_.getMessage(index);
}
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public Builder setComputationalUnitsToDeregister(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit value) {
if (computationalUnitsToDeregisterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToDeregisterIsMutable();
computationalUnitsToDeregister_.set(index, value);
onChanged();
} else {
computationalUnitsToDeregisterBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public Builder setComputationalUnitsToDeregister(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder builderForValue) {
if (computationalUnitsToDeregisterBuilder_ == null) {
ensureComputationalUnitsToDeregisterIsMutable();
computationalUnitsToDeregister_.set(index, builderForValue.build());
onChanged();
} else {
computationalUnitsToDeregisterBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public Builder addComputationalUnitsToDeregister(com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit value) {
if (computationalUnitsToDeregisterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToDeregisterIsMutable();
computationalUnitsToDeregister_.add(value);
onChanged();
} else {
computationalUnitsToDeregisterBuilder_.addMessage(value);
}
return this;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public Builder addComputationalUnitsToDeregister(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit value) {
if (computationalUnitsToDeregisterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationalUnitsToDeregisterIsMutable();
computationalUnitsToDeregister_.add(index, value);
onChanged();
} else {
computationalUnitsToDeregisterBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public Builder addComputationalUnitsToDeregister(
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder builderForValue) {
if (computationalUnitsToDeregisterBuilder_ == null) {
ensureComputationalUnitsToDeregisterIsMutable();
computationalUnitsToDeregister_.add(builderForValue.build());
onChanged();
} else {
computationalUnitsToDeregisterBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public Builder addComputationalUnitsToDeregister(
int index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder builderForValue) {
if (computationalUnitsToDeregisterBuilder_ == null) {
ensureComputationalUnitsToDeregisterIsMutable();
computationalUnitsToDeregister_.add(index, builderForValue.build());
onChanged();
} else {
computationalUnitsToDeregisterBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public Builder addAllComputationalUnitsToDeregister(
java.lang.Iterable extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit> values) {
if (computationalUnitsToDeregisterBuilder_ == null) {
ensureComputationalUnitsToDeregisterIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, computationalUnitsToDeregister_);
onChanged();
} else {
computationalUnitsToDeregisterBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public Builder clearComputationalUnitsToDeregister() {
if (computationalUnitsToDeregisterBuilder_ == null) {
computationalUnitsToDeregister_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
computationalUnitsToDeregisterBuilder_.clear();
}
return this;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public Builder removeComputationalUnitsToDeregister(int index) {
if (computationalUnitsToDeregisterBuilder_ == null) {
ensureComputationalUnitsToDeregisterIsMutable();
computationalUnitsToDeregister_.remove(index);
onChanged();
} else {
computationalUnitsToDeregisterBuilder_.remove(index);
}
return this;
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder getComputationalUnitsToDeregisterBuilder(
int index) {
return getComputationalUnitsToDeregisterFieldBuilder().getBuilder(index);
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder getComputationalUnitsToDeregisterOrBuilder(
int index) {
if (computationalUnitsToDeregisterBuilder_ == null) {
return computationalUnitsToDeregister_.get(index); } else {
return computationalUnitsToDeregisterBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public java.util.List extends com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getComputationalUnitsToDeregisterOrBuilderList() {
if (computationalUnitsToDeregisterBuilder_ != null) {
return computationalUnitsToDeregisterBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(computationalUnitsToDeregister_);
}
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder addComputationalUnitsToDeregisterBuilder() {
return getComputationalUnitsToDeregisterFieldBuilder().addBuilder(
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.getDefaultInstance());
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder addComputationalUnitsToDeregisterBuilder(
int index) {
return getComputationalUnitsToDeregisterFieldBuilder().addBuilder(
index, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.getDefaultInstance());
}
/**
*
* Externally allocated computational units to deregister.
*
*
* repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;
*/
public java.util.List
getComputationalUnitsToDeregisterBuilderList() {
return getComputationalUnitsToDeregisterFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>
getComputationalUnitsToDeregisterFieldBuilder() {
if (computationalUnitsToDeregisterBuilder_ == null) {
computationalUnitsToDeregisterBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnit.Builder, com.yandex.ydb.cms.YdbCms.AllocatedComputationalUnitOrBuilder>(
computationalUnitsToDeregister_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
computationalUnitsToDeregister_ = null;
}
return computationalUnitsToDeregisterBuilder_;
}
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_;
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
* @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();
}
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
*/
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;
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
*/
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;
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
*
* Operation parameters.
*
*
* .Ydb.Operations.OperationParams operation_params = 7;
*/
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_;
}
private long generation_ ;
/**
*
* Current generation of altered database.
*
*
* uint64 generation = 8;
* @return The generation.
*/
@java.lang.Override
public long getGeneration() {
return generation_;
}
/**
*
* Current generation of altered database.
*
*
* uint64 generation = 8;
* @param value The generation to set.
* @return This builder for chaining.
*/
public Builder setGeneration(long value) {
generation_ = value;
onChanged();
return this;
}
/**
*
* Current generation of altered database.
*
*
* uint64 generation = 8;
* @return This builder for chaining.
*/
public Builder clearGeneration() {
generation_ = 0L;
onChanged();
return this;
}
private com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas schemaOperationQuotas_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder> schemaOperationQuotasBuilder_;
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return Whether the schemaOperationQuotas field is set.
*/
public boolean hasSchemaOperationQuotas() {
return schemaOperationQuotasBuilder_ != null || schemaOperationQuotas_ != null;
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
* @return The schemaOperationQuotas.
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas getSchemaOperationQuotas() {
if (schemaOperationQuotasBuilder_ == null) {
return schemaOperationQuotas_ == null ? com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance() : schemaOperationQuotas_;
} else {
return schemaOperationQuotasBuilder_.getMessage();
}
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public Builder setSchemaOperationQuotas(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas value) {
if (schemaOperationQuotasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schemaOperationQuotas_ = value;
onChanged();
} else {
schemaOperationQuotasBuilder_.setMessage(value);
}
return this;
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public Builder setSchemaOperationQuotas(
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder builderForValue) {
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotas_ = builderForValue.build();
onChanged();
} else {
schemaOperationQuotasBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public Builder mergeSchemaOperationQuotas(com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas value) {
if (schemaOperationQuotasBuilder_ == null) {
if (schemaOperationQuotas_ != null) {
schemaOperationQuotas_ =
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.newBuilder(schemaOperationQuotas_).mergeFrom(value).buildPartial();
} else {
schemaOperationQuotas_ = value;
}
onChanged();
} else {
schemaOperationQuotasBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public Builder clearSchemaOperationQuotas() {
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotas_ = null;
onChanged();
} else {
schemaOperationQuotas_ = null;
schemaOperationQuotasBuilder_ = null;
}
return this;
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder getSchemaOperationQuotasBuilder() {
onChanged();
return getSchemaOperationQuotasFieldBuilder().getBuilder();
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
public com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder getSchemaOperationQuotasOrBuilder() {
if (schemaOperationQuotasBuilder_ != null) {
return schemaOperationQuotasBuilder_.getMessageOrBuilder();
} else {
return schemaOperationQuotas_ == null ?
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.getDefaultInstance() : schemaOperationQuotas_;
}
}
/**
*
* Change quotas for schema operations
*
*
* .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder>
getSchemaOperationQuotasFieldBuilder() {
if (schemaOperationQuotasBuilder_ == null) {
schemaOperationQuotasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotas.Builder, com.yandex.ydb.cms.YdbCms.SchemaOperationQuotasOrBuilder>(
getSchemaOperationQuotas(),
getParentForChildren(),
isClean());
schemaOperationQuotas_ = null;
}
return schemaOperationQuotasBuilder_;
}
private java.lang.Object idempotencyKey_ = "";
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 10;
* @return The idempotencyKey.
*/
public java.lang.String getIdempotencyKey() {
java.lang.Object ref = idempotencyKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
idempotencyKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 10;
* @return The bytes for idempotencyKey.
*/
public com.google.protobuf.ByteString
getIdempotencyKeyBytes() {
java.lang.Object ref = idempotencyKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
idempotencyKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 10;
* @param value The idempotencyKey to set.
* @return This builder for chaining.
*/
public Builder setIdempotencyKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
idempotencyKey_ = value;
onChanged();
return this;
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 10;
* @return This builder for chaining.
*/
public Builder clearIdempotencyKey() {
idempotencyKey_ = getDefaultInstance().getIdempotencyKey();
onChanged();
return this;
}
/**
*
* Optional idempotency key
*
*
* string idempotency_key = 10;
* @param value The bytes for idempotencyKey to set.
* @return This builder for chaining.
*/
public Builder setIdempotencyKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
idempotencyKey_ = value;
onChanged();
return this;
}
private com.yandex.ydb.cms.YdbCms.DatabaseQuotas databaseQuotas_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseQuotas, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder, com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder> databaseQuotasBuilder_;
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
* @return Whether the databaseQuotas field is set.
*/
public boolean hasDatabaseQuotas() {
return databaseQuotasBuilder_ != null || databaseQuotas_ != null;
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
* @return The databaseQuotas.
*/
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas getDatabaseQuotas() {
if (databaseQuotasBuilder_ == null) {
return databaseQuotas_ == null ? com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance() : databaseQuotas_;
} else {
return databaseQuotasBuilder_.getMessage();
}
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
*/
public Builder setDatabaseQuotas(com.yandex.ydb.cms.YdbCms.DatabaseQuotas value) {
if (databaseQuotasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
databaseQuotas_ = value;
onChanged();
} else {
databaseQuotasBuilder_.setMessage(value);
}
return this;
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
*/
public Builder setDatabaseQuotas(
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder builderForValue) {
if (databaseQuotasBuilder_ == null) {
databaseQuotas_ = builderForValue.build();
onChanged();
} else {
databaseQuotasBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
*/
public Builder mergeDatabaseQuotas(com.yandex.ydb.cms.YdbCms.DatabaseQuotas value) {
if (databaseQuotasBuilder_ == null) {
if (databaseQuotas_ != null) {
databaseQuotas_ =
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.newBuilder(databaseQuotas_).mergeFrom(value).buildPartial();
} else {
databaseQuotas_ = value;
}
onChanged();
} else {
databaseQuotasBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
*/
public Builder clearDatabaseQuotas() {
if (databaseQuotasBuilder_ == null) {
databaseQuotas_ = null;
onChanged();
} else {
databaseQuotas_ = null;
databaseQuotasBuilder_ = null;
}
return this;
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
*/
public com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder getDatabaseQuotasBuilder() {
onChanged();
return getDatabaseQuotasFieldBuilder().getBuilder();
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
*/
public com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder getDatabaseQuotasOrBuilder() {
if (databaseQuotasBuilder_ != null) {
return databaseQuotasBuilder_.getMessageOrBuilder();
} else {
return databaseQuotas_ == null ?
com.yandex.ydb.cms.YdbCms.DatabaseQuotas.getDefaultInstance() : databaseQuotas_;
}
}
/**
*
* Change quotas for the database
*
*
* .Ydb.Cms.DatabaseQuotas database_quotas = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseQuotas, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder, com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder>
getDatabaseQuotasFieldBuilder() {
if (databaseQuotasBuilder_ == null) {
databaseQuotasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.cms.YdbCms.DatabaseQuotas, com.yandex.ydb.cms.YdbCms.DatabaseQuotas.Builder, com.yandex.ydb.cms.YdbCms.DatabaseQuotasOrBuilder>(
getDatabaseQuotas(),
getParentForChildren(),
isClean());
databaseQuotas_ = null;
}
return databaseQuotasBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> alterAttributes_;
private com.google.protobuf.MapField
internalGetAlterAttributes() {
if (alterAttributes_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AlterAttributesDefaultEntryHolder.defaultEntry);
}
return alterAttributes_;
}
private com.google.protobuf.MapField
internalGetMutableAlterAttributes() {
onChanged();;
if (alterAttributes_ == null) {
alterAttributes_ = com.google.protobuf.MapField.newMapField(
AlterAttributesDefaultEntryHolder.defaultEntry);
}
if (!alterAttributes_.isMutable()) {
alterAttributes_ = alterAttributes_.copy();
}
return alterAttributes_;
}
public int getAlterAttributesCount() {
return internalGetAlterAttributes().getMap().size();
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
@java.lang.Override
public boolean containsAlterAttributes(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAlterAttributes().getMap().containsKey(key);
}
/**
* Use {@link #getAlterAttributesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAlterAttributes() {
return getAlterAttributesMap();
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
@java.lang.Override
public java.util.Map getAlterAttributesMap() {
return internalGetAlterAttributes().getMap();
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
@java.lang.Override
public java.lang.String getAlterAttributesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAlterAttributes().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
@java.lang.Override
public java.lang.String getAlterAttributesOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAlterAttributes().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAlterAttributes() {
internalGetMutableAlterAttributes().getMutableMap()
.clear();
return this;
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
public Builder removeAlterAttributes(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAlterAttributes().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAlterAttributes() {
return internalGetMutableAlterAttributes().getMutableMap();
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
public Builder putAlterAttributes(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAlterAttributes().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Alter attributes. Leave the value blank to drop an attribute.
*
*
* map<string, string> alter_attributes = 12;
*/
public Builder putAllAlterAttributes(
java.util.Map values) {
internalGetMutableAlterAttributes().getMutableMap()
.putAll(values);
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.Cms.AlterDatabaseRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.AlterDatabaseRequest)
private static final com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest();
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AlterDatabaseRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AlterDatabaseRequest(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.cms.YdbCms.AlterDatabaseRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AlterDatabaseResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.AlterDatabaseResponse)
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.Cms.AlterDatabaseResponse}
*/
public static final class AlterDatabaseResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.AlterDatabaseResponse)
AlterDatabaseResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use AlterDatabaseResponse.newBuilder() to construct.
private AlterDatabaseResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AlterDatabaseResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AlterDatabaseResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AlterDatabaseResponse(
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.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse.class, com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse.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.cms.YdbCms.AlterDatabaseResponse)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse other = (com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse) 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.cms.YdbCms.AlterDatabaseResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse 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.cms.YdbCms.AlterDatabaseResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse 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.cms.YdbCms.AlterDatabaseResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse 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.cms.YdbCms.AlterDatabaseResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse 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.cms.YdbCms.AlterDatabaseResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse 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.cms.YdbCms.AlterDatabaseResponse 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.Cms.AlterDatabaseResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.AlterDatabaseResponse)
com.yandex.ydb.cms.YdbCms.AlterDatabaseResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse.class, com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse.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.cms.YdbCms.internal_static_Ydb_Cms_AlterDatabaseResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse build() {
com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse buildPartial() {
com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse result = new com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse(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.cms.YdbCms.AlterDatabaseResponse) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse other) {
if (other == com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse.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.cms.YdbCms.AlterDatabaseResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse) 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.Cms.AlterDatabaseResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.AlterDatabaseResponse)
private static final com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse();
}
public static com.yandex.ydb.cms.YdbCms.AlterDatabaseResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AlterDatabaseResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AlterDatabaseResponse(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.cms.YdbCms.AlterDatabaseResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDatabasesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.ListDatabasesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
}
/**
*
* List all databases known by CMS.
*
*
* Protobuf type {@code Ydb.Cms.ListDatabasesRequest}
*/
public static final class ListDatabasesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.ListDatabasesRequest)
ListDatabasesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDatabasesRequest.newBuilder() to construct.
private ListDatabasesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDatabasesRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDatabasesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDatabasesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.yandex.ydb.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ListDatabasesRequest.class, com.yandex.ydb.cms.YdbCms.ListDatabasesRequest.Builder.class);
}
public static final int OPERATION_PARAMS_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (operationParams_ != null) {
output.writeMessage(1, getOperationParams());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOperationParams());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.cms.YdbCms.ListDatabasesRequest)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.ListDatabasesRequest other = (com.yandex.ydb.cms.YdbCms.ListDatabasesRequest) obj;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesRequest 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.cms.YdbCms.ListDatabasesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesRequest 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.cms.YdbCms.ListDatabasesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesRequest 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.cms.YdbCms.ListDatabasesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesRequest 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.cms.YdbCms.ListDatabasesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesRequest 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.cms.YdbCms.ListDatabasesRequest 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;
}
/**
*
* List all databases known by CMS.
*
*
* Protobuf type {@code Ydb.Cms.ListDatabasesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.ListDatabasesRequest)
com.yandex.ydb.cms.YdbCms.ListDatabasesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ListDatabasesRequest.class, com.yandex.ydb.cms.YdbCms.ListDatabasesRequest.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.ListDatabasesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ListDatabasesRequest getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.ListDatabasesRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ListDatabasesRequest build() {
com.yandex.ydb.cms.YdbCms.ListDatabasesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ListDatabasesRequest buildPartial() {
com.yandex.ydb.cms.YdbCms.ListDatabasesRequest result = new com.yandex.ydb.cms.YdbCms.ListDatabasesRequest(this);
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.cms.YdbCms.ListDatabasesRequest) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.ListDatabasesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.ListDatabasesRequest other) {
if (other == com.yandex.ydb.cms.YdbCms.ListDatabasesRequest.getDefaultInstance()) return this;
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.cms.YdbCms.ListDatabasesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.ListDatabasesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder> operationParamsBuilder_;
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return Whether the operationParams field is set.
*/
public boolean hasOperationParams() {
return operationParamsBuilder_ != null || operationParams_ != null;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
* @return The operationParams.
*/
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
if (operationParamsBuilder_ == null) {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
} else {
return operationParamsBuilder_.getMessage();
}
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationParams_ = value;
onChanged();
} else {
operationParamsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder setOperationParams(
com.yandex.ydb.OperationProtos.OperationParams.Builder builderForValue) {
if (operationParamsBuilder_ == null) {
operationParams_ = builderForValue.build();
onChanged();
} else {
operationParamsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder mergeOperationParams(com.yandex.ydb.OperationProtos.OperationParams value) {
if (operationParamsBuilder_ == null) {
if (operationParams_ != null) {
operationParams_ =
com.yandex.ydb.OperationProtos.OperationParams.newBuilder(operationParams_).mergeFrom(value).buildPartial();
} else {
operationParams_ = value;
}
onChanged();
} else {
operationParamsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public Builder clearOperationParams() {
if (operationParamsBuilder_ == null) {
operationParams_ = null;
onChanged();
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParams.Builder getOperationParamsBuilder() {
onChanged();
return getOperationParamsFieldBuilder().getBuilder();
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
if (operationParamsBuilder_ != null) {
return operationParamsBuilder_.getMessageOrBuilder();
} else {
return operationParams_ == null ?
com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
}
/**
*
* Operation parameters
*
*
* .Ydb.Operations.OperationParams operation_params = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>
getOperationParamsFieldBuilder() {
if (operationParamsBuilder_ == null) {
operationParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yandex.ydb.OperationProtos.OperationParams, com.yandex.ydb.OperationProtos.OperationParams.Builder, com.yandex.ydb.OperationProtos.OperationParamsOrBuilder>(
getOperationParams(),
getParentForChildren(),
isClean());
operationParams_ = null;
}
return operationParamsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Ydb.Cms.ListDatabasesRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.ListDatabasesRequest)
private static final com.yandex.ydb.cms.YdbCms.ListDatabasesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.ListDatabasesRequest();
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDatabasesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDatabasesRequest(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.cms.YdbCms.ListDatabasesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDatabasesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.ListDatabasesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* operation.result holds ListDatabasesResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
boolean hasOperation();
/**
*
* operation.result holds ListDatabasesResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return The operation.
*/
com.yandex.ydb.OperationProtos.Operation getOperation();
/**
*
* operation.result holds ListDatabasesResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
com.yandex.ydb.OperationProtos.OperationOrBuilder getOperationOrBuilder();
}
/**
* Protobuf type {@code Ydb.Cms.ListDatabasesResponse}
*/
public static final class ListDatabasesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.ListDatabasesResponse)
ListDatabasesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDatabasesResponse.newBuilder() to construct.
private ListDatabasesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDatabasesResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDatabasesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDatabasesResponse(
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.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ListDatabasesResponse.class, com.yandex.ydb.cms.YdbCms.ListDatabasesResponse.Builder.class);
}
public static final int OPERATION_FIELD_NUMBER = 1;
private com.yandex.ydb.OperationProtos.Operation operation_;
/**
*
* operation.result holds ListDatabasesResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
@java.lang.Override
public boolean hasOperation() {
return operation_ != null;
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .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_;
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .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.cms.YdbCms.ListDatabasesResponse)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.ListDatabasesResponse other = (com.yandex.ydb.cms.YdbCms.ListDatabasesResponse) 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.cms.YdbCms.ListDatabasesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResponse 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.cms.YdbCms.ListDatabasesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResponse 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.cms.YdbCms.ListDatabasesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResponse 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.cms.YdbCms.ListDatabasesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResponse 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.cms.YdbCms.ListDatabasesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResponse 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.cms.YdbCms.ListDatabasesResponse 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.Cms.ListDatabasesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.ListDatabasesResponse)
com.yandex.ydb.cms.YdbCms.ListDatabasesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ListDatabasesResponse.class, com.yandex.ydb.cms.YdbCms.ListDatabasesResponse.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.ListDatabasesResponse.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.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ListDatabasesResponse getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.ListDatabasesResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ListDatabasesResponse build() {
com.yandex.ydb.cms.YdbCms.ListDatabasesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ListDatabasesResponse buildPartial() {
com.yandex.ydb.cms.YdbCms.ListDatabasesResponse result = new com.yandex.ydb.cms.YdbCms.ListDatabasesResponse(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.cms.YdbCms.ListDatabasesResponse) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.ListDatabasesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.ListDatabasesResponse other) {
if (other == com.yandex.ydb.cms.YdbCms.ListDatabasesResponse.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.cms.YdbCms.ListDatabasesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.ListDatabasesResponse) 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_;
/**
*
* operation.result holds ListDatabasesResult
*
*
* .Ydb.Operations.Operation operation = 1;
* @return Whether the operation field is set.
*/
public boolean hasOperation() {
return operationBuilder_ != null || operation_ != null;
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .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();
}
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .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;
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .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;
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .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;
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public Builder clearOperation() {
if (operationBuilder_ == null) {
operation_ = null;
onChanged();
} else {
operation_ = null;
operationBuilder_ = null;
}
return this;
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .Ydb.Operations.Operation operation = 1;
*/
public com.yandex.ydb.OperationProtos.Operation.Builder getOperationBuilder() {
onChanged();
return getOperationFieldBuilder().getBuilder();
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .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_;
}
}
/**
*
* operation.result holds ListDatabasesResult
*
*
* .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.Cms.ListDatabasesResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.ListDatabasesResponse)
private static final com.yandex.ydb.cms.YdbCms.ListDatabasesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.ListDatabasesResponse();
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDatabasesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDatabasesResponse(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.cms.YdbCms.ListDatabasesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListDatabasesResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.ListDatabasesResult)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string paths = 1;
* @return A list containing the paths.
*/
java.util.List
getPathsList();
/**
* repeated string paths = 1;
* @return The count of paths.
*/
int getPathsCount();
/**
* repeated string paths = 1;
* @param index The index of the element to return.
* @return The paths at the given index.
*/
java.lang.String getPaths(int index);
/**
* repeated string paths = 1;
* @param index The index of the value to return.
* @return The bytes of the paths at the given index.
*/
com.google.protobuf.ByteString
getPathsBytes(int index);
}
/**
* Protobuf type {@code Ydb.Cms.ListDatabasesResult}
*/
public static final class ListDatabasesResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.ListDatabasesResult)
ListDatabasesResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListDatabasesResult.newBuilder() to construct.
private ListDatabasesResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListDatabasesResult() {
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListDatabasesResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListDatabasesResult(
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();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
paths_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
paths_.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)) {
paths_ = paths_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ListDatabasesResult.class, com.yandex.ydb.cms.YdbCms.ListDatabasesResult.Builder.class);
}
public static final int PATHS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList paths_;
/**
* repeated string paths = 1;
* @return A list containing the paths.
*/
public com.google.protobuf.ProtocolStringList
getPathsList() {
return paths_;
}
/**
* repeated string paths = 1;
* @return The count of paths.
*/
public int getPathsCount() {
return paths_.size();
}
/**
* repeated string paths = 1;
* @param index The index of the element to return.
* @return The paths at the given index.
*/
public java.lang.String getPaths(int index) {
return paths_.get(index);
}
/**
* repeated string paths = 1;
* @param index The index of the value to return.
* @return The bytes of the paths at the given index.
*/
public com.google.protobuf.ByteString
getPathsBytes(int index) {
return paths_.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 {
for (int i = 0; i < paths_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, paths_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < paths_.size(); i++) {
dataSize += computeStringSizeNoTag(paths_.getRaw(i));
}
size += dataSize;
size += 1 * getPathsList().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.cms.YdbCms.ListDatabasesResult)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.ListDatabasesResult other = (com.yandex.ydb.cms.YdbCms.ListDatabasesResult) obj;
if (!getPathsList()
.equals(other.getPathsList())) 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 (getPathsCount() > 0) {
hash = (37 * hash) + PATHS_FIELD_NUMBER;
hash = (53 * hash) + getPathsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResult 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.cms.YdbCms.ListDatabasesResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResult 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.cms.YdbCms.ListDatabasesResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResult 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.cms.YdbCms.ListDatabasesResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResult 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.cms.YdbCms.ListDatabasesResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResult 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.cms.YdbCms.ListDatabasesResult 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.Cms.ListDatabasesResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.ListDatabasesResult)
com.yandex.ydb.cms.YdbCms.ListDatabasesResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.ListDatabasesResult.class, com.yandex.ydb.cms.YdbCms.ListDatabasesResult.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.ListDatabasesResult.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();
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_ListDatabasesResult_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ListDatabasesResult getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.ListDatabasesResult.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ListDatabasesResult build() {
com.yandex.ydb.cms.YdbCms.ListDatabasesResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.ListDatabasesResult buildPartial() {
com.yandex.ydb.cms.YdbCms.ListDatabasesResult result = new com.yandex.ydb.cms.YdbCms.ListDatabasesResult(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
paths_ = paths_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.paths_ = paths_;
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.cms.YdbCms.ListDatabasesResult) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.ListDatabasesResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.ListDatabasesResult other) {
if (other == com.yandex.ydb.cms.YdbCms.ListDatabasesResult.getDefaultInstance()) return this;
if (!other.paths_.isEmpty()) {
if (paths_.isEmpty()) {
paths_ = other.paths_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePathsIsMutable();
paths_.addAll(other.paths_);
}
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.cms.YdbCms.ListDatabasesResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.ListDatabasesResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePathsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
paths_ = new com.google.protobuf.LazyStringArrayList(paths_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string paths = 1;
* @return A list containing the paths.
*/
public com.google.protobuf.ProtocolStringList
getPathsList() {
return paths_.getUnmodifiableView();
}
/**
* repeated string paths = 1;
* @return The count of paths.
*/
public int getPathsCount() {
return paths_.size();
}
/**
* repeated string paths = 1;
* @param index The index of the element to return.
* @return The paths at the given index.
*/
public java.lang.String getPaths(int index) {
return paths_.get(index);
}
/**
* repeated string paths = 1;
* @param index The index of the value to return.
* @return The bytes of the paths at the given index.
*/
public com.google.protobuf.ByteString
getPathsBytes(int index) {
return paths_.getByteString(index);
}
/**
* repeated string paths = 1;
* @param index The index to set the value at.
* @param value The paths to set.
* @return This builder for chaining.
*/
public Builder setPaths(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.set(index, value);
onChanged();
return this;
}
/**
* repeated string paths = 1;
* @param value The paths to add.
* @return This builder for chaining.
*/
public Builder addPaths(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.add(value);
onChanged();
return this;
}
/**
* repeated string paths = 1;
* @param values The paths to add.
* @return This builder for chaining.
*/
public Builder addAllPaths(
java.lang.Iterable values) {
ensurePathsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paths_);
onChanged();
return this;
}
/**
* repeated string paths = 1;
* @return This builder for chaining.
*/
public Builder clearPaths() {
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string paths = 1;
* @param value The bytes of the paths to add.
* @return This builder for chaining.
*/
public Builder addPathsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePathsIsMutable();
paths_.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.Cms.ListDatabasesResult)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.ListDatabasesResult)
private static final com.yandex.ydb.cms.YdbCms.ListDatabasesResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.ListDatabasesResult();
}
public static com.yandex.ydb.cms.YdbCms.ListDatabasesResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListDatabasesResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListDatabasesResult(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.cms.YdbCms.ListDatabasesResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveDatabaseRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.RemoveDatabaseRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. Full path to database's home dir.
*
*
* string path = 1;
* @return The path.
*/
java.lang.String getPath();
/**
*
* Required. Full path to database's home dir.
*
*
* string path = 1;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
boolean hasOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
com.yandex.ydb.OperationProtos.OperationParams getOperationParams();
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder();
}
/**
*
* Completely remove database and all his data.
*
*
* Protobuf type {@code Ydb.Cms.RemoveDatabaseRequest}
*/
public static final class RemoveDatabaseRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.RemoveDatabaseRequest)
RemoveDatabaseRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveDatabaseRequest.newBuilder() to construct.
private RemoveDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveDatabaseRequest() {
path_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveDatabaseRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveDatabaseRequest(
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.OperationProtos.OperationParams.Builder subBuilder = null;
if (operationParams_ != null) {
subBuilder = operationParams_.toBuilder();
}
operationParams_ = input.readMessage(com.yandex.ydb.OperationProtos.OperationParams.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationParams_);
operationParams_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest.class, com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest.Builder.class);
}
public static final int PATH_FIELD_NUMBER = 1;
private volatile java.lang.Object path_;
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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 OPERATION_PARAMS_FIELD_NUMBER = 2;
private com.yandex.ydb.OperationProtos.OperationParams operationParams_;
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return Whether the operationParams field is set.
*/
@java.lang.Override
public boolean hasOperationParams() {
return operationParams_ != null;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
* @return The operationParams.
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParams getOperationParams() {
return operationParams_ == null ? com.yandex.ydb.OperationProtos.OperationParams.getDefaultInstance() : operationParams_;
}
/**
* .Ydb.Operations.OperationParams operation_params = 2;
*/
@java.lang.Override
public com.yandex.ydb.OperationProtos.OperationParamsOrBuilder getOperationParamsOrBuilder() {
return getOperationParams();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getPathBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
}
if (operationParams_ != null) {
output.writeMessage(2, getOperationParams());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPathBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
}
if (operationParams_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOperationParams());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest other = (com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest) obj;
if (!getPath()
.equals(other.getPath())) return false;
if (hasOperationParams() != other.hasOperationParams()) return false;
if (hasOperationParams()) {
if (!getOperationParams()
.equals(other.getOperationParams())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
if (hasOperationParams()) {
hash = (37 * hash) + OPERATION_PARAMS_FIELD_NUMBER;
hash = (53 * hash) + getOperationParams().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest 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.cms.YdbCms.RemoveDatabaseRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest 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.cms.YdbCms.RemoveDatabaseRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest 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.cms.YdbCms.RemoveDatabaseRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest 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.cms.YdbCms.RemoveDatabaseRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest 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.cms.YdbCms.RemoveDatabaseRequest 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;
}
/**
*
* Completely remove database and all his data.
*
*
* Protobuf type {@code Ydb.Cms.RemoveDatabaseRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.RemoveDatabaseRequest)
com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest.class, com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest.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 (operationParamsBuilder_ == null) {
operationParams_ = null;
} else {
operationParams_ = null;
operationParamsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseRequest_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest build() {
com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest buildPartial() {
com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest result = new com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest(this);
result.path_ = path_;
if (operationParamsBuilder_ == null) {
result.operationParams_ = operationParams_;
} else {
result.operationParams_ = operationParamsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest other) {
if (other == com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
if (other.hasOperationParams()) {
mergeOperationParams(other.getOperationParams());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object path_ = "";
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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;
}
/**
*
* Required. Full path to database's home dir.
*
*
* string path = 1;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Required. Full path to database's home dir.
*
*
* 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.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.Cms.RemoveDatabaseRequest)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.RemoveDatabaseRequest)
private static final com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest();
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveDatabaseRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveDatabaseRequest(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.cms.YdbCms.RemoveDatabaseRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RemoveDatabaseResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.RemoveDatabaseResponse)
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.Cms.RemoveDatabaseResponse}
*/
public static final class RemoveDatabaseResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.RemoveDatabaseResponse)
RemoveDatabaseResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use RemoveDatabaseResponse.newBuilder() to construct.
private RemoveDatabaseResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RemoveDatabaseResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RemoveDatabaseResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RemoveDatabaseResponse(
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.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse.class, com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse.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.cms.YdbCms.RemoveDatabaseResponse)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse other = (com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse) 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.cms.YdbCms.RemoveDatabaseResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse 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.cms.YdbCms.RemoveDatabaseResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse 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.cms.YdbCms.RemoveDatabaseResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse 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.cms.YdbCms.RemoveDatabaseResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse 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.cms.YdbCms.RemoveDatabaseResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse 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.cms.YdbCms.RemoveDatabaseResponse 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.Cms.RemoveDatabaseResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.RemoveDatabaseResponse)
com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse.class, com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse.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.cms.YdbCms.internal_static_Ydb_Cms_RemoveDatabaseResponse_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse build() {
com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse buildPartial() {
com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse result = new com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse(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.cms.YdbCms.RemoveDatabaseResponse) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse other) {
if (other == com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse.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.cms.YdbCms.RemoveDatabaseResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse) 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.Cms.RemoveDatabaseResponse)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.RemoveDatabaseResponse)
private static final com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse();
}
public static com.yandex.ydb.cms.YdbCms.RemoveDatabaseResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RemoveDatabaseResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RemoveDatabaseResponse(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.cms.YdbCms.RemoveDatabaseResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StorageUnitDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.StorageUnitDescription)
com.google.protobuf.MessageOrBuilder {
/**
* string kind = 1;
* @return The kind.
*/
java.lang.String getKind();
/**
* string kind = 1;
* @return The bytes for kind.
*/
com.google.protobuf.ByteString
getKindBytes();
/**
* map<string, string> labels = 2;
*/
int getLabelsCount();
/**
* map<string, string> labels = 2;
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
* map<string, string> labels = 2;
*/
java.util.Map
getLabelsMap();
/**
* map<string, string> labels = 2;
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* map<string, string> labels = 2;
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code Ydb.Cms.StorageUnitDescription}
*/
public static final class StorageUnitDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.StorageUnitDescription)
StorageUnitDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use StorageUnitDescription.newBuilder() to construct.
private StorageUnitDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StorageUnitDescription() {
kind_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StorageUnitDescription();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StorageUnitDescription(
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();
kind_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
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.cms.YdbCms.internal_static_Ydb_Cms_StorageUnitDescription_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_StorageUnitDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.StorageUnitDescription.class, com.yandex.ydb.cms.YdbCms.StorageUnitDescription.Builder.class);
}
public static final int KIND_FIELD_NUMBER = 1;
private volatile java.lang.Object kind_;
/**
* string kind = 1;
* @return The kind.
*/
@java.lang.Override
public java.lang.String getKind() {
java.lang.Object ref = kind_;
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();
kind_ = s;
return s;
}
}
/**
* string kind = 1;
* @return The bytes for kind.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LABELS_FIELD_NUMBER = 2;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_StorageUnitDescription_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getKindBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
2);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getKindBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, labels__);
}
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.cms.YdbCms.StorageUnitDescription)) {
return super.equals(obj);
}
com.yandex.ydb.cms.YdbCms.StorageUnitDescription other = (com.yandex.ydb.cms.YdbCms.StorageUnitDescription) obj;
if (!getKind()
.equals(other.getKind())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) 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) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yandex.ydb.cms.YdbCms.StorageUnitDescription parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnitDescription 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.cms.YdbCms.StorageUnitDescription parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnitDescription 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.cms.YdbCms.StorageUnitDescription parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnitDescription parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnitDescription parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnitDescription 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.cms.YdbCms.StorageUnitDescription parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnitDescription 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.cms.YdbCms.StorageUnitDescription parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yandex.ydb.cms.YdbCms.StorageUnitDescription 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.cms.YdbCms.StorageUnitDescription 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.Cms.StorageUnitDescription}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Cms.StorageUnitDescription)
com.yandex.ydb.cms.YdbCms.StorageUnitDescriptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_StorageUnitDescription_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 2:
return internalGetMutableLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_StorageUnitDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.StorageUnitDescription.class, com.yandex.ydb.cms.YdbCms.StorageUnitDescription.Builder.class);
}
// Construct using com.yandex.ydb.cms.YdbCms.StorageUnitDescription.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();
kind_ = "";
internalGetMutableLabels().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_StorageUnitDescription_descriptor;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnitDescription getDefaultInstanceForType() {
return com.yandex.ydb.cms.YdbCms.StorageUnitDescription.getDefaultInstance();
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnitDescription build() {
com.yandex.ydb.cms.YdbCms.StorageUnitDescription result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yandex.ydb.cms.YdbCms.StorageUnitDescription buildPartial() {
com.yandex.ydb.cms.YdbCms.StorageUnitDescription result = new com.yandex.ydb.cms.YdbCms.StorageUnitDescription(this);
int from_bitField0_ = bitField0_;
result.kind_ = kind_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
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.cms.YdbCms.StorageUnitDescription) {
return mergeFrom((com.yandex.ydb.cms.YdbCms.StorageUnitDescription)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yandex.ydb.cms.YdbCms.StorageUnitDescription other) {
if (other == com.yandex.ydb.cms.YdbCms.StorageUnitDescription.getDefaultInstance()) return this;
if (!other.getKind().isEmpty()) {
kind_ = other.kind_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
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.cms.YdbCms.StorageUnitDescription parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.yandex.ydb.cms.YdbCms.StorageUnitDescription) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object kind_ = "";
/**
* string kind = 1;
* @return The kind.
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
kind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string kind = 1;
* @return The bytes for kind.
*/
public com.google.protobuf.ByteString
getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string kind = 1;
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKind(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
return this;
}
/**
* string kind = 1;
* @return This builder for chaining.
*/
public Builder clearKind() {
kind_ = getDefaultInstance().getKind();
onChanged();
return this;
}
/**
* string kind = 1;
* @param value The bytes for kind to set.
* @return This builder for chaining.
*/
public Builder setKindBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
kind_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
onChanged();;
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> labels = 2;
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
* map<string, string> labels = 2;
*/
public Builder putLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> labels = 2;
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
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.Cms.StorageUnitDescription)
}
// @@protoc_insertion_point(class_scope:Ydb.Cms.StorageUnitDescription)
private static final com.yandex.ydb.cms.YdbCms.StorageUnitDescription DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yandex.ydb.cms.YdbCms.StorageUnitDescription();
}
public static com.yandex.ydb.cms.YdbCms.StorageUnitDescription getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageUnitDescription parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StorageUnitDescription(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.cms.YdbCms.StorageUnitDescription getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AvailabilityZoneDescriptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:Ydb.Cms.AvailabilityZoneDescription)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* map<string, string> labels = 2;
*/
int getLabelsCount();
/**
* map<string, string> labels = 2;
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
* map<string, string> labels = 2;
*/
java.util.Map
getLabelsMap();
/**
* map<string, string> labels = 2;
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* map<string, string> labels = 2;
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code Ydb.Cms.AvailabilityZoneDescription}
*/
public static final class AvailabilityZoneDescription extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Cms.AvailabilityZoneDescription)
AvailabilityZoneDescriptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use AvailabilityZoneDescription.newBuilder() to construct.
private AvailabilityZoneDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AvailabilityZoneDescription() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AvailabilityZoneDescription();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AvailabilityZoneDescription(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
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.cms.YdbCms.internal_static_Ydb_Cms_AvailabilityZoneDescription_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 2:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AvailabilityZoneDescription_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yandex.ydb.cms.YdbCms.AvailabilityZoneDescription.class, com.yandex.ydb.cms.YdbCms.AvailabilityZoneDescription.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object 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;
}
}
/**
* 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 LABELS_FIELD_NUMBER = 2;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.yandex.ydb.cms.YdbCms.internal_static_Ydb_Cms_AvailabilityZoneDescription_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> labels_;
private com.google.protobuf.MapField
internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
* map<string, string> labels = 2;
*/
@java.lang.Override
public java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*