yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/greenplum/v1/resource_preset.proto
package yandex.cloud.api.mdb.greenplum.v1;
public final class ResourcePresetOuterClass {
private ResourcePresetOuterClass() {}
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 ResourcePresetOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.ResourcePreset)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the resource preset.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the resource preset.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @return A list containing the zoneIds.
*/
java.util.List
getZoneIdsList();
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @return The count of zoneIds.
*/
int getZoneIdsCount();
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param index The index of the element to return.
* @return The zoneIds at the given index.
*/
java.lang.String getZoneIds(int index);
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the zoneIds at the given index.
*/
com.google.protobuf.ByteString
getZoneIdsBytes(int index);
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @return A list containing the diskTypeIds.
*/
java.util.List
getDiskTypeIdsList();
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @return The count of diskTypeIds.
*/
int getDiskTypeIdsCount();
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param index The index of the element to return.
* @return The diskTypeIds at the given index.
*/
java.lang.String getDiskTypeIds(int index);
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param index The index of the value to return.
* @return The bytes of the diskTypeIds at the given index.
*/
com.google.protobuf.ByteString
getDiskTypeIdsBytes(int index);
/**
*
* Number of CPU cores for a Greenplum® host created with the preset.
*
*
* int64 cores = 3;
* @return The cores.
*/
long getCores();
/**
*
* RAM volume for a Greenplum® host created with the preset, in bytes.
*
*
* int64 memory = 4;
* @return The memory.
*/
long getMemory();
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type type = 5;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type type = 5;
* @return The type.
*/
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type getType();
/**
*
* The number of hosts must be divisible by [host_count_divider].
*
*
* int64 host_count_divider = 8;
* @return The hostCountDivider.
*/
long getHostCountDivider();
/**
*
* Maximum number of segments in segment host.
*
*
* int64 max_segment_in_host_count = 9;
* @return The maxSegmentInHostCount.
*/
long getMaxSegmentInHostCount();
}
/**
*
* A preset of resources for hardware configuration of Greenplum® hosts.
*
*
* Protobuf type {@code yandex.cloud.mdb.greenplum.v1.ResourcePreset}
*/
public static final class ResourcePreset extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.v1.ResourcePreset)
ResourcePresetOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResourcePreset.newBuilder() to construct.
private ResourcePreset(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResourcePreset() {
id_ = "";
zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
diskTypeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResourcePreset();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourcePreset(
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();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
zoneIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
zoneIds_.add(s);
break;
}
case 24: {
cores_ = input.readInt64();
break;
}
case 32: {
memory_ = input.readInt64();
break;
}
case 40: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 64: {
hostCountDivider_ = input.readInt64();
break;
}
case 72: {
maxSegmentInHostCount_ = input.readInt64();
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
diskTypeIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
diskTypeIds_.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)) {
zoneIds_ = zoneIds_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
diskTypeIds_ = diskTypeIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.class, yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TYPE_UNSPECIFIED = 0;
*/
TYPE_UNSPECIFIED(0),
/**
*
* Greenplum® master host.
*
*
* MASTER = 1;
*/
MASTER(1),
/**
*
* Greenplum® segment host.
*
*
* SEGMENT = 2;
*/
SEGMENT(2),
UNRECOGNIZED(-1),
;
/**
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Greenplum® master host.
*
*
* MASTER = 1;
*/
public static final int MASTER_VALUE = 1;
/**
*
* Greenplum® segment host.
*
*
* SEGMENT = 2;
*/
public static final int SEGMENT_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type 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 Type forNumber(int value) {
switch (value) {
case 0: return TYPE_UNSPECIFIED;
case 1: return MASTER;
case 2: return SEGMENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.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 yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type 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 Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type)
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the resource preset.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
*
* ID of the resource preset.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ZONE_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList zoneIds_;
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @return A list containing the zoneIds.
*/
public com.google.protobuf.ProtocolStringList
getZoneIdsList() {
return zoneIds_;
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @return The count of zoneIds.
*/
public int getZoneIdsCount() {
return zoneIds_.size();
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param index The index of the element to return.
* @return The zoneIds at the given index.
*/
public java.lang.String getZoneIds(int index) {
return zoneIds_.get(index);
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the zoneIds at the given index.
*/
public com.google.protobuf.ByteString
getZoneIdsBytes(int index) {
return zoneIds_.getByteString(index);
}
public static final int DISK_TYPE_IDS_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList diskTypeIds_;
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @return A list containing the diskTypeIds.
*/
public com.google.protobuf.ProtocolStringList
getDiskTypeIdsList() {
return diskTypeIds_;
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @return The count of diskTypeIds.
*/
public int getDiskTypeIdsCount() {
return diskTypeIds_.size();
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param index The index of the element to return.
* @return The diskTypeIds at the given index.
*/
public java.lang.String getDiskTypeIds(int index) {
return diskTypeIds_.get(index);
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param index The index of the value to return.
* @return The bytes of the diskTypeIds at the given index.
*/
public com.google.protobuf.ByteString
getDiskTypeIdsBytes(int index) {
return diskTypeIds_.getByteString(index);
}
public static final int CORES_FIELD_NUMBER = 3;
private long cores_;
/**
*
* Number of CPU cores for a Greenplum® host created with the preset.
*
*
* int64 cores = 3;
* @return The cores.
*/
@java.lang.Override
public long getCores() {
return cores_;
}
public static final int MEMORY_FIELD_NUMBER = 4;
private long memory_;
/**
*
* RAM volume for a Greenplum® host created with the preset, in bytes.
*
*
* int64 memory = 4;
* @return The memory.
*/
@java.lang.Override
public long getMemory() {
return memory_;
}
public static final int TYPE_FIELD_NUMBER = 5;
private int type_;
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type type = 5;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type type = 5;
* @return The type.
*/
@java.lang.Override public yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type result = yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type.UNRECOGNIZED : result;
}
public static final int HOST_COUNT_DIVIDER_FIELD_NUMBER = 8;
private long hostCountDivider_;
/**
*
* The number of hosts must be divisible by [host_count_divider].
*
*
* int64 host_count_divider = 8;
* @return The hostCountDivider.
*/
@java.lang.Override
public long getHostCountDivider() {
return hostCountDivider_;
}
public static final int MAX_SEGMENT_IN_HOST_COUNT_FIELD_NUMBER = 9;
private long maxSegmentInHostCount_;
/**
*
* Maximum number of segments in segment host.
*
*
* int64 max_segment_in_host_count = 9;
* @return The maxSegmentInHostCount.
*/
@java.lang.Override
public long getMaxSegmentInHostCount() {
return maxSegmentInHostCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
for (int i = 0; i < zoneIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zoneIds_.getRaw(i));
}
if (cores_ != 0L) {
output.writeInt64(3, cores_);
}
if (memory_ != 0L) {
output.writeInt64(4, memory_);
}
if (type_ != yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type.TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, type_);
}
if (hostCountDivider_ != 0L) {
output.writeInt64(8, hostCountDivider_);
}
if (maxSegmentInHostCount_ != 0L) {
output.writeInt64(9, maxSegmentInHostCount_);
}
for (int i = 0; i < diskTypeIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, diskTypeIds_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
{
int dataSize = 0;
for (int i = 0; i < zoneIds_.size(); i++) {
dataSize += computeStringSizeNoTag(zoneIds_.getRaw(i));
}
size += dataSize;
size += 1 * getZoneIdsList().size();
}
if (cores_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, cores_);
}
if (memory_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, memory_);
}
if (type_ != yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type.TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, type_);
}
if (hostCountDivider_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, hostCountDivider_);
}
if (maxSegmentInHostCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, maxSegmentInHostCount_);
}
{
int dataSize = 0;
for (int i = 0; i < diskTypeIds_.size(); i++) {
dataSize += computeStringSizeNoTag(diskTypeIds_.getRaw(i));
}
size += dataSize;
size += 1 * getDiskTypeIdsList().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 yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset other = (yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getZoneIdsList()
.equals(other.getZoneIdsList())) return false;
if (!getDiskTypeIdsList()
.equals(other.getDiskTypeIdsList())) return false;
if (getCores()
!= other.getCores()) return false;
if (getMemory()
!= other.getMemory()) return false;
if (type_ != other.type_) return false;
if (getHostCountDivider()
!= other.getHostCountDivider()) return false;
if (getMaxSegmentInHostCount()
!= other.getMaxSegmentInHostCount()) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
if (getZoneIdsCount() > 0) {
hash = (37 * hash) + ZONE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getZoneIdsList().hashCode();
}
if (getDiskTypeIdsCount() > 0) {
hash = (37 * hash) + DISK_TYPE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getDiskTypeIdsList().hashCode();
}
hash = (37 * hash) + CORES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCores());
hash = (37 * hash) + MEMORY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMemory());
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + HOST_COUNT_DIVIDER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHostCountDivider());
hash = (37 * hash) + MAX_SEGMENT_IN_HOST_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMaxSegmentInHostCount());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset 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 yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset 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 yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset 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(yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset 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 preset of resources for hardware configuration of Greenplum® hosts.
*
*
* Protobuf type {@code yandex.cloud.mdb.greenplum.v1.ResourcePreset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ResourcePreset)
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePresetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.class, yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.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();
id_ = "";
zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
diskTypeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
cores_ = 0L;
memory_ = 0L;
type_ = 0;
hostCountDivider_ = 0L;
maxSegmentInHostCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset build() {
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset result = new yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
if (((bitField0_ & 0x00000001) != 0)) {
zoneIds_ = zoneIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.zoneIds_ = zoneIds_;
if (((bitField0_ & 0x00000002) != 0)) {
diskTypeIds_ = diskTypeIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.diskTypeIds_ = diskTypeIds_;
result.cores_ = cores_;
result.memory_ = memory_;
result.type_ = type_;
result.hostCountDivider_ = hostCountDivider_;
result.maxSegmentInHostCount_ = maxSegmentInHostCount_;
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 yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.zoneIds_.isEmpty()) {
if (zoneIds_.isEmpty()) {
zoneIds_ = other.zoneIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureZoneIdsIsMutable();
zoneIds_.addAll(other.zoneIds_);
}
onChanged();
}
if (!other.diskTypeIds_.isEmpty()) {
if (diskTypeIds_.isEmpty()) {
diskTypeIds_ = other.diskTypeIds_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDiskTypeIdsIsMutable();
diskTypeIds_.addAll(other.diskTypeIds_);
}
onChanged();
}
if (other.getCores() != 0L) {
setCores(other.getCores());
}
if (other.getMemory() != 0L) {
setMemory(other.getMemory());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.getHostCountDivider() != 0L) {
setHostCountDivider(other.getHostCountDivider());
}
if (other.getMaxSegmentInHostCount() != 0L) {
setMaxSegmentInHostCount(other.getMaxSegmentInHostCount());
}
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 {
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* ID of the resource preset.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the resource preset.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the resource preset.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the resource preset.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the resource preset.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureZoneIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
zoneIds_ = new com.google.protobuf.LazyStringArrayList(zoneIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @return A list containing the zoneIds.
*/
public com.google.protobuf.ProtocolStringList
getZoneIdsList() {
return zoneIds_.getUnmodifiableView();
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @return The count of zoneIds.
*/
public int getZoneIdsCount() {
return zoneIds_.size();
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param index The index of the element to return.
* @return The zoneIds at the given index.
*/
public java.lang.String getZoneIds(int index) {
return zoneIds_.get(index);
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the zoneIds at the given index.
*/
public com.google.protobuf.ByteString
getZoneIdsBytes(int index) {
return zoneIds_.getByteString(index);
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param index The index to set the value at.
* @param value The zoneIds to set.
* @return This builder for chaining.
*/
public Builder setZoneIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureZoneIdsIsMutable();
zoneIds_.set(index, value);
onChanged();
return this;
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param value The zoneIds to add.
* @return This builder for chaining.
*/
public Builder addZoneIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureZoneIdsIsMutable();
zoneIds_.add(value);
onChanged();
return this;
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param values The zoneIds to add.
* @return This builder for chaining.
*/
public Builder addAllZoneIds(
java.lang.Iterable values) {
ensureZoneIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, zoneIds_);
onChanged();
return this;
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @return This builder for chaining.
*/
public Builder clearZoneIds() {
zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* IDs of availability zones where the resource preset is available.
*
*
* repeated string zone_ids = 2;
* @param value The bytes of the zoneIds to add.
* @return This builder for chaining.
*/
public Builder addZoneIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureZoneIdsIsMutable();
zoneIds_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList diskTypeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureDiskTypeIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
diskTypeIds_ = new com.google.protobuf.LazyStringArrayList(diskTypeIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @return A list containing the diskTypeIds.
*/
public com.google.protobuf.ProtocolStringList
getDiskTypeIdsList() {
return diskTypeIds_.getUnmodifiableView();
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @return The count of diskTypeIds.
*/
public int getDiskTypeIdsCount() {
return diskTypeIds_.size();
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param index The index of the element to return.
* @return The diskTypeIds at the given index.
*/
public java.lang.String getDiskTypeIds(int index) {
return diskTypeIds_.get(index);
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param index The index of the value to return.
* @return The bytes of the diskTypeIds at the given index.
*/
public com.google.protobuf.ByteString
getDiskTypeIdsBytes(int index) {
return diskTypeIds_.getByteString(index);
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param index The index to set the value at.
* @param value The diskTypeIds to set.
* @return This builder for chaining.
*/
public Builder setDiskTypeIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDiskTypeIdsIsMutable();
diskTypeIds_.set(index, value);
onChanged();
return this;
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param value The diskTypeIds to add.
* @return This builder for chaining.
*/
public Builder addDiskTypeIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureDiskTypeIdsIsMutable();
diskTypeIds_.add(value);
onChanged();
return this;
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param values The diskTypeIds to add.
* @return This builder for chaining.
*/
public Builder addAllDiskTypeIds(
java.lang.Iterable values) {
ensureDiskTypeIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, diskTypeIds_);
onChanged();
return this;
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @return This builder for chaining.
*/
public Builder clearDiskTypeIds() {
diskTypeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* IDs of availability disk types available in the resource preset.
*
*
* repeated string disk_type_ids = 10;
* @param value The bytes of the diskTypeIds to add.
* @return This builder for chaining.
*/
public Builder addDiskTypeIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureDiskTypeIdsIsMutable();
diskTypeIds_.add(value);
onChanged();
return this;
}
private long cores_ ;
/**
*
* Number of CPU cores for a Greenplum® host created with the preset.
*
*
* int64 cores = 3;
* @return The cores.
*/
@java.lang.Override
public long getCores() {
return cores_;
}
/**
*
* Number of CPU cores for a Greenplum® host created with the preset.
*
*
* int64 cores = 3;
* @param value The cores to set.
* @return This builder for chaining.
*/
public Builder setCores(long value) {
cores_ = value;
onChanged();
return this;
}
/**
*
* Number of CPU cores for a Greenplum® host created with the preset.
*
*
* int64 cores = 3;
* @return This builder for chaining.
*/
public Builder clearCores() {
cores_ = 0L;
onChanged();
return this;
}
private long memory_ ;
/**
*
* RAM volume for a Greenplum® host created with the preset, in bytes.
*
*
* int64 memory = 4;
* @return The memory.
*/
@java.lang.Override
public long getMemory() {
return memory_;
}
/**
*
* RAM volume for a Greenplum® host created with the preset, in bytes.
*
*
* int64 memory = 4;
* @param value The memory to set.
* @return This builder for chaining.
*/
public Builder setMemory(long value) {
memory_ = value;
onChanged();
return this;
}
/**
*
* RAM volume for a Greenplum® host created with the preset, in bytes.
*
*
* int64 memory = 4;
* @return This builder for chaining.
*/
public Builder clearMemory() {
memory_ = 0L;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type type = 5;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type type = 5;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type type = 5;
* @return The type.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type result = yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type.UNRECOGNIZED : result;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type type = 5;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Host type.
*
*
* .yandex.cloud.mdb.greenplum.v1.ResourcePreset.Type type = 5;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private long hostCountDivider_ ;
/**
*
* The number of hosts must be divisible by [host_count_divider].
*
*
* int64 host_count_divider = 8;
* @return The hostCountDivider.
*/
@java.lang.Override
public long getHostCountDivider() {
return hostCountDivider_;
}
/**
*
* The number of hosts must be divisible by [host_count_divider].
*
*
* int64 host_count_divider = 8;
* @param value The hostCountDivider to set.
* @return This builder for chaining.
*/
public Builder setHostCountDivider(long value) {
hostCountDivider_ = value;
onChanged();
return this;
}
/**
*
* The number of hosts must be divisible by [host_count_divider].
*
*
* int64 host_count_divider = 8;
* @return This builder for chaining.
*/
public Builder clearHostCountDivider() {
hostCountDivider_ = 0L;
onChanged();
return this;
}
private long maxSegmentInHostCount_ ;
/**
*
* Maximum number of segments in segment host.
*
*
* int64 max_segment_in_host_count = 9;
* @return The maxSegmentInHostCount.
*/
@java.lang.Override
public long getMaxSegmentInHostCount() {
return maxSegmentInHostCount_;
}
/**
*
* Maximum number of segments in segment host.
*
*
* int64 max_segment_in_host_count = 9;
* @param value The maxSegmentInHostCount to set.
* @return This builder for chaining.
*/
public Builder setMaxSegmentInHostCount(long value) {
maxSegmentInHostCount_ = value;
onChanged();
return this;
}
/**
*
* Maximum number of segments in segment host.
*
*
* int64 max_segment_in_host_count = 9;
* @return This builder for chaining.
*/
public Builder clearMaxSegmentInHostCount() {
maxSegmentInHostCount_ = 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:yandex.cloud.mdb.greenplum.v1.ResourcePreset)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ResourcePreset)
private static final yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset();
}
public static yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResourcePreset parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResourcePreset(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 yandex.cloud.api.mdb.greenplum.v1.ResourcePresetOuterClass.ResourcePreset getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n3yandex/cloud/mdb/greenplum/v1/resource" +
"_preset.proto\022\035yandex.cloud.mdb.greenplu" +
"m.v1\"\234\002\n\016ResourcePreset\022\n\n\002id\030\001 \001(\t\022\020\n\010z" +
"one_ids\030\002 \003(\t\022\025\n\rdisk_type_ids\030\n \003(\t\022\r\n\005" +
"cores\030\003 \001(\003\022\016\n\006memory\030\004 \001(\003\022@\n\004type\030\005 \001(" +
"\01622.yandex.cloud.mdb.greenplum.v1.Resour" +
"cePreset.Type\022\032\n\022host_count_divider\030\010 \001(" +
"\003\022!\n\031max_segment_in_host_count\030\t \001(\003\"5\n\004" +
"Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006MASTER\020\001\022\013" +
"\n\007SEGMENT\020\002Bp\n!yandex.cloud.api.mdb.gree" +
"nplum.v1ZKgithub.com/yandex-cloud/go-gen" +
"proto/yandex/cloud/mdb/greenplum/v1;gree" +
"nplumb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_greenplum_v1_ResourcePreset_descriptor,
new java.lang.String[] { "Id", "ZoneIds", "DiskTypeIds", "Cores", "Memory", "Type", "HostCountDivider", "MaxSegmentInHostCount", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy