All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/mdb/elasticsearch/v1/resource_preset.proto

package yandex.cloud.api.mdb.elasticsearch.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.elasticsearch.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); /** *
     * Number of CPU cores for an Elasticsearch node created with the preset.
     * 
* * int64 cores = 3; * @return The cores. */ long getCores(); /** *
     * RAM volume for an Elasticsearch node created with the preset, in bytes.
     * 
* * int64 memory = 4; * @return The memory. */ long getMemory(); } /** *
   * A ResourcePreset resource for describing hardware configuration presets.
   * 
* * Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.ResourcePreset} */ public static final class ResourcePreset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.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; } @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; } 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(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ResourcePreset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ResourcePreset_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset.class, yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset.Builder.class); } 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 CORES_FIELD_NUMBER = 3; private long cores_; /** *
     * Number of CPU cores for an Elasticsearch node 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 an Elasticsearch node created with the preset, in bytes.
     * 
* * int64 memory = 4; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } 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_); } 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_); } 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.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset)) { return super.equals(obj); } yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset other = (yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset) obj; if (!getId() .equals(other.getId())) return false; if (!getZoneIdsList() .equals(other.getZoneIdsList())) return false; if (getCores() != other.getCores()) return false; if (getMemory() != other.getMemory()) 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(); } 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.elasticsearch.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.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.elasticsearch.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.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.elasticsearch.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.elasticsearch.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.elasticsearch.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.elasticsearch.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.elasticsearch.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.elasticsearch.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.elasticsearch.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.elasticsearch.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 ResourcePreset resource for describing hardware configuration presets.
     * 
* * Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.ResourcePreset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.ResourcePreset) yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePresetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ResourcePreset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ResourcePreset_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset.class, yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset.Builder.class); } // Construct using yandex.cloud.api.mdb.elasticsearch.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); cores_ = 0L; memory_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ResourcePreset_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset getDefaultInstanceForType() { return yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset build() { yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset buildPartial() { yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset result = new yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset(this); int from_bitField0_ = bitField0_; result.id_ = id_; if (((bitField0_ & 0x00000001) != 0)) { zoneIds_ = zoneIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.zoneIds_ = zoneIds_; result.cores_ = cores_; result.memory_ = memory_; 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.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset) { return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset other) { if (other == yandex.cloud.api.mdb.elasticsearch.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.getCores() != 0L) { setCores(other.getCores()); } if (other.getMemory() != 0L) { setMemory(other.getMemory()); } 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.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.elasticsearch.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 long cores_ ; /** *
       * Number of CPU cores for an Elasticsearch node created with the preset.
       * 
* * int64 cores = 3; * @return The cores. */ @java.lang.Override public long getCores() { return cores_; } /** *
       * Number of CPU cores for an Elasticsearch node 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 an Elasticsearch node 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 an Elasticsearch node created with the preset, in bytes.
       * 
* * int64 memory = 4; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } /** *
       * RAM volume for an Elasticsearch node 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 an Elasticsearch node created with the preset, in bytes.
       * 
* * int64 memory = 4; * @return This builder for chaining. */ public Builder clearMemory() { memory_ = 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.elasticsearch.v1.ResourcePreset) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.ResourcePreset) private static final yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset(); } public static yandex.cloud.api.mdb.elasticsearch.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.elasticsearch.v1.ResourcePresetOuterClass.ResourcePreset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_elasticsearch_v1_ResourcePreset_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_elasticsearch_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 = { "\n7yandex/cloud/mdb/elasticsearch/v1/reso" + "urce_preset.proto\022!yandex.cloud.mdb.elas" + "ticsearch.v1\"M\n\016ResourcePreset\022\n\n\002id\030\001 \001" + "(\t\022\020\n\010zone_ids\030\002 \003(\t\022\r\n\005cores\030\003 \001(\003\022\016\n\006m" + "emory\030\004 \001(\003B|\n%yandex.cloud.api.mdb.elas" + "ticsearch.v1ZSgithub.com/yandex-cloud/go" + "-genproto/yandex/cloud/mdb/elasticsearch" + "/v1;elasticsearchb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_yandex_cloud_mdb_elasticsearch_v1_ResourcePreset_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_mdb_elasticsearch_v1_ResourcePreset_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_elasticsearch_v1_ResourcePreset_descriptor, new java.lang.String[] { "Id", "ZoneIds", "Cores", "Memory", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy