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

yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass Maven / Gradle / Ivy

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

package yandex.cloud.api.mdb.opensearch.v1;

public final class ClusterOuterClass {
  private ClusterOuterClass() {}
  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 ClusterOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Cluster)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the OpenSearch cluster.
     * This ID is assigned by the platform at the moment of cluster creation.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the OpenSearch cluster.
     * This ID is assigned by the platform at the moment of cluster creation.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the OpenSearch cluster belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the OpenSearch cluster belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Time when the cluster was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Time when the cluster was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Time when the cluster was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the OpenSearch cluster.
     * The name is unique within the folder. 1-63 characters long.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the OpenSearch cluster.
     * The name is unique within the folder. 1-63 characters long.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the OpenSearch cluster. 0-256 characters long.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the OpenSearch cluster. 0-256 characters long.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Custom labels for the OpenSearch cluster as `key:value` pairs.
     * Maximum 64 labels per resource.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * Custom labels for the OpenSearch cluster as `key:value` pairs.
     * Maximum 64 labels per resource.
     * 
* * map<string, string> labels = 6; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Custom labels for the OpenSearch cluster as `key:value` pairs.
     * Maximum 64 labels per resource.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** *
     * Custom labels for the OpenSearch cluster as `key:value` pairs.
     * Maximum 64 labels per resource.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Custom labels for the OpenSearch cluster as `key:value` pairs.
     * Maximum 64 labels per resource.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Deployment environment of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 7; * @return The enum numeric value on the wire for environment. */ int getEnvironmentValue(); /** *
     * Deployment environment of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 7; * @return The environment. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment getEnvironment(); /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ java.util.List getMonitoringList(); /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring getMonitoring(int index); /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ int getMonitoringCount(); /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ java.util.List getMonitoringOrBuilderList(); /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder( int index); /** *
     * Configuration of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; * @return Whether the config field is set. */ boolean hasConfig(); /** *
     * Configuration of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; * @return The config. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig getConfig(); /** *
     * Configuration of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder(); /** *
     * ID of the cloud network that the cluster belongs to.
     * 
* * string network_id = 10; * @return The networkId. */ java.lang.String getNetworkId(); /** *
     * ID of the cloud network that the cluster belongs to.
     * 
* * string network_id = 10; * @return The bytes for networkId. */ com.google.protobuf.ByteString getNetworkIdBytes(); /** *
     * Aggregated cluster health.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Health health = 11; * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** *
     * Aggregated cluster health.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Health health = 11; * @return The health. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health getHealth(); /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Status status = 12; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Status status = 12; * @return The status. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status getStatus(); /** *
     * User security groups.
     * 
* * repeated string security_group_ids = 13; * @return A list containing the securityGroupIds. */ java.util.List getSecurityGroupIdsList(); /** *
     * User security groups.
     * 
* * repeated string security_group_ids = 13; * @return The count of securityGroupIds. */ int getSecurityGroupIdsCount(); /** *
     * User security groups.
     * 
* * repeated string security_group_ids = 13; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ java.lang.String getSecurityGroupIds(int index); /** *
     * User security groups.
     * 
* * repeated string security_group_ids = 13; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index); /** *
     * ID of the service account used to access Object Storage.
     * 
* * string service_account_id = 14; * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** *
     * ID of the service account used to access Object Storage.
     * 
* * string service_account_id = 14; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** *
     * Determines whether the cluster is protected from being deleted.
     * 
* * bool deletion_protection = 15; * @return The deletionProtection. */ boolean getDeletionProtection(); /** *
     * Cluster maintenance window. Should be defined by either one of the two options.
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; * @return Whether the maintenanceWindow field is set. */ boolean hasMaintenanceWindow(); /** *
     * Cluster maintenance window. Should be defined by either one of the two options.
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; * @return The maintenanceWindow. */ yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow getMaintenanceWindow(); /** *
     * Cluster maintenance window. Should be defined by either one of the two options.
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; */ yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder(); /** *
     * Maintenance operation planned at nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; * @return Whether the plannedOperation field is set. */ boolean hasPlannedOperation(); /** *
     * Maintenance operation planned at nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; * @return The plannedOperation. */ yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation getPlannedOperation(); /** *
     * Maintenance operation planned at nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; */ yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperationOrBuilder getPlannedOperationOrBuilder(); } /** *
   * An OpenSearch cluster resource.
   * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Cluster} */ public static final class Cluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Cluster) ClusterOrBuilder { private static final long serialVersionUID = 0L; // Use Cluster.newBuilder() to construct. private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Cluster() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; environment_ = 0; monitoring_ = java.util.Collections.emptyList(); networkId_ = ""; health_ = 0; status_ = 0; securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; serviceAccountId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Cluster(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Cluster( 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(); folderId_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { 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; } case 56: { int rawValue = input.readEnum(); environment_ = rawValue; break; } case 66: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { monitoring_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } monitoring_.add( input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.parser(), extensionRegistry)); break; } case 74: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.Builder subBuilder = null; if (config_ != null) { subBuilder = config_.toBuilder(); } config_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(config_); config_ = subBuilder.buildPartial(); } break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); networkId_ = s; break; } case 88: { int rawValue = input.readEnum(); health_ = rawValue; break; } case 96: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 106: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } securityGroupIds_.add(s); break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); serviceAccountId_ = s; break; } case 120: { deletionProtection_ = input.readBool(); break; } case 130: { yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.Builder subBuilder = null; if (maintenanceWindow_ != null) { subBuilder = maintenanceWindow_.toBuilder(); } maintenanceWindow_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maintenanceWindow_); maintenanceWindow_ = subBuilder.buildPartial(); } break; } case 138: { yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.Builder subBuilder = null; if (plannedOperation_ != null) { subBuilder = plannedOperation_.toBuilder(); } plannedOperation_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(plannedOperation_); plannedOperation_ = 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_ & 0x00000002) != 0)) { monitoring_ = java.util.Collections.unmodifiableList(monitoring_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.opensearch.v1.Cluster.Environment} */ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { /** * ENVIRONMENT_UNSPECIFIED = 0; */ ENVIRONMENT_UNSPECIFIED(0), /** *
       * Stable environment with a conservative update policy:
       * only hotfixes are applied during regular maintenance.
       * 
* * PRODUCTION = 1; */ PRODUCTION(1), /** *
       * Environment with more aggressive update policy: new versions
       * are rolled out irrespective of backward compatibility.
       * 
* * PRESTABLE = 2; */ PRESTABLE(2), UNRECOGNIZED(-1), ; /** * ENVIRONMENT_UNSPECIFIED = 0; */ public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** *
       * Stable environment with a conservative update policy:
       * only hotfixes are applied during regular maintenance.
       * 
* * PRODUCTION = 1; */ public static final int PRODUCTION_VALUE = 1; /** *
       * Environment with more aggressive update policy: new versions
       * are rolled out irrespective of backward compatibility.
       * 
* * PRESTABLE = 2; */ public static final int PRESTABLE_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 Environment 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 Environment forNumber(int value) { switch (value) { case 0: return ENVIRONMENT_UNSPECIFIED; case 1: return PRODUCTION; case 2: return PRESTABLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Environment> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Environment findValueByNumber(int number) { return Environment.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.opensearch.v1.ClusterOuterClass.Cluster.getDescriptor().getEnumTypes().get(0); } private static final Environment[] VALUES = values(); public static Environment 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 Environment(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.opensearch.v1.Cluster.Environment) } /** * Protobuf enum {@code yandex.cloud.mdb.opensearch.v1.Cluster.Health} */ public enum Health implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Health of the cluster is unknown ([Host.health] for every host in the cluster is UNKNOWN).
       * 
* * HEALTH_UNKNOWN = 0; */ HEALTH_UNKNOWN(0), /** *
       * Cluster is working normally ([Host.health] for every host in the cluster is ALIVE).
       * 
* * ALIVE = 1; */ ALIVE(1), /** *
       * Cluster is inoperable ([Host.health] for every host in the cluster is DEAD).
       * 
* * DEAD = 2; */ DEAD(2), /** *
       * Cluster is working below capacity ([Host.health] for at least one host in the cluster is not ALIVE).
       * 
* * DEGRADED = 3; */ DEGRADED(3), UNRECOGNIZED(-1), ; /** *
       * Health of the cluster is unknown ([Host.health] for every host in the cluster is UNKNOWN).
       * 
* * HEALTH_UNKNOWN = 0; */ public static final int HEALTH_UNKNOWN_VALUE = 0; /** *
       * Cluster is working normally ([Host.health] for every host in the cluster is ALIVE).
       * 
* * ALIVE = 1; */ public static final int ALIVE_VALUE = 1; /** *
       * Cluster is inoperable ([Host.health] for every host in the cluster is DEAD).
       * 
* * DEAD = 2; */ public static final int DEAD_VALUE = 2; /** *
       * Cluster is working below capacity ([Host.health] for at least one host in the cluster is not ALIVE).
       * 
* * DEGRADED = 3; */ public static final int DEGRADED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Health 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 Health forNumber(int value) { switch (value) { case 0: return HEALTH_UNKNOWN; case 1: return ALIVE; case 2: return DEAD; case 3: return DEGRADED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Health> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Health findValueByNumber(int number) { return Health.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.opensearch.v1.ClusterOuterClass.Cluster.getDescriptor().getEnumTypes().get(1); } private static final Health[] VALUES = values(); public static Health 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 Health(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.opensearch.v1.Cluster.Health) } /** *
     * Current state of the cluster.
     * 
* * Protobuf enum {@code yandex.cloud.mdb.opensearch.v1.Cluster.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Cluster state is unknown.
       * 
* * STATUS_UNKNOWN = 0; */ STATUS_UNKNOWN(0), /** *
       * Cluster is being created.
       * 
* * CREATING = 1; */ CREATING(1), /** *
       * Cluster is running normally.
       * 
* * RUNNING = 2; */ RUNNING(2), /** *
       * Cluster has encountered a problem and cannot operate.
       * 
* * ERROR = 3; */ ERROR(3), /** *
       * Cluster is being updated.
       * 
* * UPDATING = 4; */ UPDATING(4), /** *
       * Cluster is stopping.
       * 
* * STOPPING = 5; */ STOPPING(5), /** *
       * Cluster has stopped.
       * 
* * STOPPED = 6; */ STOPPED(6), /** *
       * Cluster is starting.
       * 
* * STARTING = 7; */ STARTING(7), UNRECOGNIZED(-1), ; /** *
       * Cluster state is unknown.
       * 
* * STATUS_UNKNOWN = 0; */ public static final int STATUS_UNKNOWN_VALUE = 0; /** *
       * Cluster is being created.
       * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** *
       * Cluster is running normally.
       * 
* * RUNNING = 2; */ public static final int RUNNING_VALUE = 2; /** *
       * Cluster has encountered a problem and cannot operate.
       * 
* * ERROR = 3; */ public static final int ERROR_VALUE = 3; /** *
       * Cluster is being updated.
       * 
* * UPDATING = 4; */ public static final int UPDATING_VALUE = 4; /** *
       * Cluster is stopping.
       * 
* * STOPPING = 5; */ public static final int STOPPING_VALUE = 5; /** *
       * Cluster has stopped.
       * 
* * STOPPED = 6; */ public static final int STOPPED_VALUE = 6; /** *
       * Cluster is starting.
       * 
* * STARTING = 7; */ public static final int STARTING_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNKNOWN; case 1: return CREATING; case 2: return RUNNING; case 3: return ERROR; case 4: return UPDATING; case 5: return STOPPING; case 6: return STOPPED; case 7: return STARTING; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.getDescriptor().getEnumTypes().get(2); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.opensearch.v1.Cluster.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the OpenSearch cluster.
     * This ID is assigned by the platform at the moment of cluster creation.
     * 
* * 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 OpenSearch cluster.
     * This ID is assigned by the platform at the moment of cluster creation.
     * 
* * 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 FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the OpenSearch cluster belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; 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(); folderId_ = s; return s; } } /** *
     * ID of the folder that the OpenSearch cluster belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Time when the cluster was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Time when the cluster was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Time when the cluster was created.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the OpenSearch cluster.
     * The name is unique within the folder. 1-63 characters long.
     * 
* * string name = 4; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the OpenSearch cluster.
     * The name is unique within the folder. 1-63 characters long.
     * 
* * string name = 4; * @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 DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** *
     * Description of the OpenSearch cluster. 0-256 characters long.
     * 
* * string description = 5; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
     * Description of the OpenSearch cluster. 0-256 characters long.
     * 
* * string description = 5; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 6; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_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(); } /** *
     * Custom labels for the OpenSearch cluster as `key:value` pairs.
     * Maximum 64 labels per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Custom labels for the OpenSearch cluster as `key:value` pairs.
     * Maximum 64 labels per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Custom labels for the OpenSearch cluster as `key:value` pairs.
     * Maximum 64 labels per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Custom labels for the OpenSearch cluster as `key:value` pairs.
     * Maximum 64 labels per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ENVIRONMENT_FIELD_NUMBER = 7; private int environment_; /** *
     * Deployment environment of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 7; * @return The enum numeric value on the wire for environment. */ @java.lang.Override public int getEnvironmentValue() { return environment_; } /** *
     * Deployment environment of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 7; * @return The environment. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment getEnvironment() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result; } public static final int MONITORING_FIELD_NUMBER = 8; private java.util.List monitoring_; /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ @java.lang.Override public java.util.List getMonitoringList() { return monitoring_; } /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ @java.lang.Override public java.util.List getMonitoringOrBuilderList() { return monitoring_; } /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ @java.lang.Override public int getMonitoringCount() { return monitoring_.size(); } /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring getMonitoring(int index) { return monitoring_.get(index); } /** *
     * Description of monitoring systems relevant to the OpenSearch cluster.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder( int index) { return monitoring_.get(index); } public static final int CONFIG_FIELD_NUMBER = 9; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig config_; /** *
     * Configuration of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; * @return Whether the config field is set. */ @java.lang.Override public boolean hasConfig() { return config_ != null; } /** *
     * Configuration of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; * @return The config. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig getConfig() { return config_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_; } /** *
     * Configuration of the OpenSearch cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder() { return getConfig(); } public static final int NETWORK_ID_FIELD_NUMBER = 10; private volatile java.lang.Object networkId_; /** *
     * ID of the cloud network that the cluster belongs to.
     * 
* * string network_id = 10; * @return The networkId. */ @java.lang.Override public java.lang.String getNetworkId() { java.lang.Object ref = networkId_; 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(); networkId_ = s; return s; } } /** *
     * ID of the cloud network that the cluster belongs to.
     * 
* * string network_id = 10; * @return The bytes for networkId. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkIdBytes() { java.lang.Object ref = networkId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HEALTH_FIELD_NUMBER = 11; private int health_; /** *
     * Aggregated cluster health.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Health health = 11; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
     * Aggregated cluster health.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Health health = 11; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health.UNRECOGNIZED : result; } public static final int STATUS_FIELD_NUMBER = 12; private int status_; /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Status status = 12; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Status status = 12; * @return The status. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status.valueOf(status_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status.UNRECOGNIZED : result; } public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 13; private com.google.protobuf.LazyStringList securityGroupIds_; /** *
     * User security groups.
     * 
* * repeated string security_group_ids = 13; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_; } /** *
     * User security groups.
     * 
* * repeated string security_group_ids = 13; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
     * User security groups.
     * 
* * repeated string security_group_ids = 13; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
     * User security groups.
     * 
* * repeated string security_group_ids = 13; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 14; private volatile java.lang.Object serviceAccountId_; /** *
     * ID of the service account used to access Object Storage.
     * 
* * string service_account_id = 14; * @return The serviceAccountId. */ @java.lang.Override public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; 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(); serviceAccountId_ = s; return s; } } /** *
     * ID of the service account used to access Object Storage.
     * 
* * string service_account_id = 14; * @return The bytes for serviceAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DELETION_PROTECTION_FIELD_NUMBER = 15; private boolean deletionProtection_; /** *
     * Determines whether the cluster is protected from being deleted.
     * 
* * bool deletion_protection = 15; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } public static final int MAINTENANCE_WINDOW_FIELD_NUMBER = 16; private yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow maintenanceWindow_; /** *
     * Cluster maintenance window. Should be defined by either one of the two options.
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; * @return Whether the maintenanceWindow field is set. */ @java.lang.Override public boolean hasMaintenanceWindow() { return maintenanceWindow_ != null; } /** *
     * Cluster maintenance window. Should be defined by either one of the two options.
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; * @return The maintenanceWindow. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow_ == null ? yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_; } /** *
     * Cluster maintenance window. Should be defined by either one of the two options.
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder() { return getMaintenanceWindow(); } public static final int PLANNED_OPERATION_FIELD_NUMBER = 17; private yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation plannedOperation_; /** *
     * Maintenance operation planned at nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; * @return Whether the plannedOperation field is set. */ @java.lang.Override public boolean hasPlannedOperation() { return plannedOperation_ != null; } /** *
     * Maintenance operation planned at nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; * @return The plannedOperation. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation getPlannedOperation() { return plannedOperation_ == null ? yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.getDefaultInstance() : plannedOperation_; } /** *
     * Maintenance operation planned at nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperationOrBuilder getPlannedOperationOrBuilder() { return getPlannedOperation(); } 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (environment_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(7, environment_); } for (int i = 0; i < monitoring_.size(); i++) { output.writeMessage(8, monitoring_.get(i)); } if (config_ != null) { output.writeMessage(9, getConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, networkId_); } if (health_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health.HEALTH_UNKNOWN.getNumber()) { output.writeEnum(11, health_); } if (status_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status.STATUS_UNKNOWN.getNumber()) { output.writeEnum(12, status_); } for (int i = 0; i < securityGroupIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, securityGroupIds_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, serviceAccountId_); } if (deletionProtection_ != false) { output.writeBool(15, deletionProtection_); } if (maintenanceWindow_ != null) { output.writeMessage(16, getMaintenanceWindow()); } if (plannedOperation_ != null) { output.writeMessage(17, getPlannedOperation()); } 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_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } 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(6, labels__); } if (environment_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, environment_); } for (int i = 0; i < monitoring_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, monitoring_.get(i)); } if (config_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, networkId_); } if (health_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health.HEALTH_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, health_); } if (status_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status.STATUS_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, status_); } { int dataSize = 0; for (int i = 0; i < securityGroupIds_.size(); i++) { dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i)); } size += dataSize; size += 1 * getSecurityGroupIdsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, serviceAccountId_); } if (deletionProtection_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, deletionProtection_); } if (maintenanceWindow_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getMaintenanceWindow()); } if (plannedOperation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getPlannedOperation()); } 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.opensearch.v1.ClusterOuterClass.Cluster)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (environment_ != other.environment_) return false; if (!getMonitoringList() .equals(other.getMonitoringList())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { if (!getConfig() .equals(other.getConfig())) return false; } if (!getNetworkId() .equals(other.getNetworkId())) return false; if (health_ != other.health_) return false; if (status_ != other.status_) return false; if (!getSecurityGroupIdsList() .equals(other.getSecurityGroupIdsList())) return false; if (!getServiceAccountId() .equals(other.getServiceAccountId())) return false; if (getDeletionProtection() != other.getDeletionProtection()) return false; if (hasMaintenanceWindow() != other.hasMaintenanceWindow()) return false; if (hasMaintenanceWindow()) { if (!getMaintenanceWindow() .equals(other.getMaintenanceWindow())) return false; } if (hasPlannedOperation() != other.hasPlannedOperation()) return false; if (hasPlannedOperation()) { if (!getPlannedOperation() .equals(other.getPlannedOperation())) 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(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + environment_; if (getMonitoringCount() > 0) { hash = (37 * hash) + MONITORING_FIELD_NUMBER; hash = (53 * hash) + getMonitoringList().hashCode(); } if (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getNetworkId().hashCode(); hash = (37 * hash) + HEALTH_FIELD_NUMBER; hash = (53 * hash) + health_; hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getSecurityGroupIdsCount() > 0) { hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER; hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); } hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountId().hashCode(); hash = (37 * hash) + DELETION_PROTECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeletionProtection()); if (hasMaintenanceWindow()) { hash = (37 * hash) + MAINTENANCE_WINDOW_FIELD_NUMBER; hash = (53 * hash) + getMaintenanceWindow().hashCode(); } if (hasPlannedOperation()) { hash = (37 * hash) + PLANNED_OPERATION_FIELD_NUMBER; hash = (53 * hash) + getPlannedOperation().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster 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.opensearch.v1.ClusterOuterClass.Cluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster 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.opensearch.v1.ClusterOuterClass.Cluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster 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.opensearch.v1.ClusterOuterClass.Cluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster 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.opensearch.v1.ClusterOuterClass.Cluster parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster 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.opensearch.v1.ClusterOuterClass.Cluster 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; } /** *
     * An OpenSearch cluster resource.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Cluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Cluster) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMonitoringFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; folderId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); environment_ = 0; if (monitoringBuilder_ == null) { monitoring_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { monitoringBuilder_.clear(); } if (configBuilder_ == null) { config_ = null; } else { config_ = null; configBuilder_ = null; } networkId_ = ""; health_ = 0; status_ = 0; securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); serviceAccountId_ = ""; deletionProtection_ = false; if (maintenanceWindowBuilder_ == null) { maintenanceWindow_ = null; } else { maintenanceWindow_ = null; maintenanceWindowBuilder_ = null; } if (plannedOperationBuilder_ == null) { plannedOperation_ = null; } else { plannedOperation_ = null; plannedOperationBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.environment_ = environment_; if (monitoringBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { monitoring_ = java.util.Collections.unmodifiableList(monitoring_); bitField0_ = (bitField0_ & ~0x00000002); } result.monitoring_ = monitoring_; } else { result.monitoring_ = monitoringBuilder_.build(); } if (configBuilder_ == null) { result.config_ = config_; } else { result.config_ = configBuilder_.build(); } result.networkId_ = networkId_; result.health_ = health_; result.status_ = status_; if (((bitField0_ & 0x00000004) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.securityGroupIds_ = securityGroupIds_; result.serviceAccountId_ = serviceAccountId_; result.deletionProtection_ = deletionProtection_; if (maintenanceWindowBuilder_ == null) { result.maintenanceWindow_ = maintenanceWindow_; } else { result.maintenanceWindow_ = maintenanceWindowBuilder_.build(); } if (plannedOperationBuilder_ == null) { result.plannedOperation_ = plannedOperation_; } else { result.plannedOperation_ = plannedOperationBuilder_.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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.environment_ != 0) { setEnvironmentValue(other.getEnvironmentValue()); } if (monitoringBuilder_ == null) { if (!other.monitoring_.isEmpty()) { if (monitoring_.isEmpty()) { monitoring_ = other.monitoring_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMonitoringIsMutable(); monitoring_.addAll(other.monitoring_); } onChanged(); } } else { if (!other.monitoring_.isEmpty()) { if (monitoringBuilder_.isEmpty()) { monitoringBuilder_.dispose(); monitoringBuilder_ = null; monitoring_ = other.monitoring_; bitField0_ = (bitField0_ & ~0x00000002); monitoringBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMonitoringFieldBuilder() : null; } else { monitoringBuilder_.addAllMessages(other.monitoring_); } } } if (other.hasConfig()) { mergeConfig(other.getConfig()); } if (!other.getNetworkId().isEmpty()) { networkId_ = other.networkId_; onChanged(); } if (other.health_ != 0) { setHealthValue(other.getHealthValue()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (!other.securityGroupIds_.isEmpty()) { if (securityGroupIds_.isEmpty()) { securityGroupIds_ = other.securityGroupIds_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.addAll(other.securityGroupIds_); } onChanged(); } if (!other.getServiceAccountId().isEmpty()) { serviceAccountId_ = other.serviceAccountId_; onChanged(); } if (other.getDeletionProtection() != false) { setDeletionProtection(other.getDeletionProtection()); } if (other.hasMaintenanceWindow()) { mergeMaintenanceWindow(other.getMaintenanceWindow()); } if (other.hasPlannedOperation()) { mergePlannedOperation(other.getPlannedOperation()); } 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.opensearch.v1.ClusterOuterClass.Cluster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the OpenSearch cluster.
       * This ID is assigned by the platform at the moment of cluster creation.
       * 
* * 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 OpenSearch cluster.
       * This ID is assigned by the platform at the moment of cluster creation.
       * 
* * 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 OpenSearch cluster.
       * This ID is assigned by the platform at the moment of cluster creation.
       * 
* * 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 OpenSearch cluster.
       * This ID is assigned by the platform at the moment of cluster creation.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the OpenSearch cluster.
       * This ID is assigned by the platform at the moment of cluster creation.
       * 
* * 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 java.lang.Object folderId_ = ""; /** *
       * ID of the folder that the OpenSearch cluster belongs to.
       * 
* * string folder_id = 2; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder that the OpenSearch cluster belongs to.
       * 
* * string folder_id = 2; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder that the OpenSearch cluster belongs to.
       * 
* * string folder_id = 2; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
       * ID of the folder that the OpenSearch cluster belongs to.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the OpenSearch cluster belongs to.
       * 
* * string folder_id = 2; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Time when the cluster was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Time when the cluster was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Time when the cluster was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Time when the cluster was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time when the cluster was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Time when the cluster was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Time when the cluster was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Time when the cluster was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Time when the cluster was created.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the OpenSearch cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the OpenSearch cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the OpenSearch cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the OpenSearch cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the OpenSearch cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the OpenSearch cluster. 0-256 characters long.
       * 
* * string description = 5; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the OpenSearch cluster. 0-256 characters long.
       * 
* * string description = 5; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the OpenSearch cluster. 0-256 characters long.
       * 
* * string description = 5; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the OpenSearch cluster. 0-256 characters long.
       * 
* * string description = 5; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the OpenSearch cluster. 0-256 characters long.
       * 
* * string description = 5; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = 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(); } /** *
       * Custom labels for the OpenSearch cluster as `key:value` pairs.
       * Maximum 64 labels per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Custom labels for the OpenSearch cluster as `key:value` pairs.
       * Maximum 64 labels per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Custom labels for the OpenSearch cluster as `key:value` pairs.
       * Maximum 64 labels per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Custom labels for the OpenSearch cluster as `key:value` pairs.
       * Maximum 64 labels per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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; } /** *
       * Custom labels for the OpenSearch cluster as `key:value` pairs.
       * Maximum 64 labels per resource.
       * 
* * map<string, string> labels = 6; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Custom labels for the OpenSearch cluster as `key:value` pairs.
       * Maximum 64 labels per resource.
       * 
* * map<string, string> labels = 6; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Custom labels for the OpenSearch cluster as `key:value` pairs.
       * Maximum 64 labels per resource.
       * 
* * map<string, string> labels = 6; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private int environment_ = 0; /** *
       * Deployment environment of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 7; * @return The enum numeric value on the wire for environment. */ @java.lang.Override public int getEnvironmentValue() { return environment_; } /** *
       * Deployment environment of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 7; * @param value The enum numeric value on the wire for environment to set. * @return This builder for chaining. */ public Builder setEnvironmentValue(int value) { environment_ = value; onChanged(); return this; } /** *
       * Deployment environment of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 7; * @return The environment. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment getEnvironment() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result; } /** *
       * Deployment environment of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 7; * @param value The environment to set. * @return This builder for chaining. */ public Builder setEnvironment(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment value) { if (value == null) { throw new NullPointerException(); } environment_ = value.getNumber(); onChanged(); return this; } /** *
       * Deployment environment of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 7; * @return This builder for chaining. */ public Builder clearEnvironment() { environment_ = 0; onChanged(); return this; } private java.util.List monitoring_ = java.util.Collections.emptyList(); private void ensureMonitoringIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { monitoring_ = new java.util.ArrayList(monitoring_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.MonitoringOrBuilder> monitoringBuilder_; /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public java.util.List getMonitoringList() { if (monitoringBuilder_ == null) { return java.util.Collections.unmodifiableList(monitoring_); } else { return monitoringBuilder_.getMessageList(); } } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public int getMonitoringCount() { if (monitoringBuilder_ == null) { return monitoring_.size(); } else { return monitoringBuilder_.getCount(); } } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring getMonitoring(int index) { if (monitoringBuilder_ == null) { return monitoring_.get(index); } else { return monitoringBuilder_.getMessage(index); } } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public Builder setMonitoring( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring value) { if (monitoringBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonitoringIsMutable(); monitoring_.set(index, value); onChanged(); } else { monitoringBuilder_.setMessage(index, value); } return this; } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public Builder setMonitoring( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder builderForValue) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); monitoring_.set(index, builderForValue.build()); onChanged(); } else { monitoringBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public Builder addMonitoring(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring value) { if (monitoringBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonitoringIsMutable(); monitoring_.add(value); onChanged(); } else { monitoringBuilder_.addMessage(value); } return this; } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public Builder addMonitoring( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring value) { if (monitoringBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonitoringIsMutable(); monitoring_.add(index, value); onChanged(); } else { monitoringBuilder_.addMessage(index, value); } return this; } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public Builder addMonitoring( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder builderForValue) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); monitoring_.add(builderForValue.build()); onChanged(); } else { monitoringBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public Builder addMonitoring( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder builderForValue) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); monitoring_.add(index, builderForValue.build()); onChanged(); } else { monitoringBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public Builder addAllMonitoring( java.lang.Iterable values) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, monitoring_); onChanged(); } else { monitoringBuilder_.addAllMessages(values); } return this; } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public Builder clearMonitoring() { if (monitoringBuilder_ == null) { monitoring_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { monitoringBuilder_.clear(); } return this; } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public Builder removeMonitoring(int index) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); monitoring_.remove(index); onChanged(); } else { monitoringBuilder_.remove(index); } return this; } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder getMonitoringBuilder( int index) { return getMonitoringFieldBuilder().getBuilder(index); } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder( int index) { if (monitoringBuilder_ == null) { return monitoring_.get(index); } else { return monitoringBuilder_.getMessageOrBuilder(index); } } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public java.util.List getMonitoringOrBuilderList() { if (monitoringBuilder_ != null) { return monitoringBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(monitoring_); } } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder addMonitoringBuilder() { return getMonitoringFieldBuilder().addBuilder( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.getDefaultInstance()); } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder addMonitoringBuilder( int index) { return getMonitoringFieldBuilder().addBuilder( index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.getDefaultInstance()); } /** *
       * Description of monitoring systems relevant to the OpenSearch cluster.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Monitoring monitoring = 8; */ public java.util.List getMonitoringBuilderList() { return getMonitoringFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.MonitoringOrBuilder> getMonitoringFieldBuilder() { if (monitoringBuilder_ == null) { monitoringBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.MonitoringOrBuilder>( monitoring_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); monitoring_ = null; } return monitoringBuilder_; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig config_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfigOrBuilder> configBuilder_; /** *
       * Configuration of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** *
       * Configuration of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; * @return The config. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig getConfig() { if (configBuilder_ == null) { return config_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
       * Configuration of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; */ public Builder setConfig(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } return this; } /** *
       * Configuration of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; */ public Builder setConfig( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; */ public Builder mergeConfig(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { config_ = null; configBuilder_ = null; } return this; } /** *
       * Configuration of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.Builder getConfigBuilder() { onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
       * Configuration of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_; } } /** *
       * Configuration of the OpenSearch cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.ClusterConfig config = 9; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfigOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } private java.lang.Object networkId_ = ""; /** *
       * ID of the cloud network that the cluster belongs to.
       * 
* * string network_id = 10; * @return The networkId. */ public java.lang.String getNetworkId() { java.lang.Object ref = networkId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the cloud network that the cluster belongs to.
       * 
* * string network_id = 10; * @return The bytes for networkId. */ public com.google.protobuf.ByteString getNetworkIdBytes() { java.lang.Object ref = networkId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the cloud network that the cluster belongs to.
       * 
* * string network_id = 10; * @param value The networkId to set. * @return This builder for chaining. */ public Builder setNetworkId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkId_ = value; onChanged(); return this; } /** *
       * ID of the cloud network that the cluster belongs to.
       * 
* * string network_id = 10; * @return This builder for chaining. */ public Builder clearNetworkId() { networkId_ = getDefaultInstance().getNetworkId(); onChanged(); return this; } /** *
       * ID of the cloud network that the cluster belongs to.
       * 
* * string network_id = 10; * @param value The bytes for networkId to set. * @return This builder for chaining. */ public Builder setNetworkIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkId_ = value; onChanged(); return this; } private int health_ = 0; /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Health health = 11; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Health health = 11; * @param value The enum numeric value on the wire for health to set. * @return This builder for chaining. */ public Builder setHealthValue(int value) { health_ = value; onChanged(); return this; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Health health = 11; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health.UNRECOGNIZED : result; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Health health = 11; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Health value) { if (value == null) { throw new NullPointerException(); } health_ = value.getNumber(); onChanged(); return this; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Health health = 11; * @return This builder for chaining. */ public Builder clearHealth() { health_ = 0; onChanged(); return this; } private int status_ = 0; /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Status status = 12; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Status status = 12; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Status status = 12; * @return The status. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status.valueOf(status_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status.UNRECOGNIZED : result; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Status status = 12; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Cluster.Status status = 12; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSecurityGroupIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_); bitField0_ |= 0x00000004; } } /** *
       * User security groups.
       * 
* * repeated string security_group_ids = 13; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_.getUnmodifiableView(); } /** *
       * User security groups.
       * 
* * repeated string security_group_ids = 13; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
       * User security groups.
       * 
* * repeated string security_group_ids = 13; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
       * User security groups.
       * 
* * repeated string security_group_ids = 13; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } /** *
       * User security groups.
       * 
* * repeated string security_group_ids = 13; * @param index The index to set the value at. * @param value The securityGroupIds to set. * @return This builder for chaining. */ public Builder setSecurityGroupIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.set(index, value); onChanged(); return this; } /** *
       * User security groups.
       * 
* * repeated string security_group_ids = 13; * @param value The securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } /** *
       * User security groups.
       * 
* * repeated string security_group_ids = 13; * @param values The securityGroupIds to add. * @return This builder for chaining. */ public Builder addAllSecurityGroupIds( java.lang.Iterable values) { ensureSecurityGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, securityGroupIds_); onChanged(); return this; } /** *
       * User security groups.
       * 
* * repeated string security_group_ids = 13; * @return This builder for chaining. */ public Builder clearSecurityGroupIds() { securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * User security groups.
       * 
* * repeated string security_group_ids = 13; * @param value The bytes of the securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } private java.lang.Object serviceAccountId_ = ""; /** *
       * ID of the service account used to access Object Storage.
       * 
* * string service_account_id = 14; * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the service account used to access Object Storage.
       * 
* * string service_account_id = 14; * @return The bytes for serviceAccountId. */ public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the service account used to access Object Storage.
       * 
* * string service_account_id = 14; * @param value The serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceAccountId_ = value; onChanged(); return this; } /** *
       * ID of the service account used to access Object Storage.
       * 
* * string service_account_id = 14; * @return This builder for chaining. */ public Builder clearServiceAccountId() { serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** *
       * ID of the service account used to access Object Storage.
       * 
* * string service_account_id = 14; * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountId_ = value; onChanged(); return this; } private boolean deletionProtection_ ; /** *
       * Determines whether the cluster is protected from being deleted.
       * 
* * bool deletion_protection = 15; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } /** *
       * Determines whether the cluster is protected from being deleted.
       * 
* * bool deletion_protection = 15; * @param value The deletionProtection to set. * @return This builder for chaining. */ public Builder setDeletionProtection(boolean value) { deletionProtection_ = value; onChanged(); return this; } /** *
       * Determines whether the cluster is protected from being deleted.
       * 
* * bool deletion_protection = 15; * @return This builder for chaining. */ public Builder clearDeletionProtection() { deletionProtection_ = false; onChanged(); return this; } private yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow maintenanceWindow_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindowOrBuilder> maintenanceWindowBuilder_; /** *
       * Cluster maintenance window. Should be defined by either one of the two options.
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; * @return Whether the maintenanceWindow field is set. */ public boolean hasMaintenanceWindow() { return maintenanceWindowBuilder_ != null || maintenanceWindow_ != null; } /** *
       * Cluster maintenance window. Should be defined by either one of the two options.
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; * @return The maintenanceWindow. */ public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow getMaintenanceWindow() { if (maintenanceWindowBuilder_ == null) { return maintenanceWindow_ == null ? yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_; } else { return maintenanceWindowBuilder_.getMessage(); } } /** *
       * Cluster maintenance window. Should be defined by either one of the two options.
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; */ public Builder setMaintenanceWindow(yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow value) { if (maintenanceWindowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maintenanceWindow_ = value; onChanged(); } else { maintenanceWindowBuilder_.setMessage(value); } return this; } /** *
       * Cluster maintenance window. Should be defined by either one of the two options.
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; */ public Builder setMaintenanceWindow( yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.Builder builderForValue) { if (maintenanceWindowBuilder_ == null) { maintenanceWindow_ = builderForValue.build(); onChanged(); } else { maintenanceWindowBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Cluster maintenance window. Should be defined by either one of the two options.
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; */ public Builder mergeMaintenanceWindow(yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow value) { if (maintenanceWindowBuilder_ == null) { if (maintenanceWindow_ != null) { maintenanceWindow_ = yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.newBuilder(maintenanceWindow_).mergeFrom(value).buildPartial(); } else { maintenanceWindow_ = value; } onChanged(); } else { maintenanceWindowBuilder_.mergeFrom(value); } return this; } /** *
       * Cluster maintenance window. Should be defined by either one of the two options.
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; */ public Builder clearMaintenanceWindow() { if (maintenanceWindowBuilder_ == null) { maintenanceWindow_ = null; onChanged(); } else { maintenanceWindow_ = null; maintenanceWindowBuilder_ = null; } return this; } /** *
       * Cluster maintenance window. Should be defined by either one of the two options.
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; */ public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.Builder getMaintenanceWindowBuilder() { onChanged(); return getMaintenanceWindowFieldBuilder().getBuilder(); } /** *
       * Cluster maintenance window. Should be defined by either one of the two options.
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; */ public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder() { if (maintenanceWindowBuilder_ != null) { return maintenanceWindowBuilder_.getMessageOrBuilder(); } else { return maintenanceWindow_ == null ? yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_; } } /** *
       * Cluster maintenance window. Should be defined by either one of the two options.
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceWindow maintenance_window = 16; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindowOrBuilder> getMaintenanceWindowFieldBuilder() { if (maintenanceWindowBuilder_ == null) { maintenanceWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceWindowOrBuilder>( getMaintenanceWindow(), getParentForChildren(), isClean()); maintenanceWindow_ = null; } return maintenanceWindowBuilder_; } private yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation plannedOperation_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.Builder, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperationOrBuilder> plannedOperationBuilder_; /** *
       * Maintenance operation planned at nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; * @return Whether the plannedOperation field is set. */ public boolean hasPlannedOperation() { return plannedOperationBuilder_ != null || plannedOperation_ != null; } /** *
       * Maintenance operation planned at nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; * @return The plannedOperation. */ public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation getPlannedOperation() { if (plannedOperationBuilder_ == null) { return plannedOperation_ == null ? yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.getDefaultInstance() : plannedOperation_; } else { return plannedOperationBuilder_.getMessage(); } } /** *
       * Maintenance operation planned at nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; */ public Builder setPlannedOperation(yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation value) { if (plannedOperationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } plannedOperation_ = value; onChanged(); } else { plannedOperationBuilder_.setMessage(value); } return this; } /** *
       * Maintenance operation planned at nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; */ public Builder setPlannedOperation( yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.Builder builderForValue) { if (plannedOperationBuilder_ == null) { plannedOperation_ = builderForValue.build(); onChanged(); } else { plannedOperationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Maintenance operation planned at nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; */ public Builder mergePlannedOperation(yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation value) { if (plannedOperationBuilder_ == null) { if (plannedOperation_ != null) { plannedOperation_ = yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.newBuilder(plannedOperation_).mergeFrom(value).buildPartial(); } else { plannedOperation_ = value; } onChanged(); } else { plannedOperationBuilder_.mergeFrom(value); } return this; } /** *
       * Maintenance operation planned at nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; */ public Builder clearPlannedOperation() { if (plannedOperationBuilder_ == null) { plannedOperation_ = null; onChanged(); } else { plannedOperation_ = null; plannedOperationBuilder_ = null; } return this; } /** *
       * Maintenance operation planned at nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; */ public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.Builder getPlannedOperationBuilder() { onChanged(); return getPlannedOperationFieldBuilder().getBuilder(); } /** *
       * Maintenance operation planned at nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; */ public yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperationOrBuilder getPlannedOperationOrBuilder() { if (plannedOperationBuilder_ != null) { return plannedOperationBuilder_.getMessageOrBuilder(); } else { return plannedOperation_ == null ? yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.getDefaultInstance() : plannedOperation_; } } /** *
       * Maintenance operation planned at nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.opensearch.v1.MaintenanceOperation planned_operation = 17; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.Builder, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperationOrBuilder> getPlannedOperationFieldBuilder() { if (plannedOperationBuilder_ == null) { plannedOperationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperation.Builder, yandex.cloud.api.mdb.opensearch.v1.Maintenance.MaintenanceOperationOrBuilder>( getPlannedOperation(), getParentForChildren(), isClean()); plannedOperation_ = null; } return plannedOperationBuilder_; } @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.opensearch.v1.Cluster) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Cluster) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Cluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Cluster(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.opensearch.v1.ClusterOuterClass.Cluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MonitoringOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Monitoring) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the monitoring system.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the monitoring system.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the monitoring system.
     * 
* * string description = 2; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the monitoring system.
     * 
* * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Link to the monitoring system charts for the OpenSearch cluster.
     * 
* * string link = 3; * @return The link. */ java.lang.String getLink(); /** *
     * Link to the monitoring system charts for the OpenSearch cluster.
     * 
* * string link = 3; * @return The bytes for link. */ com.google.protobuf.ByteString getLinkBytes(); } /** *
   * Monitoring system metadata.
   * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Monitoring} */ public static final class Monitoring extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Monitoring) MonitoringOrBuilder { private static final long serialVersionUID = 0L; // Use Monitoring.newBuilder() to construct. private Monitoring(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Monitoring() { name_ = ""; description_ = ""; link_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Monitoring(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Monitoring( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); link_ = 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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the monitoring system.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the monitoring system.
     * 
* * 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 DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
     * Description of the monitoring system.
     * 
* * string description = 2; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
     * Description of the monitoring system.
     * 
* * string description = 2; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LINK_FIELD_NUMBER = 3; private volatile java.lang.Object link_; /** *
     * Link to the monitoring system charts for the OpenSearch cluster.
     * 
* * string link = 3; * @return The link. */ @java.lang.Override public java.lang.String getLink() { java.lang.Object ref = link_; 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(); link_ = s; return s; } } /** *
     * Link to the monitoring system charts for the OpenSearch cluster.
     * 
* * string link = 3; * @return The bytes for link. */ @java.lang.Override public com.google.protobuf.ByteString getLinkBytes() { java.lang.Object ref = link_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); link_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(link_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, link_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(link_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, link_); } 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.opensearch.v1.ClusterOuterClass.Monitoring)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getLink() .equals(other.getLink())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + LINK_FIELD_NUMBER; hash = (53 * hash) + getLink().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring 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.opensearch.v1.ClusterOuterClass.Monitoring parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring 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.opensearch.v1.ClusterOuterClass.Monitoring parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring 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.opensearch.v1.ClusterOuterClass.Monitoring parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring 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.opensearch.v1.ClusterOuterClass.Monitoring parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring 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.opensearch.v1.ClusterOuterClass.Monitoring 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; } /** *
     * Monitoring system metadata.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Monitoring} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Monitoring) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.MonitoringOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; description_ = ""; link_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring(this); result.name_ = name_; result.description_ = description_; result.link_ = link_; 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.opensearch.v1.ClusterOuterClass.Monitoring) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getLink().isEmpty()) { link_ = other.link_; 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 { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object link_ = ""; /** *
       * Link to the monitoring system charts for the OpenSearch cluster.
       * 
* * string link = 3; * @return The link. */ public java.lang.String getLink() { java.lang.Object ref = link_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); link_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Link to the monitoring system charts for the OpenSearch cluster.
       * 
* * string link = 3; * @return The bytes for link. */ public com.google.protobuf.ByteString getLinkBytes() { java.lang.Object ref = link_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); link_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Link to the monitoring system charts for the OpenSearch cluster.
       * 
* * string link = 3; * @param value The link to set. * @return This builder for chaining. */ public Builder setLink( java.lang.String value) { if (value == null) { throw new NullPointerException(); } link_ = value; onChanged(); return this; } /** *
       * Link to the monitoring system charts for the OpenSearch cluster.
       * 
* * string link = 3; * @return This builder for chaining. */ public Builder clearLink() { link_ = getDefaultInstance().getLink(); onChanged(); return this; } /** *
       * Link to the monitoring system charts for the OpenSearch cluster.
       * 
* * string link = 3; * @param value The bytes for link to set. * @return This builder for chaining. */ public Builder setLinkBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); link_ = 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:yandex.cloud.mdb.opensearch.v1.Monitoring) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Monitoring) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Monitoring getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Monitoring parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Monitoring(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.opensearch.v1.ClusterOuterClass.Monitoring getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClusterConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.ClusterConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Version of the OpenSearch server software.
     * 
* * string version = 1; * @return The version. */ java.lang.String getVersion(); /** *
     * Version of the OpenSearch server software.
     * 
* * string version = 1; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * OpenSearch configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; * @return Whether the opensearch field is set. */ boolean hasOpensearch(); /** *
     * OpenSearch configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; * @return The opensearch. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch getOpensearch(); /** *
     * OpenSearch configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearchOrBuilder getOpensearchOrBuilder(); /** *
     * Dashboards configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; * @return Whether the dashboards field is set. */ boolean hasDashboards(); /** *
     * Dashboards configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; * @return The dashboards. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards getDashboards(); /** *
     * Dashboards configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.DashboardsOrBuilder getDashboardsOrBuilder(); /** *
     * Access policy for external services.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; * @return Whether the access field is set. */ boolean hasAccess(); /** *
     * Access policy for external services.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; * @return The access. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access getAccess(); /** *
     * Access policy for external services.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder getAccessOrBuilder(); } /** *
   * The OpenSearch cluster configuration.
   * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.ClusterConfig} */ public static final class ClusterConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.ClusterConfig) ClusterConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ClusterConfig.newBuilder() to construct. private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClusterConfig() { version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClusterConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClusterConfig( 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(); version_ = s; break; } case 18: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.Builder subBuilder = null; if (opensearch_ != null) { subBuilder = opensearch_.toBuilder(); } opensearch_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(opensearch_); opensearch_ = subBuilder.buildPartial(); } break; } case 26: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.Builder subBuilder = null; if (dashboards_ != null) { subBuilder = dashboards_.toBuilder(); } dashboards_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dashboards_); dashboards_ = subBuilder.buildPartial(); } break; } case 34: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder subBuilder = null; if (access_ != null) { subBuilder = access_.toBuilder(); } access_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(access_); access_ = 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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** *
     * Version of the OpenSearch server software.
     * 
* * string version = 1; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** *
     * Version of the OpenSearch server software.
     * 
* * string version = 1; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPENSEARCH_FIELD_NUMBER = 2; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch opensearch_; /** *
     * OpenSearch configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; * @return Whether the opensearch field is set. */ @java.lang.Override public boolean hasOpensearch() { return opensearch_ != null; } /** *
     * OpenSearch configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; * @return The opensearch. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch getOpensearch() { return opensearch_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.getDefaultInstance() : opensearch_; } /** *
     * OpenSearch configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearchOrBuilder getOpensearchOrBuilder() { return getOpensearch(); } public static final int DASHBOARDS_FIELD_NUMBER = 3; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards dashboards_; /** *
     * Dashboards configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; * @return Whether the dashboards field is set. */ @java.lang.Override public boolean hasDashboards() { return dashboards_ != null; } /** *
     * Dashboards configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; * @return The dashboards. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards getDashboards() { return dashboards_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.getDefaultInstance() : dashboards_; } /** *
     * Dashboards configuration.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.DashboardsOrBuilder getDashboardsOrBuilder() { return getDashboards(); } public static final int ACCESS_FIELD_NUMBER = 4; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access access_; /** *
     * Access policy for external services.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; * @return Whether the access field is set. */ @java.lang.Override public boolean hasAccess() { return access_ != null; } /** *
     * Access policy for external services.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; * @return The access. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access getAccess() { return access_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.getDefaultInstance() : access_; } /** *
     * Access policy for external services.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder getAccessOrBuilder() { return getAccess(); } 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(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } if (opensearch_ != null) { output.writeMessage(2, getOpensearch()); } if (dashboards_ != null) { output.writeMessage(3, getDashboards()); } if (access_ != null) { output.writeMessage(4, getAccess()); } 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(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } if (opensearch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOpensearch()); } if (dashboards_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDashboards()); } if (access_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAccess()); } 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.opensearch.v1.ClusterOuterClass.ClusterConfig)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig) obj; if (!getVersion() .equals(other.getVersion())) return false; if (hasOpensearch() != other.hasOpensearch()) return false; if (hasOpensearch()) { if (!getOpensearch() .equals(other.getOpensearch())) return false; } if (hasDashboards() != other.hasDashboards()) return false; if (hasDashboards()) { if (!getDashboards() .equals(other.getDashboards())) return false; } if (hasAccess() != other.hasAccess()) return false; if (hasAccess()) { if (!getAccess() .equals(other.getAccess())) 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) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); if (hasOpensearch()) { hash = (37 * hash) + OPENSEARCH_FIELD_NUMBER; hash = (53 * hash) + getOpensearch().hashCode(); } if (hasDashboards()) { hash = (37 * hash) + DASHBOARDS_FIELD_NUMBER; hash = (53 * hash) + getDashboards().hashCode(); } if (hasAccess()) { hash = (37 * hash) + ACCESS_FIELD_NUMBER; hash = (53 * hash) + getAccess().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig 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.opensearch.v1.ClusterOuterClass.ClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig 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.opensearch.v1.ClusterOuterClass.ClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig 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.opensearch.v1.ClusterOuterClass.ClusterConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig 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.opensearch.v1.ClusterOuterClass.ClusterConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig 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.opensearch.v1.ClusterOuterClass.ClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * The OpenSearch cluster configuration.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.ClusterConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ClusterConfig) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.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(); version_ = ""; if (opensearchBuilder_ == null) { opensearch_ = null; } else { opensearch_ = null; opensearchBuilder_ = null; } if (dashboardsBuilder_ == null) { dashboards_ = null; } else { dashboards_ = null; dashboardsBuilder_ = null; } if (accessBuilder_ == null) { access_ = null; } else { access_ = null; accessBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig(this); result.version_ = version_; if (opensearchBuilder_ == null) { result.opensearch_ = opensearch_; } else { result.opensearch_ = opensearchBuilder_.build(); } if (dashboardsBuilder_ == null) { result.dashboards_ = dashboards_; } else { result.dashboards_ = dashboardsBuilder_.build(); } if (accessBuilder_ == null) { result.access_ = access_; } else { result.access_ = accessBuilder_.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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (other.hasOpensearch()) { mergeOpensearch(other.getOpensearch()); } if (other.hasDashboards()) { mergeDashboards(other.getDashboards()); } if (other.hasAccess()) { mergeAccess(other.getAccess()); } 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.opensearch.v1.ClusterOuterClass.ClusterConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object version_ = ""; /** *
       * Version of the OpenSearch server software.
       * 
* * string version = 1; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Version of the OpenSearch server software.
       * 
* * string version = 1; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Version of the OpenSearch server software.
       * 
* * string version = 1; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       * Version of the OpenSearch server software.
       * 
* * string version = 1; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * Version of the OpenSearch server software.
       * 
* * string version = 1; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; onChanged(); return this; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch opensearch_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearchOrBuilder> opensearchBuilder_; /** *
       * OpenSearch configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; * @return Whether the opensearch field is set. */ public boolean hasOpensearch() { return opensearchBuilder_ != null || opensearch_ != null; } /** *
       * OpenSearch configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; * @return The opensearch. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch getOpensearch() { if (opensearchBuilder_ == null) { return opensearch_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.getDefaultInstance() : opensearch_; } else { return opensearchBuilder_.getMessage(); } } /** *
       * OpenSearch configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; */ public Builder setOpensearch(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch value) { if (opensearchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } opensearch_ = value; onChanged(); } else { opensearchBuilder_.setMessage(value); } return this; } /** *
       * OpenSearch configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; */ public Builder setOpensearch( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.Builder builderForValue) { if (opensearchBuilder_ == null) { opensearch_ = builderForValue.build(); onChanged(); } else { opensearchBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * OpenSearch configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; */ public Builder mergeOpensearch(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch value) { if (opensearchBuilder_ == null) { if (opensearch_ != null) { opensearch_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.newBuilder(opensearch_).mergeFrom(value).buildPartial(); } else { opensearch_ = value; } onChanged(); } else { opensearchBuilder_.mergeFrom(value); } return this; } /** *
       * OpenSearch configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; */ public Builder clearOpensearch() { if (opensearchBuilder_ == null) { opensearch_ = null; onChanged(); } else { opensearch_ = null; opensearchBuilder_ = null; } return this; } /** *
       * OpenSearch configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.Builder getOpensearchBuilder() { onChanged(); return getOpensearchFieldBuilder().getBuilder(); } /** *
       * OpenSearch configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearchOrBuilder getOpensearchOrBuilder() { if (opensearchBuilder_ != null) { return opensearchBuilder_.getMessageOrBuilder(); } else { return opensearch_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.getDefaultInstance() : opensearch_; } } /** *
       * OpenSearch configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.OpenSearch opensearch = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearchOrBuilder> getOpensearchFieldBuilder() { if (opensearchBuilder_ == null) { opensearchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearchOrBuilder>( getOpensearch(), getParentForChildren(), isClean()); opensearch_ = null; } return opensearchBuilder_; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards dashboards_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.DashboardsOrBuilder> dashboardsBuilder_; /** *
       * Dashboards configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; * @return Whether the dashboards field is set. */ public boolean hasDashboards() { return dashboardsBuilder_ != null || dashboards_ != null; } /** *
       * Dashboards configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; * @return The dashboards. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards getDashboards() { if (dashboardsBuilder_ == null) { return dashboards_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.getDefaultInstance() : dashboards_; } else { return dashboardsBuilder_.getMessage(); } } /** *
       * Dashboards configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; */ public Builder setDashboards(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards value) { if (dashboardsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dashboards_ = value; onChanged(); } else { dashboardsBuilder_.setMessage(value); } return this; } /** *
       * Dashboards configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; */ public Builder setDashboards( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.Builder builderForValue) { if (dashboardsBuilder_ == null) { dashboards_ = builderForValue.build(); onChanged(); } else { dashboardsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Dashboards configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; */ public Builder mergeDashboards(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards value) { if (dashboardsBuilder_ == null) { if (dashboards_ != null) { dashboards_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.newBuilder(dashboards_).mergeFrom(value).buildPartial(); } else { dashboards_ = value; } onChanged(); } else { dashboardsBuilder_.mergeFrom(value); } return this; } /** *
       * Dashboards configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; */ public Builder clearDashboards() { if (dashboardsBuilder_ == null) { dashboards_ = null; onChanged(); } else { dashboards_ = null; dashboardsBuilder_ = null; } return this; } /** *
       * Dashboards configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.Builder getDashboardsBuilder() { onChanged(); return getDashboardsFieldBuilder().getBuilder(); } /** *
       * Dashboards configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.DashboardsOrBuilder getDashboardsOrBuilder() { if (dashboardsBuilder_ != null) { return dashboardsBuilder_.getMessageOrBuilder(); } else { return dashboards_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.getDefaultInstance() : dashboards_; } } /** *
       * Dashboards configuration.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Dashboards dashboards = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.DashboardsOrBuilder> getDashboardsFieldBuilder() { if (dashboardsBuilder_ == null) { dashboardsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.DashboardsOrBuilder>( getDashboards(), getParentForChildren(), isClean()); dashboards_ = null; } return dashboardsBuilder_; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access access_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder> accessBuilder_; /** *
       * Access policy for external services.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; * @return Whether the access field is set. */ public boolean hasAccess() { return accessBuilder_ != null || access_ != null; } /** *
       * Access policy for external services.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; * @return The access. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access getAccess() { if (accessBuilder_ == null) { return access_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.getDefaultInstance() : access_; } else { return accessBuilder_.getMessage(); } } /** *
       * Access policy for external services.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; */ public Builder setAccess(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access value) { if (accessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } access_ = value; onChanged(); } else { accessBuilder_.setMessage(value); } return this; } /** *
       * Access policy for external services.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; */ public Builder setAccess( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder builderForValue) { if (accessBuilder_ == null) { access_ = builderForValue.build(); onChanged(); } else { accessBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Access policy for external services.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; */ public Builder mergeAccess(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access value) { if (accessBuilder_ == null) { if (access_ != null) { access_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.newBuilder(access_).mergeFrom(value).buildPartial(); } else { access_ = value; } onChanged(); } else { accessBuilder_.mergeFrom(value); } return this; } /** *
       * Access policy for external services.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; */ public Builder clearAccess() { if (accessBuilder_ == null) { access_ = null; onChanged(); } else { access_ = null; accessBuilder_ = null; } return this; } /** *
       * Access policy for external services.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder getAccessBuilder() { onChanged(); return getAccessFieldBuilder().getBuilder(); } /** *
       * Access policy for external services.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder getAccessOrBuilder() { if (accessBuilder_ != null) { return accessBuilder_.getMessageOrBuilder(); } else { return access_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.getDefaultInstance() : access_; } } /** *
       * Access policy for external services.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Access access = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder> getAccessFieldBuilder() { if (accessBuilder_ == null) { accessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder>( getAccess(), getParentForChildren(), isClean()); access_ = null; } return accessBuilder_; } @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.opensearch.v1.ClusterConfig) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ClusterConfig) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ClusterConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClusterConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClusterConfig(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.opensearch.v1.ClusterOuterClass.ClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OpenSearchOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.OpenSearch) com.google.protobuf.MessageOrBuilder { /** *
     * Names of the cluster plugins.
     * 
* * repeated string plugins = 1; * @return A list containing the plugins. */ java.util.List getPluginsList(); /** *
     * Names of the cluster plugins.
     * 
* * repeated string plugins = 1; * @return The count of plugins. */ int getPluginsCount(); /** *
     * Names of the cluster plugins.
     * 
* * repeated string plugins = 1; * @param index The index of the element to return. * @return The plugins at the given index. */ java.lang.String getPlugins(int index); /** *
     * Names of the cluster plugins.
     * 
* * repeated string plugins = 1; * @param index The index of the value to return. * @return The bytes of the plugins at the given index. */ com.google.protobuf.ByteString getPluginsBytes(int index); /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ java.util.List getNodeGroupsList(); /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup getNodeGroups(int index); /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ int getNodeGroupsCount(); /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ java.util.List getNodeGroupsOrBuilderList(); /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroupOrBuilder getNodeGroupsOrBuilder( int index); /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; * @return Whether the opensearchConfigSet2 field is set. */ boolean hasOpensearchConfigSet2(); /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; * @return The opensearchConfigSet2. */ yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2 getOpensearchConfigSet2(); /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; */ yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2OrBuilder getOpensearchConfigSet2OrBuilder(); public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.ConfigCase getConfigCase(); } /** *
   * The OpenSearch host group type configuration.
   * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.OpenSearch} */ public static final class OpenSearch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.OpenSearch) OpenSearchOrBuilder { private static final long serialVersionUID = 0L; // Use OpenSearch.newBuilder() to construct. private OpenSearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OpenSearch() { plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY; nodeGroups_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OpenSearch(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OpenSearch( 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)) { plugins_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } plugins_.add(s); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { nodeGroups_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } nodeGroups_.add( input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.parser(), extensionRegistry)); break; } case 26: { yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.Builder subBuilder = null; if (configCase_ == 3) { subBuilder = ((yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_).toBuilder(); } config_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_); config_ = subBuilder.buildPartial(); } configCase_ = 3; 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)) { plugins_ = plugins_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { nodeGroups_ = java.util.Collections.unmodifiableList(nodeGroups_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole} */ public enum GroupRole implements com.google.protobuf.ProtocolMessageEnum { /** * GROUP_ROLE_UNSPECIFIED = 0; */ GROUP_ROLE_UNSPECIFIED(0), /** * DATA = 1; */ DATA(1), /** * MANAGER = 2; */ MANAGER(2), UNRECOGNIZED(-1), ; /** * GROUP_ROLE_UNSPECIFIED = 0; */ public static final int GROUP_ROLE_UNSPECIFIED_VALUE = 0; /** * DATA = 1; */ public static final int DATA_VALUE = 1; /** * MANAGER = 2; */ public static final int MANAGER_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 GroupRole 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 GroupRole forNumber(int value) { switch (value) { case 0: return GROUP_ROLE_UNSPECIFIED; case 1: return DATA; case 2: return MANAGER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< GroupRole> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public GroupRole findValueByNumber(int number) { return GroupRole.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.opensearch.v1.ClusterOuterClass.OpenSearch.getDescriptor().getEnumTypes().get(0); } private static final GroupRole[] VALUES = values(); public static GroupRole 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 GroupRole(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole) } public interface NodeGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup) com.google.protobuf.MessageOrBuilder { /** *
       * Name of the group. Must be 1-63 characters long.
       * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
       * Name of the group. Must be 1-63 characters long.
       * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return Whether the resources field is set. */ boolean hasResources(); /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return The resources. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getResources(); /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder(); /** *
       * Number of hosts in the group.
       * 
* * int64 hosts_count = 3; * @return The hostsCount. */ long getHostsCount(); /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @return A list containing the zoneIds. */ java.util.List getZoneIdsList(); /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @return The count of zoneIds. */ int getZoneIdsCount(); /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @param index The index of the element to return. * @return The zoneIds at the given index. */ java.lang.String getZoneIds(int index); /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @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 the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @return A list containing the subnetIds. */ java.util.List getSubnetIdsList(); /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @return The count of subnetIds. */ int getSubnetIdsCount(); /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @param index The index of the element to return. * @return The subnetIds at the given index. */ java.lang.String getSubnetIds(int index); /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @param index The index of the value to return. * @return The bytes of the subnetIds at the given index. */ com.google.protobuf.ByteString getSubnetIdsBytes(int index); /** *
       * Determines whether a public IP is assigned to the hosts in the group.
       * 
* * bool assign_public_ip = 6; * @return The assignPublicIp. */ boolean getAssignPublicIp(); /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return A list containing the roles. */ java.util.List getRolesList(); /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return The count of roles. */ int getRolesCount(); /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param index The index of the element to return. * @return The roles at the given index. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole getRoles(int index); /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return A list containing the enum numeric values on the wire for roles. */ java.util.List getRolesValueList(); /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ int getRolesValue(int index); } /** *
     * Configuration of the host group.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup} */ public static final class NodeGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup) NodeGroupOrBuilder { private static final long serialVersionUID = 0L; // Use NodeGroup.newBuilder() to construct. private NodeGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeGroup() { name_ = ""; zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; roles_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeGroup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeGroup( 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: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder subBuilder = null; if (resources_ != null) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } break; } case 24: { hostsCount_ = input.readInt64(); break; } case 34: { 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 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { subnetIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } subnetIds_.add(s); break; } case 48: { assignPublicIp_ = input.readBool(); break; } case 56: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { roles_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } roles_.add(rawValue); break; } case 58: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { roles_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } roles_.add(rawValue); } input.popLimit(oldLimit); 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)) { subnetIds_ = subnetIds_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) != 0)) { roles_ = java.util.Collections.unmodifiableList(roles_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
       * Name of the group. Must be 1-63 characters long.
       * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
       * Name of the group. Must be 1-63 characters long.
       * 
* * 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 RESOURCES_FIELD_NUMBER = 2; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources resources_; /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return The resources. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getResources() { return resources_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int HOSTS_COUNT_FIELD_NUMBER = 3; private long hostsCount_; /** *
       * Number of hosts in the group.
       * 
* * int64 hosts_count = 3; * @return The hostsCount. */ @java.lang.Override public long getHostsCount() { return hostsCount_; } public static final int ZONE_IDS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList zoneIds_; /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @return A list containing the zoneIds. */ public com.google.protobuf.ProtocolStringList getZoneIdsList() { return zoneIds_; } /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @return The count of zoneIds. */ public int getZoneIdsCount() { return zoneIds_.size(); } /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @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 SUBNET_IDS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList subnetIds_; /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @return A list containing the subnetIds. */ public com.google.protobuf.ProtocolStringList getSubnetIdsList() { return subnetIds_; } /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @return The count of subnetIds. */ public int getSubnetIdsCount() { return subnetIds_.size(); } /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @param index The index of the element to return. * @return The subnetIds at the given index. */ public java.lang.String getSubnetIds(int index) { return subnetIds_.get(index); } /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @param index The index of the value to return. * @return The bytes of the subnetIds at the given index. */ public com.google.protobuf.ByteString getSubnetIdsBytes(int index) { return subnetIds_.getByteString(index); } public static final int ASSIGN_PUBLIC_IP_FIELD_NUMBER = 6; private boolean assignPublicIp_; /** *
       * Determines whether a public IP is assigned to the hosts in the group.
       * 
* * bool assign_public_ip = 6; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } public static final int ROLES_FIELD_NUMBER = 7; private java.util.List roles_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole> roles_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole>() { public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole convert(java.lang.Integer from) { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole.valueOf(from); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole.UNRECOGNIZED : result; } }; /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return A list containing the roles. */ @java.lang.Override public java.util.List getRolesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole>(roles_, roles_converter_); } /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return The count of roles. */ @java.lang.Override public int getRolesCount() { return roles_.size(); } /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param index The index of the element to return. * @return The roles at the given index. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return A list containing the enum numeric values on the wire for roles. */ @java.lang.Override public java.util.List getRolesValueList() { return roles_; } /** *
       * Roles of the host group.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ @java.lang.Override public int getRolesValue(int index) { return roles_.get(index); } private int rolesMemoizedSerializedSize; 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (resources_ != null) { output.writeMessage(2, getResources()); } if (hostsCount_ != 0L) { output.writeInt64(3, hostsCount_); } for (int i = 0; i < zoneIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, zoneIds_.getRaw(i)); } for (int i = 0; i < subnetIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subnetIds_.getRaw(i)); } if (assignPublicIp_ != false) { output.writeBool(6, assignPublicIp_); } if (getRolesList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(rolesMemoizedSerializedSize); } for (int i = 0; i < roles_.size(); i++) { output.writeEnumNoTag(roles_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (resources_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResources()); } if (hostsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, hostsCount_); } { int dataSize = 0; for (int i = 0; i < zoneIds_.size(); i++) { dataSize += computeStringSizeNoTag(zoneIds_.getRaw(i)); } size += dataSize; size += 1 * getZoneIdsList().size(); } { int dataSize = 0; for (int i = 0; i < subnetIds_.size(); i++) { dataSize += computeStringSizeNoTag(subnetIds_.getRaw(i)); } size += dataSize; size += 1 * getSubnetIdsList().size(); } if (assignPublicIp_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, assignPublicIp_); } { int dataSize = 0; for (int i = 0; i < roles_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(roles_.get(i)); } size += dataSize; if (!getRolesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }rolesMemoizedSerializedSize = dataSize; } 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.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup) obj; if (!getName() .equals(other.getName())) return false; if (hasResources() != other.hasResources()) return false; if (hasResources()) { if (!getResources() .equals(other.getResources())) return false; } if (getHostsCount() != other.getHostsCount()) return false; if (!getZoneIdsList() .equals(other.getZoneIdsList())) return false; if (!getSubnetIdsList() .equals(other.getSubnetIdsList())) return false; if (getAssignPublicIp() != other.getAssignPublicIp()) return false; if (!roles_.equals(other.roles_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } hash = (37 * hash) + HOSTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHostsCount()); if (getZoneIdsCount() > 0) { hash = (37 * hash) + ZONE_IDS_FIELD_NUMBER; hash = (53 * hash) + getZoneIdsList().hashCode(); } if (getSubnetIdsCount() > 0) { hash = (37 * hash) + SUBNET_IDS_FIELD_NUMBER; hash = (53 * hash) + getSubnetIdsList().hashCode(); } hash = (37 * hash) + ASSIGN_PUBLIC_IP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAssignPublicIp()); if (getRolesCount() > 0) { hash = (37 * hash) + ROLES_FIELD_NUMBER; hash = (53 * hash) + roles_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup 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.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup 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.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup 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.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup 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.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup 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.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup 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; } /** *
       * Configuration of the host group.
       * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; if (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } hostsCount_ = 0L; zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); assignPublicIp_ = false; roles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.hostsCount_ = hostsCount_; if (((bitField0_ & 0x00000001) != 0)) { zoneIds_ = zoneIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.zoneIds_ = zoneIds_; if (((bitField0_ & 0x00000002) != 0)) { subnetIds_ = subnetIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.subnetIds_ = subnetIds_; result.assignPublicIp_ = assignPublicIp_; if (((bitField0_ & 0x00000004) != 0)) { roles_ = java.util.Collections.unmodifiableList(roles_); bitField0_ = (bitField0_ & ~0x00000004); } result.roles_ = roles_; 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.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasResources()) { mergeResources(other.getResources()); } if (other.getHostsCount() != 0L) { setHostsCount(other.getHostsCount()); } if (!other.zoneIds_.isEmpty()) { if (zoneIds_.isEmpty()) { zoneIds_ = other.zoneIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureZoneIdsIsMutable(); zoneIds_.addAll(other.zoneIds_); } onChanged(); } if (!other.subnetIds_.isEmpty()) { if (subnetIds_.isEmpty()) { subnetIds_ = other.subnetIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSubnetIdsIsMutable(); subnetIds_.addAll(other.subnetIds_); } onChanged(); } if (other.getAssignPublicIp() != false) { setAssignPublicIp(other.getAssignPublicIp()); } if (!other.roles_.isEmpty()) { if (roles_.isEmpty()) { roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRolesIsMutable(); roles_.addAll(other.roles_); } 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 { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
         * Name of the group. Must be 1-63 characters long.
         * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Name of the group. Must be 1-63 characters long.
         * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Name of the group. Must be 1-63 characters long.
         * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
         * Name of the group. Must be 1-63 characters long.
         * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
         * Name of the group. Must be 1-63 characters long.
         * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_; /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return The resources. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public Builder setResources(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } return this; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public Builder setResources( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public Builder mergeResources(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private long hostsCount_ ; /** *
         * Number of hosts in the group.
         * 
* * int64 hosts_count = 3; * @return The hostsCount. */ @java.lang.Override public long getHostsCount() { return hostsCount_; } /** *
         * Number of hosts in the group.
         * 
* * int64 hosts_count = 3; * @param value The hostsCount to set. * @return This builder for chaining. */ public Builder setHostsCount(long value) { hostsCount_ = value; onChanged(); return this; } /** *
         * Number of hosts in the group.
         * 
* * int64 hosts_count = 3; * @return This builder for chaining. */ public Builder clearHostsCount() { hostsCount_ = 0L; 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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @return A list containing the zoneIds. */ public com.google.protobuf.ProtocolStringList getZoneIdsList() { return zoneIds_.getUnmodifiableView(); } /** *
         * IDs of the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @return The count of zoneIds. */ public int getZoneIdsCount() { return zoneIds_.size(); } /** *
         * IDs of the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @return This builder for chaining. */ public Builder clearZoneIds() { zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * IDs of the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubnetIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { subnetIds_ = new com.google.protobuf.LazyStringArrayList(subnetIds_); bitField0_ |= 0x00000002; } } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @return A list containing the subnetIds. */ public com.google.protobuf.ProtocolStringList getSubnetIdsList() { return subnetIds_.getUnmodifiableView(); } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @return The count of subnetIds. */ public int getSubnetIdsCount() { return subnetIds_.size(); } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param index The index of the element to return. * @return The subnetIds at the given index. */ public java.lang.String getSubnetIds(int index) { return subnetIds_.get(index); } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param index The index of the value to return. * @return The bytes of the subnetIds at the given index. */ public com.google.protobuf.ByteString getSubnetIdsBytes(int index) { return subnetIds_.getByteString(index); } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param index The index to set the value at. * @param value The subnetIds to set. * @return This builder for chaining. */ public Builder setSubnetIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubnetIdsIsMutable(); subnetIds_.set(index, value); onChanged(); return this; } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param value The subnetIds to add. * @return This builder for chaining. */ public Builder addSubnetIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubnetIdsIsMutable(); subnetIds_.add(value); onChanged(); return this; } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param values The subnetIds to add. * @return This builder for chaining. */ public Builder addAllSubnetIds( java.lang.Iterable values) { ensureSubnetIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, subnetIds_); onChanged(); return this; } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @return This builder for chaining. */ public Builder clearSubnetIds() { subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param value The bytes of the subnetIds to add. * @return This builder for chaining. */ public Builder addSubnetIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubnetIdsIsMutable(); subnetIds_.add(value); onChanged(); return this; } private boolean assignPublicIp_ ; /** *
         * Determines whether a public IP is assigned to the hosts in the group.
         * 
* * bool assign_public_ip = 6; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } /** *
         * Determines whether a public IP is assigned to the hosts in the group.
         * 
* * bool assign_public_ip = 6; * @param value The assignPublicIp to set. * @return This builder for chaining. */ public Builder setAssignPublicIp(boolean value) { assignPublicIp_ = value; onChanged(); return this; } /** *
         * Determines whether a public IP is assigned to the hosts in the group.
         * 
* * bool assign_public_ip = 6; * @return This builder for chaining. */ public Builder clearAssignPublicIp() { assignPublicIp_ = false; onChanged(); return this; } private java.util.List roles_ = java.util.Collections.emptyList(); private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { roles_ = new java.util.ArrayList(roles_); bitField0_ |= 0x00000004; } } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return A list containing the roles. */ public java.util.List getRolesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole>(roles_, roles_converter_); } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return The count of roles. */ public int getRolesCount() { return roles_.size(); } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param index The index of the element to return. * @return The roles at the given index. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param index The index to set the value at. * @param value The roles to set. * @return This builder for chaining. */ public Builder setRoles( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.set(index, value.getNumber()); onChanged(); return this; } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param value The roles to add. * @return This builder for chaining. */ public Builder addRoles(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(value.getNumber()); onChanged(); return this; } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param values The roles to add. * @return This builder for chaining. */ public Builder addAllRoles( java.lang.Iterable values) { ensureRolesIsMutable(); for (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole value : values) { roles_.add(value.getNumber()); } onChanged(); return this; } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return This builder for chaining. */ public Builder clearRoles() { roles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @return A list containing the enum numeric values on the wire for roles. */ public java.util.List getRolesValueList() { return java.util.Collections.unmodifiableList(roles_); } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ public int getRolesValue(int index) { return roles_.get(index); } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. * @return This builder for chaining. */ public Builder setRolesValue( int index, int value) { ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param value The enum numeric value on the wire for roles to add. * @return This builder for chaining. */ public Builder addRolesValue(int value) { ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } /** *
         * Roles of the host group.
         * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7; * @param values The enum numeric values on the wire for roles to add. * @return This builder for chaining. */ public Builder addAllRolesValue( java.lang.Iterable values) { ensureRolesIsMutable(); for (int value : values) { roles_.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:yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeGroup(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.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int configCase_ = 0; private java.lang.Object config_; public enum ConfigCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { OPENSEARCH_CONFIG_SET_2(3), CONFIG_NOT_SET(0); private final int value; private ConfigCase(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 ConfigCase valueOf(int value) { return forNumber(value); } public static ConfigCase forNumber(int value) { switch (value) { case 3: return OPENSEARCH_CONFIG_SET_2; case 0: return CONFIG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ConfigCase getConfigCase() { return ConfigCase.forNumber( configCase_); } public static final int PLUGINS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList plugins_; /** *
     * Names of the cluster plugins.
     * 
* * repeated string plugins = 1; * @return A list containing the plugins. */ public com.google.protobuf.ProtocolStringList getPluginsList() { return plugins_; } /** *
     * Names of the cluster plugins.
     * 
* * repeated string plugins = 1; * @return The count of plugins. */ public int getPluginsCount() { return plugins_.size(); } /** *
     * Names of the cluster plugins.
     * 
* * repeated string plugins = 1; * @param index The index of the element to return. * @return The plugins at the given index. */ public java.lang.String getPlugins(int index) { return plugins_.get(index); } /** *
     * Names of the cluster plugins.
     * 
* * repeated string plugins = 1; * @param index The index of the value to return. * @return The bytes of the plugins at the given index. */ public com.google.protobuf.ByteString getPluginsBytes(int index) { return plugins_.getByteString(index); } public static final int NODE_GROUPS_FIELD_NUMBER = 2; private java.util.List nodeGroups_; /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ @java.lang.Override public java.util.List getNodeGroupsList() { return nodeGroups_; } /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ @java.lang.Override public java.util.List getNodeGroupsOrBuilderList() { return nodeGroups_; } /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ @java.lang.Override public int getNodeGroupsCount() { return nodeGroups_.size(); } /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup getNodeGroups(int index) { return nodeGroups_.get(index); } /** *
     * Host groups of the OpenSearch type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroupOrBuilder getNodeGroupsOrBuilder( int index) { return nodeGroups_.get(index); } public static final int OPENSEARCH_CONFIG_SET_2_FIELD_NUMBER = 3; /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; * @return Whether the opensearchConfigSet2 field is set. */ @java.lang.Override public boolean hasOpensearchConfigSet2() { return configCase_ == 3; } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; * @return The opensearchConfigSet2. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2 getOpensearchConfigSet2() { if (configCase_ == 3) { return (yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_; } return yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.getDefaultInstance(); } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2OrBuilder getOpensearchConfigSet2OrBuilder() { if (configCase_ == 3) { return (yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_; } return yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < plugins_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, plugins_.getRaw(i)); } for (int i = 0; i < nodeGroups_.size(); i++) { output.writeMessage(2, nodeGroups_.get(i)); } if (configCase_ == 3) { output.writeMessage(3, (yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_); } 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 < plugins_.size(); i++) { dataSize += computeStringSizeNoTag(plugins_.getRaw(i)); } size += dataSize; size += 1 * getPluginsList().size(); } for (int i = 0; i < nodeGroups_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, nodeGroups_.get(i)); } if (configCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_); } 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.opensearch.v1.ClusterOuterClass.OpenSearch)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch) obj; if (!getPluginsList() .equals(other.getPluginsList())) return false; if (!getNodeGroupsList() .equals(other.getNodeGroupsList())) return false; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 3: if (!getOpensearchConfigSet2() .equals(other.getOpensearchConfigSet2())) 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 (getPluginsCount() > 0) { hash = (37 * hash) + PLUGINS_FIELD_NUMBER; hash = (53 * hash) + getPluginsList().hashCode(); } if (getNodeGroupsCount() > 0) { hash = (37 * hash) + NODE_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getNodeGroupsList().hashCode(); } switch (configCase_) { case 3: hash = (37 * hash) + OPENSEARCH_CONFIG_SET_2_FIELD_NUMBER; hash = (53 * hash) + getOpensearchConfigSet2().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch 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.opensearch.v1.ClusterOuterClass.OpenSearch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch 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.opensearch.v1.ClusterOuterClass.OpenSearch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch 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.opensearch.v1.ClusterOuterClass.OpenSearch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch 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.opensearch.v1.ClusterOuterClass.OpenSearch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch 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.opensearch.v1.ClusterOuterClass.OpenSearch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * The OpenSearch host group type configuration.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.OpenSearch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.OpenSearch) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNodeGroupsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (nodeGroupsBuilder_ == null) { nodeGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { nodeGroupsBuilder_.clear(); } configCase_ = 0; config_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { plugins_ = plugins_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.plugins_ = plugins_; if (nodeGroupsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { nodeGroups_ = java.util.Collections.unmodifiableList(nodeGroups_); bitField0_ = (bitField0_ & ~0x00000002); } result.nodeGroups_ = nodeGroups_; } else { result.nodeGroups_ = nodeGroupsBuilder_.build(); } if (configCase_ == 3) { if (opensearchConfigSet2Builder_ == null) { result.config_ = config_; } else { result.config_ = opensearchConfigSet2Builder_.build(); } } result.configCase_ = configCase_; 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.opensearch.v1.ClusterOuterClass.OpenSearch) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.getDefaultInstance()) return this; if (!other.plugins_.isEmpty()) { if (plugins_.isEmpty()) { plugins_ = other.plugins_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePluginsIsMutable(); plugins_.addAll(other.plugins_); } onChanged(); } if (nodeGroupsBuilder_ == null) { if (!other.nodeGroups_.isEmpty()) { if (nodeGroups_.isEmpty()) { nodeGroups_ = other.nodeGroups_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNodeGroupsIsMutable(); nodeGroups_.addAll(other.nodeGroups_); } onChanged(); } } else { if (!other.nodeGroups_.isEmpty()) { if (nodeGroupsBuilder_.isEmpty()) { nodeGroupsBuilder_.dispose(); nodeGroupsBuilder_ = null; nodeGroups_ = other.nodeGroups_; bitField0_ = (bitField0_ & ~0x00000002); nodeGroupsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNodeGroupsFieldBuilder() : null; } else { nodeGroupsBuilder_.addAllMessages(other.nodeGroups_); } } } switch (other.getConfigCase()) { case OPENSEARCH_CONFIG_SET_2: { mergeOpensearchConfigSet2(other.getOpensearchConfigSet2()); break; } case CONFIG_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 { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int configCase_ = 0; private java.lang.Object config_; public ConfigCase getConfigCase() { return ConfigCase.forNumber( configCase_); } public Builder clearConfig() { configCase_ = 0; config_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.LazyStringList plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePluginsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { plugins_ = new com.google.protobuf.LazyStringArrayList(plugins_); bitField0_ |= 0x00000001; } } /** *
       * Names of the cluster plugins.
       * 
* * repeated string plugins = 1; * @return A list containing the plugins. */ public com.google.protobuf.ProtocolStringList getPluginsList() { return plugins_.getUnmodifiableView(); } /** *
       * Names of the cluster plugins.
       * 
* * repeated string plugins = 1; * @return The count of plugins. */ public int getPluginsCount() { return plugins_.size(); } /** *
       * Names of the cluster plugins.
       * 
* * repeated string plugins = 1; * @param index The index of the element to return. * @return The plugins at the given index. */ public java.lang.String getPlugins(int index) { return plugins_.get(index); } /** *
       * Names of the cluster plugins.
       * 
* * repeated string plugins = 1; * @param index The index of the value to return. * @return The bytes of the plugins at the given index. */ public com.google.protobuf.ByteString getPluginsBytes(int index) { return plugins_.getByteString(index); } /** *
       * Names of the cluster plugins.
       * 
* * repeated string plugins = 1; * @param index The index to set the value at. * @param value The plugins to set. * @return This builder for chaining. */ public Builder setPlugins( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePluginsIsMutable(); plugins_.set(index, value); onChanged(); return this; } /** *
       * Names of the cluster plugins.
       * 
* * repeated string plugins = 1; * @param value The plugins to add. * @return This builder for chaining. */ public Builder addPlugins( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePluginsIsMutable(); plugins_.add(value); onChanged(); return this; } /** *
       * Names of the cluster plugins.
       * 
* * repeated string plugins = 1; * @param values The plugins to add. * @return This builder for chaining. */ public Builder addAllPlugins( java.lang.Iterable values) { ensurePluginsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, plugins_); onChanged(); return this; } /** *
       * Names of the cluster plugins.
       * 
* * repeated string plugins = 1; * @return This builder for chaining. */ public Builder clearPlugins() { plugins_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Names of the cluster plugins.
       * 
* * repeated string plugins = 1; * @param value The bytes of the plugins to add. * @return This builder for chaining. */ public Builder addPluginsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePluginsIsMutable(); plugins_.add(value); onChanged(); return this; } private java.util.List nodeGroups_ = java.util.Collections.emptyList(); private void ensureNodeGroupsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { nodeGroups_ = new java.util.ArrayList(nodeGroups_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroupOrBuilder> nodeGroupsBuilder_; /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public java.util.List getNodeGroupsList() { if (nodeGroupsBuilder_ == null) { return java.util.Collections.unmodifiableList(nodeGroups_); } else { return nodeGroupsBuilder_.getMessageList(); } } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public int getNodeGroupsCount() { if (nodeGroupsBuilder_ == null) { return nodeGroups_.size(); } else { return nodeGroupsBuilder_.getCount(); } } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup getNodeGroups(int index) { if (nodeGroupsBuilder_ == null) { return nodeGroups_.get(index); } else { return nodeGroupsBuilder_.getMessage(index); } } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public Builder setNodeGroups( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup value) { if (nodeGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeGroupsIsMutable(); nodeGroups_.set(index, value); onChanged(); } else { nodeGroupsBuilder_.setMessage(index, value); } return this; } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public Builder setNodeGroups( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder builderForValue) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); nodeGroups_.set(index, builderForValue.build()); onChanged(); } else { nodeGroupsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public Builder addNodeGroups(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup value) { if (nodeGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeGroupsIsMutable(); nodeGroups_.add(value); onChanged(); } else { nodeGroupsBuilder_.addMessage(value); } return this; } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public Builder addNodeGroups( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup value) { if (nodeGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeGroupsIsMutable(); nodeGroups_.add(index, value); onChanged(); } else { nodeGroupsBuilder_.addMessage(index, value); } return this; } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public Builder addNodeGroups( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder builderForValue) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); nodeGroups_.add(builderForValue.build()); onChanged(); } else { nodeGroupsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public Builder addNodeGroups( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder builderForValue) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); nodeGroups_.add(index, builderForValue.build()); onChanged(); } else { nodeGroupsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public Builder addAllNodeGroups( java.lang.Iterable values) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nodeGroups_); onChanged(); } else { nodeGroupsBuilder_.addAllMessages(values); } return this; } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public Builder clearNodeGroups() { if (nodeGroupsBuilder_ == null) { nodeGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { nodeGroupsBuilder_.clear(); } return this; } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public Builder removeNodeGroups(int index) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); nodeGroups_.remove(index); onChanged(); } else { nodeGroupsBuilder_.remove(index); } return this; } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder getNodeGroupsBuilder( int index) { return getNodeGroupsFieldBuilder().getBuilder(index); } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroupOrBuilder getNodeGroupsOrBuilder( int index) { if (nodeGroupsBuilder_ == null) { return nodeGroups_.get(index); } else { return nodeGroupsBuilder_.getMessageOrBuilder(index); } } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public java.util.List getNodeGroupsOrBuilderList() { if (nodeGroupsBuilder_ != null) { return nodeGroupsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nodeGroups_); } } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder addNodeGroupsBuilder() { return getNodeGroupsFieldBuilder().addBuilder( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.getDefaultInstance()); } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder addNodeGroupsBuilder( int index) { return getNodeGroupsFieldBuilder().addBuilder( index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.getDefaultInstance()); } /** *
       * Host groups of the OpenSearch type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.NodeGroup node_groups = 2; */ public java.util.List getNodeGroupsBuilderList() { return getNodeGroupsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroupOrBuilder> getNodeGroupsFieldBuilder() { if (nodeGroupsBuilder_ == null) { nodeGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroup.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.NodeGroupOrBuilder>( nodeGroups_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); nodeGroups_ = null; } return nodeGroupsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2, yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.Builder, yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2OrBuilder> opensearchConfigSet2Builder_; /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; * @return Whether the opensearchConfigSet2 field is set. */ @java.lang.Override public boolean hasOpensearchConfigSet2() { return configCase_ == 3; } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; * @return The opensearchConfigSet2. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2 getOpensearchConfigSet2() { if (opensearchConfigSet2Builder_ == null) { if (configCase_ == 3) { return (yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_; } return yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.getDefaultInstance(); } else { if (configCase_ == 3) { return opensearchConfigSet2Builder_.getMessage(); } return yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.getDefaultInstance(); } } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; */ public Builder setOpensearchConfigSet2(yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2 value) { if (opensearchConfigSet2Builder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { opensearchConfigSet2Builder_.setMessage(value); } configCase_ = 3; return this; } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; */ public Builder setOpensearchConfigSet2( yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.Builder builderForValue) { if (opensearchConfigSet2Builder_ == null) { config_ = builderForValue.build(); onChanged(); } else { opensearchConfigSet2Builder_.setMessage(builderForValue.build()); } configCase_ = 3; return this; } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; */ public Builder mergeOpensearchConfigSet2(yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2 value) { if (opensearchConfigSet2Builder_ == null) { if (configCase_ == 3 && config_ != yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.getDefaultInstance()) { config_ = yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.newBuilder((yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_) .mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { if (configCase_ == 3) { opensearchConfigSet2Builder_.mergeFrom(value); } opensearchConfigSet2Builder_.setMessage(value); } configCase_ = 3; return this; } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; */ public Builder clearOpensearchConfigSet2() { if (opensearchConfigSet2Builder_ == null) { if (configCase_ == 3) { configCase_ = 0; config_ = null; onChanged(); } } else { if (configCase_ == 3) { configCase_ = 0; config_ = null; } opensearchConfigSet2Builder_.clear(); } return this; } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; */ public yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.Builder getOpensearchConfigSet2Builder() { return getOpensearchConfigSet2FieldBuilder().getBuilder(); } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2OrBuilder getOpensearchConfigSet2OrBuilder() { if ((configCase_ == 3) && (opensearchConfigSet2Builder_ != null)) { return opensearchConfigSet2Builder_.getMessageOrBuilder(); } else { if (configCase_ == 3) { return (yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_; } return yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.getDefaultInstance(); } } /** * .yandex.cloud.mdb.opensearch.v1.config.OpenSearchConfigSet2 opensearch_config_set_2 = 3 [json_name = "opensearchConfigSet_2"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2, yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.Builder, yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2OrBuilder> getOpensearchConfigSet2FieldBuilder() { if (opensearchConfigSet2Builder_ == null) { if (!(configCase_ == 3)) { config_ = yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.getDefaultInstance(); } opensearchConfigSet2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2, yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2.Builder, yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2OrBuilder>( (yandex.cloud.api.mdb.opensearch.v1.Opensearch.OpenSearchConfigSet2) config_, getParentForChildren(), isClean()); config_ = null; } configCase_ = 3; onChanged();; return opensearchConfigSet2Builder_; } @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.opensearch.v1.OpenSearch) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.OpenSearch) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OpenSearch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OpenSearch(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.opensearch.v1.ClusterOuterClass.OpenSearch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DashboardsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Dashboards) com.google.protobuf.MessageOrBuilder { /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ java.util.List getNodeGroupsList(); /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup getNodeGroups(int index); /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ int getNodeGroupsCount(); /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ java.util.List getNodeGroupsOrBuilderList(); /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroupOrBuilder getNodeGroupsOrBuilder( int index); } /** *
   * The Dashboards host group type configuration.
   * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Dashboards} */ public static final class Dashboards extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Dashboards) DashboardsOrBuilder { private static final long serialVersionUID = 0L; // Use Dashboards.newBuilder() to construct. private Dashboards(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Dashboards() { nodeGroups_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Dashboards(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Dashboards( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { nodeGroups_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } nodeGroups_.add( input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.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)) { nodeGroups_ = java.util.Collections.unmodifiableList(nodeGroups_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.Builder.class); } public interface NodeGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup) com.google.protobuf.MessageOrBuilder { /** *
       * Name of the group. 1-63 characters long.
       * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
       * Name of the group. 1-63 characters long.
       * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return Whether the resources field is set. */ boolean hasResources(); /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return The resources. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getResources(); /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder(); /** *
       * Number of hosts in the group.
       * 
* * int64 hosts_count = 3; * @return The hostsCount. */ long getHostsCount(); /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @return A list containing the zoneIds. */ java.util.List getZoneIdsList(); /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @return The count of zoneIds. */ int getZoneIdsCount(); /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @param index The index of the element to return. * @return The zoneIds at the given index. */ java.lang.String getZoneIds(int index); /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @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 the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @return A list containing the subnetIds. */ java.util.List getSubnetIdsList(); /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @return The count of subnetIds. */ int getSubnetIdsCount(); /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @param index The index of the element to return. * @return The subnetIds at the given index. */ java.lang.String getSubnetIds(int index); /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @param index The index of the value to return. * @return The bytes of the subnetIds at the given index. */ com.google.protobuf.ByteString getSubnetIdsBytes(int index); /** *
       * Determines whether a public IP is assigned to the hosts in the group.
       * 
* * bool assign_public_ip = 6; * @return The assignPublicIp. */ boolean getAssignPublicIp(); } /** * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup} */ public static final class NodeGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup) NodeGroupOrBuilder { private static final long serialVersionUID = 0L; // Use NodeGroup.newBuilder() to construct. private NodeGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeGroup() { name_ = ""; zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeGroup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeGroup( 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: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder subBuilder = null; if (resources_ != null) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } break; } case 24: { hostsCount_ = input.readInt64(); break; } case 34: { 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 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { subnetIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } subnetIds_.add(s); break; } case 48: { assignPublicIp_ = input.readBool(); 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)) { subnetIds_ = subnetIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
       * Name of the group. 1-63 characters long.
       * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
       * Name of the group. 1-63 characters long.
       * 
* * 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 RESOURCES_FIELD_NUMBER = 2; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources resources_; /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return The resources. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getResources() { return resources_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } /** *
       * Resources allocated to the hosts.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int HOSTS_COUNT_FIELD_NUMBER = 3; private long hostsCount_; /** *
       * Number of hosts in the group.
       * 
* * int64 hosts_count = 3; * @return The hostsCount. */ @java.lang.Override public long getHostsCount() { return hostsCount_; } public static final int ZONE_IDS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList zoneIds_; /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @return A list containing the zoneIds. */ public com.google.protobuf.ProtocolStringList getZoneIdsList() { return zoneIds_; } /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @return The count of zoneIds. */ public int getZoneIdsCount() { return zoneIds_.size(); } /** *
       * IDs of the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
       * 
* * repeated string zone_ids = 4; * @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 SUBNET_IDS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList subnetIds_; /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @return A list containing the subnetIds. */ public com.google.protobuf.ProtocolStringList getSubnetIdsList() { return subnetIds_; } /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @return The count of subnetIds. */ public int getSubnetIdsCount() { return subnetIds_.size(); } /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @param index The index of the element to return. * @return The subnetIds at the given index. */ public java.lang.String getSubnetIds(int index) { return subnetIds_.get(index); } /** *
       * IDs of the subnets that the hosts belong to.
       * 
* * repeated string subnet_ids = 5; * @param index The index of the value to return. * @return The bytes of the subnetIds at the given index. */ public com.google.protobuf.ByteString getSubnetIdsBytes(int index) { return subnetIds_.getByteString(index); } public static final int ASSIGN_PUBLIC_IP_FIELD_NUMBER = 6; private boolean assignPublicIp_; /** *
       * Determines whether a public IP is assigned to the hosts in the group.
       * 
* * bool assign_public_ip = 6; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (resources_ != null) { output.writeMessage(2, getResources()); } if (hostsCount_ != 0L) { output.writeInt64(3, hostsCount_); } for (int i = 0; i < zoneIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, zoneIds_.getRaw(i)); } for (int i = 0; i < subnetIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subnetIds_.getRaw(i)); } if (assignPublicIp_ != false) { output.writeBool(6, assignPublicIp_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (resources_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResources()); } if (hostsCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, hostsCount_); } { int dataSize = 0; for (int i = 0; i < zoneIds_.size(); i++) { dataSize += computeStringSizeNoTag(zoneIds_.getRaw(i)); } size += dataSize; size += 1 * getZoneIdsList().size(); } { int dataSize = 0; for (int i = 0; i < subnetIds_.size(); i++) { dataSize += computeStringSizeNoTag(subnetIds_.getRaw(i)); } size += dataSize; size += 1 * getSubnetIdsList().size(); } if (assignPublicIp_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, assignPublicIp_); } 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.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup) obj; if (!getName() .equals(other.getName())) return false; if (hasResources() != other.hasResources()) return false; if (hasResources()) { if (!getResources() .equals(other.getResources())) return false; } if (getHostsCount() != other.getHostsCount()) return false; if (!getZoneIdsList() .equals(other.getZoneIdsList())) return false; if (!getSubnetIdsList() .equals(other.getSubnetIdsList())) return false; if (getAssignPublicIp() != other.getAssignPublicIp()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } hash = (37 * hash) + HOSTS_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHostsCount()); if (getZoneIdsCount() > 0) { hash = (37 * hash) + ZONE_IDS_FIELD_NUMBER; hash = (53 * hash) + getZoneIdsList().hashCode(); } if (getSubnetIdsCount() > 0) { hash = (37 * hash) + SUBNET_IDS_FIELD_NUMBER; hash = (53 * hash) + getSubnetIdsList().hashCode(); } hash = (37 * hash) + ASSIGN_PUBLIC_IP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAssignPublicIp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup 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.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup 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.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup 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.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup 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.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup 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.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup 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 yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; if (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } hostsCount_ = 0L; zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); assignPublicIp_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.hostsCount_ = hostsCount_; if (((bitField0_ & 0x00000001) != 0)) { zoneIds_ = zoneIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.zoneIds_ = zoneIds_; if (((bitField0_ & 0x00000002) != 0)) { subnetIds_ = subnetIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.subnetIds_ = subnetIds_; result.assignPublicIp_ = assignPublicIp_; 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.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasResources()) { mergeResources(other.getResources()); } if (other.getHostsCount() != 0L) { setHostsCount(other.getHostsCount()); } if (!other.zoneIds_.isEmpty()) { if (zoneIds_.isEmpty()) { zoneIds_ = other.zoneIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureZoneIdsIsMutable(); zoneIds_.addAll(other.zoneIds_); } onChanged(); } if (!other.subnetIds_.isEmpty()) { if (subnetIds_.isEmpty()) { subnetIds_ = other.subnetIds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSubnetIdsIsMutable(); subnetIds_.addAll(other.subnetIds_); } onChanged(); } if (other.getAssignPublicIp() != false) { setAssignPublicIp(other.getAssignPublicIp()); } 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.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
         * Name of the group. 1-63 characters long.
         * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Name of the group. 1-63 characters long.
         * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Name of the group. 1-63 characters long.
         * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
         * Name of the group. 1-63 characters long.
         * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
         * Name of the group. 1-63 characters long.
         * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_; /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; * @return The resources. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public Builder setResources(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } return this; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public Builder setResources( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public Builder mergeResources(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } } /** *
         * Resources allocated to the hosts.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private long hostsCount_ ; /** *
         * Number of hosts in the group.
         * 
* * int64 hosts_count = 3; * @return The hostsCount. */ @java.lang.Override public long getHostsCount() { return hostsCount_; } /** *
         * Number of hosts in the group.
         * 
* * int64 hosts_count = 3; * @param value The hostsCount to set. * @return This builder for chaining. */ public Builder setHostsCount(long value) { hostsCount_ = value; onChanged(); return this; } /** *
         * Number of hosts in the group.
         * 
* * int64 hosts_count = 3; * @return This builder for chaining. */ public Builder clearHostsCount() { hostsCount_ = 0L; 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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @return A list containing the zoneIds. */ public com.google.protobuf.ProtocolStringList getZoneIdsList() { return zoneIds_.getUnmodifiableView(); } /** *
         * IDs of the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @return The count of zoneIds. */ public int getZoneIdsCount() { return zoneIds_.size(); } /** *
         * IDs of the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @return This builder for chaining. */ public Builder clearZoneIds() { zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
         * IDs of the availability zones the hosts belong to.
         * 
* * repeated string zone_ids = 4; * @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 subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubnetIdsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { subnetIds_ = new com.google.protobuf.LazyStringArrayList(subnetIds_); bitField0_ |= 0x00000002; } } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @return A list containing the subnetIds. */ public com.google.protobuf.ProtocolStringList getSubnetIdsList() { return subnetIds_.getUnmodifiableView(); } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @return The count of subnetIds. */ public int getSubnetIdsCount() { return subnetIds_.size(); } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param index The index of the element to return. * @return The subnetIds at the given index. */ public java.lang.String getSubnetIds(int index) { return subnetIds_.get(index); } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param index The index of the value to return. * @return The bytes of the subnetIds at the given index. */ public com.google.protobuf.ByteString getSubnetIdsBytes(int index) { return subnetIds_.getByteString(index); } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param index The index to set the value at. * @param value The subnetIds to set. * @return This builder for chaining. */ public Builder setSubnetIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubnetIdsIsMutable(); subnetIds_.set(index, value); onChanged(); return this; } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param value The subnetIds to add. * @return This builder for chaining. */ public Builder addSubnetIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubnetIdsIsMutable(); subnetIds_.add(value); onChanged(); return this; } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param values The subnetIds to add. * @return This builder for chaining. */ public Builder addAllSubnetIds( java.lang.Iterable values) { ensureSubnetIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, subnetIds_); onChanged(); return this; } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @return This builder for chaining. */ public Builder clearSubnetIds() { subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
         * IDs of the subnets that the hosts belong to.
         * 
* * repeated string subnet_ids = 5; * @param value The bytes of the subnetIds to add. * @return This builder for chaining. */ public Builder addSubnetIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubnetIdsIsMutable(); subnetIds_.add(value); onChanged(); return this; } private boolean assignPublicIp_ ; /** *
         * Determines whether a public IP is assigned to the hosts in the group.
         * 
* * bool assign_public_ip = 6; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } /** *
         * Determines whether a public IP is assigned to the hosts in the group.
         * 
* * bool assign_public_ip = 6; * @param value The assignPublicIp to set. * @return This builder for chaining. */ public Builder setAssignPublicIp(boolean value) { assignPublicIp_ = value; onChanged(); return this; } /** *
         * Determines whether a public IP is assigned to the hosts in the group.
         * 
* * bool assign_public_ip = 6; * @return This builder for chaining. */ public Builder clearAssignPublicIp() { assignPublicIp_ = false; 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.opensearch.v1.Dashboards.NodeGroup) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeGroup(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.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NODE_GROUPS_FIELD_NUMBER = 2; private java.util.List nodeGroups_; /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ @java.lang.Override public java.util.List getNodeGroupsList() { return nodeGroups_; } /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ @java.lang.Override public java.util.List getNodeGroupsOrBuilderList() { return nodeGroups_; } /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ @java.lang.Override public int getNodeGroupsCount() { return nodeGroups_.size(); } /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup getNodeGroups(int index) { return nodeGroups_.get(index); } /** *
     * Host groups of the Dashboards type.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroupOrBuilder getNodeGroupsOrBuilder( int index) { return nodeGroups_.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 < nodeGroups_.size(); i++) { output.writeMessage(2, nodeGroups_.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 < nodeGroups_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, nodeGroups_.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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards) obj; if (!getNodeGroupsList() .equals(other.getNodeGroupsList())) 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 (getNodeGroupsCount() > 0) { hash = (37 * hash) + NODE_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getNodeGroupsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards 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.opensearch.v1.ClusterOuterClass.Dashboards parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards 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.opensearch.v1.ClusterOuterClass.Dashboards parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards 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.opensearch.v1.ClusterOuterClass.Dashboards parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards 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.opensearch.v1.ClusterOuterClass.Dashboards parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards 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.opensearch.v1.ClusterOuterClass.Dashboards prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * The Dashboards host group type configuration.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Dashboards} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Dashboards) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.DashboardsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNodeGroupsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (nodeGroupsBuilder_ == null) { nodeGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nodeGroupsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards(this); int from_bitField0_ = bitField0_; if (nodeGroupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { nodeGroups_ = java.util.Collections.unmodifiableList(nodeGroups_); bitField0_ = (bitField0_ & ~0x00000001); } result.nodeGroups_ = nodeGroups_; } else { result.nodeGroups_ = nodeGroupsBuilder_.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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.getDefaultInstance()) return this; if (nodeGroupsBuilder_ == null) { if (!other.nodeGroups_.isEmpty()) { if (nodeGroups_.isEmpty()) { nodeGroups_ = other.nodeGroups_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNodeGroupsIsMutable(); nodeGroups_.addAll(other.nodeGroups_); } onChanged(); } } else { if (!other.nodeGroups_.isEmpty()) { if (nodeGroupsBuilder_.isEmpty()) { nodeGroupsBuilder_.dispose(); nodeGroupsBuilder_ = null; nodeGroups_ = other.nodeGroups_; bitField0_ = (bitField0_ & ~0x00000001); nodeGroupsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNodeGroupsFieldBuilder() : null; } else { nodeGroupsBuilder_.addAllMessages(other.nodeGroups_); } } } 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.opensearch.v1.ClusterOuterClass.Dashboards parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List nodeGroups_ = java.util.Collections.emptyList(); private void ensureNodeGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nodeGroups_ = new java.util.ArrayList(nodeGroups_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroupOrBuilder> nodeGroupsBuilder_; /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public java.util.List getNodeGroupsList() { if (nodeGroupsBuilder_ == null) { return java.util.Collections.unmodifiableList(nodeGroups_); } else { return nodeGroupsBuilder_.getMessageList(); } } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public int getNodeGroupsCount() { if (nodeGroupsBuilder_ == null) { return nodeGroups_.size(); } else { return nodeGroupsBuilder_.getCount(); } } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup getNodeGroups(int index) { if (nodeGroupsBuilder_ == null) { return nodeGroups_.get(index); } else { return nodeGroupsBuilder_.getMessage(index); } } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public Builder setNodeGroups( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup value) { if (nodeGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeGroupsIsMutable(); nodeGroups_.set(index, value); onChanged(); } else { nodeGroupsBuilder_.setMessage(index, value); } return this; } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public Builder setNodeGroups( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder builderForValue) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); nodeGroups_.set(index, builderForValue.build()); onChanged(); } else { nodeGroupsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public Builder addNodeGroups(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup value) { if (nodeGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeGroupsIsMutable(); nodeGroups_.add(value); onChanged(); } else { nodeGroupsBuilder_.addMessage(value); } return this; } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public Builder addNodeGroups( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup value) { if (nodeGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeGroupsIsMutable(); nodeGroups_.add(index, value); onChanged(); } else { nodeGroupsBuilder_.addMessage(index, value); } return this; } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public Builder addNodeGroups( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder builderForValue) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); nodeGroups_.add(builderForValue.build()); onChanged(); } else { nodeGroupsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public Builder addNodeGroups( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder builderForValue) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); nodeGroups_.add(index, builderForValue.build()); onChanged(); } else { nodeGroupsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public Builder addAllNodeGroups( java.lang.Iterable values) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nodeGroups_); onChanged(); } else { nodeGroupsBuilder_.addAllMessages(values); } return this; } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public Builder clearNodeGroups() { if (nodeGroupsBuilder_ == null) { nodeGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nodeGroupsBuilder_.clear(); } return this; } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public Builder removeNodeGroups(int index) { if (nodeGroupsBuilder_ == null) { ensureNodeGroupsIsMutable(); nodeGroups_.remove(index); onChanged(); } else { nodeGroupsBuilder_.remove(index); } return this; } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder getNodeGroupsBuilder( int index) { return getNodeGroupsFieldBuilder().getBuilder(index); } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroupOrBuilder getNodeGroupsOrBuilder( int index) { if (nodeGroupsBuilder_ == null) { return nodeGroups_.get(index); } else { return nodeGroupsBuilder_.getMessageOrBuilder(index); } } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public java.util.List getNodeGroupsOrBuilderList() { if (nodeGroupsBuilder_ != null) { return nodeGroupsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nodeGroups_); } } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder addNodeGroupsBuilder() { return getNodeGroupsFieldBuilder().addBuilder( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.getDefaultInstance()); } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder addNodeGroupsBuilder( int index) { return getNodeGroupsFieldBuilder().addBuilder( index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.getDefaultInstance()); } /** *
       * Host groups of the Dashboards type.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.Dashboards.NodeGroup node_groups = 2; */ public java.util.List getNodeGroupsBuilderList() { return getNodeGroupsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroupOrBuilder> getNodeGroupsFieldBuilder() { if (nodeGroupsBuilder_ == null) { nodeGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroup.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards.NodeGroupOrBuilder>( nodeGroups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodeGroups_ = null; } return nodeGroupsBuilder_; } @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.opensearch.v1.Dashboards) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Dashboards) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Dashboards getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Dashboards parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Dashboards(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.opensearch.v1.ClusterOuterClass.Dashboards getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Resources) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the preset for computational resources allocated to a host.
     * 
* * string resource_preset_id = 1; * @return The resourcePresetId. */ java.lang.String getResourcePresetId(); /** *
     * ID of the preset for computational resources allocated to a host.
     * 
* * string resource_preset_id = 1; * @return The bytes for resourcePresetId. */ com.google.protobuf.ByteString getResourcePresetIdBytes(); /** *
     * Volume of the storage used by the host, in bytes.
     * 
* * int64 disk_size = 2; * @return The diskSize. */ long getDiskSize(); /** *
     * Type of the storage used by the host: `network-hdd`, `network-ssd` or `local-ssd`.
     * 
* * string disk_type_id = 3; * @return The diskTypeId. */ java.lang.String getDiskTypeId(); /** *
     * Type of the storage used by the host: `network-hdd`, `network-ssd` or `local-ssd`.
     * 
* * string disk_type_id = 3; * @return The bytes for diskTypeId. */ com.google.protobuf.ByteString getDiskTypeIdBytes(); } /** *
   * A list of computational resources allocated to a host.
   * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Resources} */ public static final class Resources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.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() { resourcePresetId_ = ""; diskTypeId_ = ""; } @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(); } 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(); resourcePresetId_ = s; break; } case 16: { diskSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); diskTypeId_ = 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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder.class); } public static final int RESOURCE_PRESET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object resourcePresetId_; /** *
     * ID of the preset for computational resources allocated to a host.
     * 
* * string resource_preset_id = 1; * @return The resourcePresetId. */ @java.lang.Override public java.lang.String getResourcePresetId() { java.lang.Object ref = resourcePresetId_; 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(); resourcePresetId_ = s; return s; } } /** *
     * ID of the preset for computational resources allocated to a host.
     * 
* * string resource_preset_id = 1; * @return The bytes for resourcePresetId. */ @java.lang.Override public com.google.protobuf.ByteString getResourcePresetIdBytes() { java.lang.Object ref = resourcePresetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourcePresetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISK_SIZE_FIELD_NUMBER = 2; private long diskSize_; /** *
     * Volume of the storage used by the host, in bytes.
     * 
* * int64 disk_size = 2; * @return The diskSize. */ @java.lang.Override public long getDiskSize() { return diskSize_; } public static final int DISK_TYPE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object diskTypeId_; /** *
     * Type of the storage used by the host: `network-hdd`, `network-ssd` or `local-ssd`.
     * 
* * string disk_type_id = 3; * @return The diskTypeId. */ @java.lang.Override public java.lang.String getDiskTypeId() { java.lang.Object ref = diskTypeId_; 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(); diskTypeId_ = s; return s; } } /** *
     * Type of the storage used by the host: `network-hdd`, `network-ssd` or `local-ssd`.
     * 
* * string disk_type_id = 3; * @return The bytes for diskTypeId. */ @java.lang.Override public com.google.protobuf.ByteString getDiskTypeIdBytes() { java.lang.Object ref = diskTypeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); diskTypeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourcePresetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourcePresetId_); } if (diskSize_ != 0L) { output.writeInt64(2, diskSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskTypeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskTypeId_); } 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(resourcePresetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourcePresetId_); } if (diskSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, diskSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskTypeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskTypeId_); } 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.opensearch.v1.ClusterOuterClass.Resources)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources) obj; if (!getResourcePresetId() .equals(other.getResourcePresetId())) return false; if (getDiskSize() != other.getDiskSize()) return false; if (!getDiskTypeId() .equals(other.getDiskTypeId())) 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) + RESOURCE_PRESET_ID_FIELD_NUMBER; hash = (53 * hash) + getResourcePresetId().hashCode(); hash = (37 * hash) + DISK_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDiskSize()); hash = (37 * hash) + DISK_TYPE_ID_FIELD_NUMBER; hash = (53 * hash) + getDiskTypeId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources 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.opensearch.v1.ClusterOuterClass.Resources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources 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.opensearch.v1.ClusterOuterClass.Resources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.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(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.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 list of computational resources allocated to a host.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Resources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Resources) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.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) { } } @java.lang.Override public Builder clear() { super.clear(); resourcePresetId_ = ""; diskSize_ = 0L; diskTypeId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Resources_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources(this); result.resourcePresetId_ = resourcePresetId_; result.diskSize_ = diskSize_; result.diskTypeId_ = diskTypeId_; 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.opensearch.v1.ClusterOuterClass.Resources) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance()) return this; if (!other.getResourcePresetId().isEmpty()) { resourcePresetId_ = other.resourcePresetId_; onChanged(); } if (other.getDiskSize() != 0L) { setDiskSize(other.getDiskSize()); } if (!other.getDiskTypeId().isEmpty()) { diskTypeId_ = other.diskTypeId_; 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 { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object resourcePresetId_ = ""; /** *
       * ID of the preset for computational resources allocated to a host.
       * 
* * string resource_preset_id = 1; * @return The resourcePresetId. */ public java.lang.String getResourcePresetId() { java.lang.Object ref = resourcePresetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourcePresetId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the preset for computational resources allocated to a host.
       * 
* * string resource_preset_id = 1; * @return The bytes for resourcePresetId. */ public com.google.protobuf.ByteString getResourcePresetIdBytes() { java.lang.Object ref = resourcePresetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); resourcePresetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the preset for computational resources allocated to a host.
       * 
* * string resource_preset_id = 1; * @param value The resourcePresetId to set. * @return This builder for chaining. */ public Builder setResourcePresetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourcePresetId_ = value; onChanged(); return this; } /** *
       * ID of the preset for computational resources allocated to a host.
       * 
* * string resource_preset_id = 1; * @return This builder for chaining. */ public Builder clearResourcePresetId() { resourcePresetId_ = getDefaultInstance().getResourcePresetId(); onChanged(); return this; } /** *
       * ID of the preset for computational resources allocated to a host.
       * 
* * string resource_preset_id = 1; * @param value The bytes for resourcePresetId to set. * @return This builder for chaining. */ public Builder setResourcePresetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourcePresetId_ = value; onChanged(); return this; } private long diskSize_ ; /** *
       * Volume of the storage used by the host, in bytes.
       * 
* * int64 disk_size = 2; * @return The diskSize. */ @java.lang.Override public long getDiskSize() { return diskSize_; } /** *
       * Volume of the storage used by the host, in bytes.
       * 
* * int64 disk_size = 2; * @param value The diskSize to set. * @return This builder for chaining. */ public Builder setDiskSize(long value) { diskSize_ = value; onChanged(); return this; } /** *
       * Volume of the storage used by the host, in bytes.
       * 
* * int64 disk_size = 2; * @return This builder for chaining. */ public Builder clearDiskSize() { diskSize_ = 0L; onChanged(); return this; } private java.lang.Object diskTypeId_ = ""; /** *
       * Type of the storage used by the host: `network-hdd`, `network-ssd` or `local-ssd`.
       * 
* * string disk_type_id = 3; * @return The diskTypeId. */ public java.lang.String getDiskTypeId() { java.lang.Object ref = diskTypeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskTypeId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Type of the storage used by the host: `network-hdd`, `network-ssd` or `local-ssd`.
       * 
* * string disk_type_id = 3; * @return The bytes for diskTypeId. */ public com.google.protobuf.ByteString getDiskTypeIdBytes() { java.lang.Object ref = diskTypeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); diskTypeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Type of the storage used by the host: `network-hdd`, `network-ssd` or `local-ssd`.
       * 
* * string disk_type_id = 3; * @param value The diskTypeId to set. * @return This builder for chaining. */ public Builder setDiskTypeId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } diskTypeId_ = value; onChanged(); return this; } /** *
       * Type of the storage used by the host: `network-hdd`, `network-ssd` or `local-ssd`.
       * 
* * string disk_type_id = 3; * @return This builder for chaining. */ public Builder clearDiskTypeId() { diskTypeId_ = getDefaultInstance().getDiskTypeId(); onChanged(); return this; } /** *
       * Type of the storage used by the host: `network-hdd`, `network-ssd` or `local-ssd`.
       * 
* * string disk_type_id = 3; * @param value The bytes for diskTypeId to set. * @return This builder for chaining. */ public Builder setDiskTypeIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); diskTypeId_ = 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:yandex.cloud.mdb.opensearch.v1.Resources) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Resources) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Host) com.google.protobuf.MessageOrBuilder { /** *
     * Required. Name of the OpenSearch host.
     * The host name is assigned by the platform at creation time and cannot be changed.
     * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Required. Name of the OpenSearch host.
     * The host name is assigned by the platform at creation time and cannot be changed.
     * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time.
     * 
* * string cluster_id = 2; * @return The clusterId. */ java.lang.String getClusterId(); /** *
     * Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time.
     * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ com.google.protobuf.ByteString getClusterIdBytes(); /** *
     * ID of the availability zone the OpenSearch host belongs to.
     * 
* * string zone_id = 3; * @return The zoneId. */ java.lang.String getZoneId(); /** *
     * ID of the availability zone the OpenSearch host belongs to.
     * 
* * string zone_id = 3; * @return The bytes for zoneId. */ com.google.protobuf.ByteString getZoneIdBytes(); /** *
     * Resources allocated to the OpenSearch host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; * @return Whether the resources field is set. */ boolean hasResources(); /** *
     * Resources allocated to the OpenSearch host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; * @return The resources. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getResources(); /** *
     * Resources allocated to the OpenSearch host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder(); /** *
     * Type of the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Type type = 5; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * Type of the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Type type = 5; * @return The type. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type getType(); /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Health health = 6; * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Health health = 6; * @return The health. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health getHealth(); /** *
     * ID of the subnet that the host belongs to.
     * 
* * string subnet_id = 8; * @return The subnetId. */ java.lang.String getSubnetId(); /** *
     * ID of the subnet that the host belongs to.
     * 
* * string subnet_id = 8; * @return The bytes for subnetId. */ com.google.protobuf.ByteString getSubnetIdBytes(); /** *
     * Determines whether a public IP is assigned to the host.
     * 
* * bool assign_public_ip = 9; * @return The assignPublicIp. */ boolean getAssignPublicIp(); /** *
     * Resources used by the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; * @return Whether the system field is set. */ boolean hasSystem(); /** *
     * Resources used by the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; * @return The system. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics getSystem(); /** *
     * Resources used by the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetricsOrBuilder getSystemOrBuilder(); /** *
     * Name of the host group that the host belongs to.
     * 
* * string node_group = 11; * @return The nodeGroup. */ java.lang.String getNodeGroup(); /** *
     * Name of the host group that the host belongs to.
     * 
* * string node_group = 11; * @return The bytes for nodeGroup. */ com.google.protobuf.ByteString getNodeGroupBytes(); /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return A list containing the roles. */ java.util.List getRolesList(); /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return The count of roles. */ int getRolesCount(); /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param index The index of the element to return. * @return The roles at the given index. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole getRoles(int index); /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return A list containing the enum numeric values on the wire for roles. */ java.util.List getRolesValueList(); /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ int getRolesValue(int index); } /** *
   * An OpenSearch cluster host resource.
   * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host} */ public static final class Host extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Host) HostOrBuilder { private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Host() { name_ = ""; clusterId_ = ""; zoneId_ = ""; type_ = 0; health_ = 0; subnetId_ = ""; nodeGroup_ = ""; roles_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Host(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Host( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); clusterId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); zoneId_ = s; break; } case 34: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder subBuilder = null; if (resources_ != null) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } break; } case 40: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); health_ = rawValue; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); subnetId_ = s; break; } case 72: { assignPublicIp_ = input.readBool(); break; } case 82: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.Builder subBuilder = null; if (system_ != null) { subBuilder = system_.toBuilder(); } system_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(system_); system_ = subBuilder.buildPartial(); } break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); nodeGroup_ = s; break; } case 96: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { roles_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } roles_.add(rawValue); break; } case 98: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { roles_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } roles_.add(rawValue); } input.popLimit(oldLimit); 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)) { roles_ = java.util.Collections.unmodifiableList(roles_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.opensearch.v1.Host.Health} */ public enum Health implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Health of the host is unknown.
       * 
* * UNKNOWN = 0; */ UNKNOWN(0), /** *
       * The host is performing all its functions normally.
       * 
* * ALIVE = 1; */ ALIVE(1), /** *
       * The host is inoperable and cannot perform any of its essential functions.
       * 
* * DEAD = 2; */ DEAD(2), /** *
       * The host is working below capacity or not fully functional.
       * 
* * DEGRADED = 3; */ DEGRADED(3), UNRECOGNIZED(-1), ; /** *
       * Health of the host is unknown.
       * 
* * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** *
       * The host is performing all its functions normally.
       * 
* * ALIVE = 1; */ public static final int ALIVE_VALUE = 1; /** *
       * The host is inoperable and cannot perform any of its essential functions.
       * 
* * DEAD = 2; */ public static final int DEAD_VALUE = 2; /** *
       * The host is working below capacity or not fully functional.
       * 
* * DEGRADED = 3; */ public static final int DEGRADED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Health 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 Health forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return ALIVE; case 2: return DEAD; case 3: return DEGRADED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Health> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Health findValueByNumber(int number) { return Health.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.opensearch.v1.ClusterOuterClass.Host.getDescriptor().getEnumTypes().get(0); } private static final Health[] VALUES = values(); public static Health 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 Health(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.opensearch.v1.Host.Health) } /** * Protobuf enum {@code yandex.cloud.mdb.opensearch.v1.Host.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** *
       * The type is not specified.
       * 
* * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** *
       * An OpenSearch type host.
       * 
* * OPENSEARCH = 1; */ OPENSEARCH(1), /** *
       * A Dashboards type host.
       * 
* * DASHBOARDS = 2; */ DASHBOARDS(2), UNRECOGNIZED(-1), ; /** *
       * The type is not specified.
       * 
* * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** *
       * An OpenSearch type host.
       * 
* * OPENSEARCH = 1; */ public static final int OPENSEARCH_VALUE = 1; /** *
       * A Dashboards type host.
       * 
* * DASHBOARDS = 2; */ public static final int DASHBOARDS_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 OPENSEARCH; case 2: return DASHBOARDS; 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.opensearch.v1.ClusterOuterClass.Host.getDescriptor().getEnumTypes().get(1); } 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.opensearch.v1.Host.Type) } public interface CPUMetricOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Host.CPUMetric) com.google.protobuf.MessageOrBuilder { /** *
       * Time of the record.
       * 
* * int64 timestamp = 1; * @return The timestamp. */ long getTimestamp(); /** *
       * Percentage of the CPU used.
       * 
* * double used = 2; * @return The used. */ double getUsed(); } /** *
     * CPU usage of the host.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host.CPUMetric} */ public static final class CPUMetric extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Host.CPUMetric) CPUMetricOrBuilder { private static final long serialVersionUID = 0L; // Use CPUMetric.newBuilder() to construct. private CPUMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CPUMetric() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CPUMetric(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CPUMetric( 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: { timestamp_ = input.readInt64(); break; } case 17: { used_ = input.readDouble(); 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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_; /** *
       * Time of the record.
       * 
* * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } public static final int USED_FIELD_NUMBER = 2; private double used_; /** *
       * Percentage of the CPU used.
       * 
* * double used = 2; * @return The used. */ @java.lang.Override public double getUsed() { return used_; } 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 (timestamp_ != 0L) { output.writeInt64(1, timestamp_); } if (java.lang.Double.doubleToRawLongBits(used_) != 0) { output.writeDouble(2, used_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (java.lang.Double.doubleToRawLongBits(used_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, used_); } 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.opensearch.v1.ClusterOuterClass.Host.CPUMetric)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric) obj; if (getTimestamp() != other.getTimestamp()) return false; if (java.lang.Double.doubleToLongBits(getUsed()) != java.lang.Double.doubleToLongBits( other.getUsed())) 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) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + USED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getUsed())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric 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.opensearch.v1.ClusterOuterClass.Host.CPUMetric parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric 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.opensearch.v1.ClusterOuterClass.Host.CPUMetric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric 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.opensearch.v1.ClusterOuterClass.Host.CPUMetric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric 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.opensearch.v1.ClusterOuterClass.Host.CPUMetric parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric 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.opensearch.v1.ClusterOuterClass.Host.CPUMetric 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; } /** *
       * CPU usage of the host.
       * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host.CPUMetric} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Host.CPUMetric) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetricOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.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(); timestamp_ = 0L; used_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric(this); result.timestamp_ = timestamp_; result.used_ = used_; 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.opensearch.v1.ClusterOuterClass.Host.CPUMetric) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.getDefaultInstance()) return this; if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.getUsed() != 0D) { setUsed(other.getUsed()); } 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.opensearch.v1.ClusterOuterClass.Host.CPUMetric parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long timestamp_ ; /** *
         * Time of the record.
         * 
* * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** *
         * Time of the record.
         * 
* * int64 timestamp = 1; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** *
         * Time of the record.
         * 
* * int64 timestamp = 1; * @return This builder for chaining. */ public Builder clearTimestamp() { timestamp_ = 0L; onChanged(); return this; } private double used_ ; /** *
         * Percentage of the CPU used.
         * 
* * double used = 2; * @return The used. */ @java.lang.Override public double getUsed() { return used_; } /** *
         * Percentage of the CPU used.
         * 
* * double used = 2; * @param value The used to set. * @return This builder for chaining. */ public Builder setUsed(double value) { used_ = value; onChanged(); return this; } /** *
         * Percentage of the CPU used.
         * 
* * double used = 2; * @return This builder for chaining. */ public Builder clearUsed() { used_ = 0D; 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.opensearch.v1.Host.CPUMetric) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Host.CPUMetric) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CPUMetric parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CPUMetric(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.opensearch.v1.ClusterOuterClass.Host.CPUMetric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MemoryMetricOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric) com.google.protobuf.MessageOrBuilder { /** *
       * Time of the record.
       * 
* * int64 timestamp = 1; * @return The timestamp. */ long getTimestamp(); /** *
       * The amount of RAM used, in bytes.
       * 
* * int64 used = 2; * @return The used. */ long getUsed(); /** *
       * Total amount of RAM allocated to the host.
       * 
* * int64 total = 3; * @return The total. */ long getTotal(); } /** *
     * RAM usage of the host.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric} */ public static final class MemoryMetric extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric) MemoryMetricOrBuilder { private static final long serialVersionUID = 0L; // Use MemoryMetric.newBuilder() to construct. private MemoryMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MemoryMetric() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MemoryMetric(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MemoryMetric( 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: { timestamp_ = input.readInt64(); break; } case 16: { used_ = input.readInt64(); break; } case 24: { total_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_; /** *
       * Time of the record.
       * 
* * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } public static final int USED_FIELD_NUMBER = 2; private long used_; /** *
       * The amount of RAM used, in bytes.
       * 
* * int64 used = 2; * @return The used. */ @java.lang.Override public long getUsed() { return used_; } public static final int TOTAL_FIELD_NUMBER = 3; private long total_; /** *
       * Total amount of RAM allocated to the host.
       * 
* * int64 total = 3; * @return The total. */ @java.lang.Override public long getTotal() { return total_; } 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 (timestamp_ != 0L) { output.writeInt64(1, timestamp_); } if (used_ != 0L) { output.writeInt64(2, used_); } if (total_ != 0L) { output.writeInt64(3, total_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (used_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, used_); } if (total_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, total_); } 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.opensearch.v1.ClusterOuterClass.Host.MemoryMetric)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric) obj; if (getTimestamp() != other.getTimestamp()) return false; if (getUsed() != other.getUsed()) return false; if (getTotal() != other.getTotal()) 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) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + USED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUsed()); hash = (37 * hash) + TOTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotal()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric 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.opensearch.v1.ClusterOuterClass.Host.MemoryMetric parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric 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.opensearch.v1.ClusterOuterClass.Host.MemoryMetric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric 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.opensearch.v1.ClusterOuterClass.Host.MemoryMetric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric 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.opensearch.v1.ClusterOuterClass.Host.MemoryMetric parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric 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.opensearch.v1.ClusterOuterClass.Host.MemoryMetric 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; } /** *
       * RAM usage of the host.
       * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetricOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.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(); timestamp_ = 0L; used_ = 0L; total_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric(this); result.timestamp_ = timestamp_; result.used_ = used_; result.total_ = total_; 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.opensearch.v1.ClusterOuterClass.Host.MemoryMetric) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.getDefaultInstance()) return this; if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.getUsed() != 0L) { setUsed(other.getUsed()); } if (other.getTotal() != 0L) { setTotal(other.getTotal()); } 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.opensearch.v1.ClusterOuterClass.Host.MemoryMetric parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long timestamp_ ; /** *
         * Time of the record.
         * 
* * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** *
         * Time of the record.
         * 
* * int64 timestamp = 1; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** *
         * Time of the record.
         * 
* * int64 timestamp = 1; * @return This builder for chaining. */ public Builder clearTimestamp() { timestamp_ = 0L; onChanged(); return this; } private long used_ ; /** *
         * The amount of RAM used, in bytes.
         * 
* * int64 used = 2; * @return The used. */ @java.lang.Override public long getUsed() { return used_; } /** *
         * The amount of RAM used, in bytes.
         * 
* * int64 used = 2; * @param value The used to set. * @return This builder for chaining. */ public Builder setUsed(long value) { used_ = value; onChanged(); return this; } /** *
         * The amount of RAM used, in bytes.
         * 
* * int64 used = 2; * @return This builder for chaining. */ public Builder clearUsed() { used_ = 0L; onChanged(); return this; } private long total_ ; /** *
         * Total amount of RAM allocated to the host.
         * 
* * int64 total = 3; * @return The total. */ @java.lang.Override public long getTotal() { return total_; } /** *
         * Total amount of RAM allocated to the host.
         * 
* * int64 total = 3; * @param value The total to set. * @return This builder for chaining. */ public Builder setTotal(long value) { total_ = value; onChanged(); return this; } /** *
         * Total amount of RAM allocated to the host.
         * 
* * int64 total = 3; * @return This builder for chaining. */ public Builder clearTotal() { total_ = 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.opensearch.v1.Host.MemoryMetric) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MemoryMetric parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MemoryMetric(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.opensearch.v1.ClusterOuterClass.Host.MemoryMetric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiskMetricOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Host.DiskMetric) com.google.protobuf.MessageOrBuilder { /** *
       * Time of the record.
       * 
* * int64 timestamp = 1; * @return The timestamp. */ long getTimestamp(); /** *
       * The amount of disk space used, in bytes.
       * 
* * int64 used = 2; * @return The used. */ long getUsed(); /** *
       * Total amount of disk space allocated to the host.
       * 
* * int64 total = 3; * @return The total. */ long getTotal(); } /** *
     * Disk usage of the host.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host.DiskMetric} */ public static final class DiskMetric extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Host.DiskMetric) DiskMetricOrBuilder { private static final long serialVersionUID = 0L; // Use DiskMetric.newBuilder() to construct. private DiskMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiskMetric() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiskMetric(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiskMetric( 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: { timestamp_ = input.readInt64(); break; } case 16: { used_ = input.readInt64(); break; } case 24: { total_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_; /** *
       * Time of the record.
       * 
* * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } public static final int USED_FIELD_NUMBER = 2; private long used_; /** *
       * The amount of disk space used, in bytes.
       * 
* * int64 used = 2; * @return The used. */ @java.lang.Override public long getUsed() { return used_; } public static final int TOTAL_FIELD_NUMBER = 3; private long total_; /** *
       * Total amount of disk space allocated to the host.
       * 
* * int64 total = 3; * @return The total. */ @java.lang.Override public long getTotal() { return total_; } 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 (timestamp_ != 0L) { output.writeInt64(1, timestamp_); } if (used_ != 0L) { output.writeInt64(2, used_); } if (total_ != 0L) { output.writeInt64(3, total_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (used_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, used_); } if (total_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, total_); } 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.opensearch.v1.ClusterOuterClass.Host.DiskMetric)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric) obj; if (getTimestamp() != other.getTimestamp()) return false; if (getUsed() != other.getUsed()) return false; if (getTotal() != other.getTotal()) 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) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + USED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUsed()); hash = (37 * hash) + TOTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotal()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric 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.opensearch.v1.ClusterOuterClass.Host.DiskMetric parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric 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.opensearch.v1.ClusterOuterClass.Host.DiskMetric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric 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.opensearch.v1.ClusterOuterClass.Host.DiskMetric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric 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.opensearch.v1.ClusterOuterClass.Host.DiskMetric parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric 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.opensearch.v1.ClusterOuterClass.Host.DiskMetric 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; } /** *
       * Disk usage of the host.
       * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host.DiskMetric} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Host.DiskMetric) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetricOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.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(); timestamp_ = 0L; used_ = 0L; total_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric(this); result.timestamp_ = timestamp_; result.used_ = used_; result.total_ = total_; 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.opensearch.v1.ClusterOuterClass.Host.DiskMetric) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.getDefaultInstance()) return this; if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.getUsed() != 0L) { setUsed(other.getUsed()); } if (other.getTotal() != 0L) { setTotal(other.getTotal()); } 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.opensearch.v1.ClusterOuterClass.Host.DiskMetric parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long timestamp_ ; /** *
         * Time of the record.
         * 
* * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** *
         * Time of the record.
         * 
* * int64 timestamp = 1; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** *
         * Time of the record.
         * 
* * int64 timestamp = 1; * @return This builder for chaining. */ public Builder clearTimestamp() { timestamp_ = 0L; onChanged(); return this; } private long used_ ; /** *
         * The amount of disk space used, in bytes.
         * 
* * int64 used = 2; * @return The used. */ @java.lang.Override public long getUsed() { return used_; } /** *
         * The amount of disk space used, in bytes.
         * 
* * int64 used = 2; * @param value The used to set. * @return This builder for chaining. */ public Builder setUsed(long value) { used_ = value; onChanged(); return this; } /** *
         * The amount of disk space used, in bytes.
         * 
* * int64 used = 2; * @return This builder for chaining. */ public Builder clearUsed() { used_ = 0L; onChanged(); return this; } private long total_ ; /** *
         * Total amount of disk space allocated to the host.
         * 
* * int64 total = 3; * @return The total. */ @java.lang.Override public long getTotal() { return total_; } /** *
         * Total amount of disk space allocated to the host.
         * 
* * int64 total = 3; * @param value The total to set. * @return This builder for chaining. */ public Builder setTotal(long value) { total_ = value; onChanged(); return this; } /** *
         * Total amount of disk space allocated to the host.
         * 
* * int64 total = 3; * @return This builder for chaining. */ public Builder clearTotal() { total_ = 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.opensearch.v1.Host.DiskMetric) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Host.DiskMetric) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiskMetric parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiskMetric(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.opensearch.v1.ClusterOuterClass.Host.DiskMetric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SystemMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics) com.google.protobuf.MessageOrBuilder { /** *
       * CPU usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; * @return Whether the cpu field is set. */ boolean hasCpu(); /** *
       * CPU usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; * @return The cpu. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric getCpu(); /** *
       * CPU usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetricOrBuilder getCpuOrBuilder(); /** *
       * RAM usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; * @return Whether the memory field is set. */ boolean hasMemory(); /** *
       * RAM usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; * @return The memory. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric getMemory(); /** *
       * RAM usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetricOrBuilder getMemoryOrBuilder(); /** *
       * Disk usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; * @return Whether the disk field is set. */ boolean hasDisk(); /** *
       * Disk usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; * @return The disk. */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric getDisk(); /** *
       * Disk usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; */ yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetricOrBuilder getDiskOrBuilder(); } /** *
     * Resources used by the host.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics} */ public static final class SystemMetrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics) SystemMetricsOrBuilder { private static final long serialVersionUID = 0L; // Use SystemMetrics.newBuilder() to construct. private SystemMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SystemMetrics() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SystemMetrics(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SystemMetrics( 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: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.Builder subBuilder = null; if (cpu_ != null) { subBuilder = cpu_.toBuilder(); } cpu_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cpu_); cpu_ = subBuilder.buildPartial(); } break; } case 18: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.Builder subBuilder = null; if (memory_ != null) { subBuilder = memory_.toBuilder(); } memory_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(memory_); memory_ = subBuilder.buildPartial(); } break; } case 26: { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.Builder subBuilder = null; if (disk_ != null) { subBuilder = disk_.toBuilder(); } disk_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(disk_); disk_ = 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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.Builder.class); } public static final int CPU_FIELD_NUMBER = 1; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric cpu_; /** *
       * CPU usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; * @return Whether the cpu field is set. */ @java.lang.Override public boolean hasCpu() { return cpu_ != null; } /** *
       * CPU usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; * @return The cpu. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric getCpu() { return cpu_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.getDefaultInstance() : cpu_; } /** *
       * CPU usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetricOrBuilder getCpuOrBuilder() { return getCpu(); } public static final int MEMORY_FIELD_NUMBER = 2; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric memory_; /** *
       * RAM usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; * @return Whether the memory field is set. */ @java.lang.Override public boolean hasMemory() { return memory_ != null; } /** *
       * RAM usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; * @return The memory. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric getMemory() { return memory_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.getDefaultInstance() : memory_; } /** *
       * RAM usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetricOrBuilder getMemoryOrBuilder() { return getMemory(); } public static final int DISK_FIELD_NUMBER = 3; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric disk_; /** *
       * Disk usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; * @return Whether the disk field is set. */ @java.lang.Override public boolean hasDisk() { return disk_ != null; } /** *
       * Disk usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; * @return The disk. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric getDisk() { return disk_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.getDefaultInstance() : disk_; } /** *
       * Disk usage of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetricOrBuilder getDiskOrBuilder() { return getDisk(); } 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 (cpu_ != null) { output.writeMessage(1, getCpu()); } if (memory_ != null) { output.writeMessage(2, getMemory()); } if (disk_ != null) { output.writeMessage(3, getDisk()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cpu_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCpu()); } if (memory_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMemory()); } if (disk_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getDisk()); } 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.opensearch.v1.ClusterOuterClass.Host.SystemMetrics)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics) obj; if (hasCpu() != other.hasCpu()) return false; if (hasCpu()) { if (!getCpu() .equals(other.getCpu())) return false; } if (hasMemory() != other.hasMemory()) return false; if (hasMemory()) { if (!getMemory() .equals(other.getMemory())) return false; } if (hasDisk() != other.hasDisk()) return false; if (hasDisk()) { if (!getDisk() .equals(other.getDisk())) 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 (hasCpu()) { hash = (37 * hash) + CPU_FIELD_NUMBER; hash = (53 * hash) + getCpu().hashCode(); } if (hasMemory()) { hash = (37 * hash) + MEMORY_FIELD_NUMBER; hash = (53 * hash) + getMemory().hashCode(); } if (hasDisk()) { hash = (37 * hash) + DISK_FIELD_NUMBER; hash = (53 * hash) + getDisk().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics 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.opensearch.v1.ClusterOuterClass.Host.SystemMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics 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.opensearch.v1.ClusterOuterClass.Host.SystemMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics 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.opensearch.v1.ClusterOuterClass.Host.SystemMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics 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.opensearch.v1.ClusterOuterClass.Host.SystemMetrics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics 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.opensearch.v1.ClusterOuterClass.Host.SystemMetrics 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; } /** *
       * Resources used by the host.
       * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.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 (cpuBuilder_ == null) { cpu_ = null; } else { cpu_ = null; cpuBuilder_ = null; } if (memoryBuilder_ == null) { memory_ = null; } else { memory_ = null; memoryBuilder_ = null; } if (diskBuilder_ == null) { disk_ = null; } else { disk_ = null; diskBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics(this); if (cpuBuilder_ == null) { result.cpu_ = cpu_; } else { result.cpu_ = cpuBuilder_.build(); } if (memoryBuilder_ == null) { result.memory_ = memory_; } else { result.memory_ = memoryBuilder_.build(); } if (diskBuilder_ == null) { result.disk_ = disk_; } else { result.disk_ = diskBuilder_.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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.getDefaultInstance()) return this; if (other.hasCpu()) { mergeCpu(other.getCpu()); } if (other.hasMemory()) { mergeMemory(other.getMemory()); } if (other.hasDisk()) { mergeDisk(other.getDisk()); } 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.opensearch.v1.ClusterOuterClass.Host.SystemMetrics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric cpu_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetricOrBuilder> cpuBuilder_; /** *
         * CPU usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; * @return Whether the cpu field is set. */ public boolean hasCpu() { return cpuBuilder_ != null || cpu_ != null; } /** *
         * CPU usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; * @return The cpu. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric getCpu() { if (cpuBuilder_ == null) { return cpu_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.getDefaultInstance() : cpu_; } else { return cpuBuilder_.getMessage(); } } /** *
         * CPU usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; */ public Builder setCpu(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric value) { if (cpuBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cpu_ = value; onChanged(); } else { cpuBuilder_.setMessage(value); } return this; } /** *
         * CPU usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; */ public Builder setCpu( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.Builder builderForValue) { if (cpuBuilder_ == null) { cpu_ = builderForValue.build(); onChanged(); } else { cpuBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * CPU usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; */ public Builder mergeCpu(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric value) { if (cpuBuilder_ == null) { if (cpu_ != null) { cpu_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.newBuilder(cpu_).mergeFrom(value).buildPartial(); } else { cpu_ = value; } onChanged(); } else { cpuBuilder_.mergeFrom(value); } return this; } /** *
         * CPU usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; */ public Builder clearCpu() { if (cpuBuilder_ == null) { cpu_ = null; onChanged(); } else { cpu_ = null; cpuBuilder_ = null; } return this; } /** *
         * CPU usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.Builder getCpuBuilder() { onChanged(); return getCpuFieldBuilder().getBuilder(); } /** *
         * CPU usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetricOrBuilder getCpuOrBuilder() { if (cpuBuilder_ != null) { return cpuBuilder_.getMessageOrBuilder(); } else { return cpu_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.getDefaultInstance() : cpu_; } } /** *
         * CPU usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.CPUMetric cpu = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetricOrBuilder> getCpuFieldBuilder() { if (cpuBuilder_ == null) { cpuBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetric.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.CPUMetricOrBuilder>( getCpu(), getParentForChildren(), isClean()); cpu_ = null; } return cpuBuilder_; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric memory_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetricOrBuilder> memoryBuilder_; /** *
         * RAM usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; * @return Whether the memory field is set. */ public boolean hasMemory() { return memoryBuilder_ != null || memory_ != null; } /** *
         * RAM usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; * @return The memory. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric getMemory() { if (memoryBuilder_ == null) { return memory_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.getDefaultInstance() : memory_; } else { return memoryBuilder_.getMessage(); } } /** *
         * RAM usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; */ public Builder setMemory(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric value) { if (memoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } memory_ = value; onChanged(); } else { memoryBuilder_.setMessage(value); } return this; } /** *
         * RAM usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; */ public Builder setMemory( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.Builder builderForValue) { if (memoryBuilder_ == null) { memory_ = builderForValue.build(); onChanged(); } else { memoryBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * RAM usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; */ public Builder mergeMemory(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric value) { if (memoryBuilder_ == null) { if (memory_ != null) { memory_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.newBuilder(memory_).mergeFrom(value).buildPartial(); } else { memory_ = value; } onChanged(); } else { memoryBuilder_.mergeFrom(value); } return this; } /** *
         * RAM usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; */ public Builder clearMemory() { if (memoryBuilder_ == null) { memory_ = null; onChanged(); } else { memory_ = null; memoryBuilder_ = null; } return this; } /** *
         * RAM usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.Builder getMemoryBuilder() { onChanged(); return getMemoryFieldBuilder().getBuilder(); } /** *
         * RAM usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetricOrBuilder getMemoryOrBuilder() { if (memoryBuilder_ != null) { return memoryBuilder_.getMessageOrBuilder(); } else { return memory_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.getDefaultInstance() : memory_; } } /** *
         * RAM usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.MemoryMetric memory = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetricOrBuilder> getMemoryFieldBuilder() { if (memoryBuilder_ == null) { memoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetric.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.MemoryMetricOrBuilder>( getMemory(), getParentForChildren(), isClean()); memory_ = null; } return memoryBuilder_; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric disk_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetricOrBuilder> diskBuilder_; /** *
         * Disk usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; * @return Whether the disk field is set. */ public boolean hasDisk() { return diskBuilder_ != null || disk_ != null; } /** *
         * Disk usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; * @return The disk. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric getDisk() { if (diskBuilder_ == null) { return disk_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.getDefaultInstance() : disk_; } else { return diskBuilder_.getMessage(); } } /** *
         * Disk usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; */ public Builder setDisk(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric value) { if (diskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } disk_ = value; onChanged(); } else { diskBuilder_.setMessage(value); } return this; } /** *
         * Disk usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; */ public Builder setDisk( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.Builder builderForValue) { if (diskBuilder_ == null) { disk_ = builderForValue.build(); onChanged(); } else { diskBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Disk usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; */ public Builder mergeDisk(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric value) { if (diskBuilder_ == null) { if (disk_ != null) { disk_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.newBuilder(disk_).mergeFrom(value).buildPartial(); } else { disk_ = value; } onChanged(); } else { diskBuilder_.mergeFrom(value); } return this; } /** *
         * Disk usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; */ public Builder clearDisk() { if (diskBuilder_ == null) { disk_ = null; onChanged(); } else { disk_ = null; diskBuilder_ = null; } return this; } /** *
         * Disk usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.Builder getDiskBuilder() { onChanged(); return getDiskFieldBuilder().getBuilder(); } /** *
         * Disk usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetricOrBuilder getDiskOrBuilder() { if (diskBuilder_ != null) { return diskBuilder_.getMessageOrBuilder(); } else { return disk_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.getDefaultInstance() : disk_; } } /** *
         * Disk usage of the host.
         * 
* * .yandex.cloud.mdb.opensearch.v1.Host.DiskMetric disk = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetricOrBuilder> getDiskFieldBuilder() { if (diskBuilder_ == null) { diskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetric.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.DiskMetricOrBuilder>( getDisk(), getParentForChildren(), isClean()); disk_ = null; } return diskBuilder_; } @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.opensearch.v1.Host.SystemMetrics) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SystemMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SystemMetrics(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.opensearch.v1.ClusterOuterClass.Host.SystemMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Required. Name of the OpenSearch host.
     * The host name is assigned by the platform at creation time and cannot be changed.
     * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * 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; } } /** *
     * Required. Name of the OpenSearch host.
     * The host name is assigned by the platform at creation time and cannot be changed.
     * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * 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 CLUSTER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object clusterId_; /** *
     * Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time.
     * 
* * string cluster_id = 2; * @return The clusterId. */ @java.lang.Override public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; 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(); clusterId_ = s; return s; } } /** *
     * Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time.
     * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ @java.lang.Override public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ZONE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object zoneId_; /** *
     * ID of the availability zone the OpenSearch host belongs to.
     * 
* * string zone_id = 3; * @return The zoneId. */ @java.lang.Override public java.lang.String getZoneId() { java.lang.Object ref = zoneId_; 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(); zoneId_ = s; return s; } } /** *
     * ID of the availability zone the OpenSearch host belongs to.
     * 
* * string zone_id = 3; * @return The bytes for zoneId. */ @java.lang.Override public com.google.protobuf.ByteString getZoneIdBytes() { java.lang.Object ref = zoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); zoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCES_FIELD_NUMBER = 4; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources resources_; /** *
     * Resources allocated to the OpenSearch host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** *
     * Resources allocated to the OpenSearch host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; * @return The resources. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getResources() { return resources_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } /** *
     * Resources allocated to the OpenSearch host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int TYPE_FIELD_NUMBER = 5; private int type_; /** *
     * Type of the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Type type = 5; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * Type of the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Type type = 5; * @return The type. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type.valueOf(type_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type.UNRECOGNIZED : result; } public static final int HEALTH_FIELD_NUMBER = 6; private int health_; /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Health health = 6; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Health health = 6; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health.UNRECOGNIZED : result; } public static final int SUBNET_ID_FIELD_NUMBER = 8; private volatile java.lang.Object subnetId_; /** *
     * ID of the subnet that the host belongs to.
     * 
* * string subnet_id = 8; * @return The subnetId. */ @java.lang.Override public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; 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(); subnetId_ = s; return s; } } /** *
     * ID of the subnet that the host belongs to.
     * 
* * string subnet_id = 8; * @return The bytes for subnetId. */ @java.lang.Override public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ASSIGN_PUBLIC_IP_FIELD_NUMBER = 9; private boolean assignPublicIp_; /** *
     * Determines whether a public IP is assigned to the host.
     * 
* * bool assign_public_ip = 9; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } public static final int SYSTEM_FIELD_NUMBER = 10; private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics system_; /** *
     * Resources used by the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; * @return Whether the system field is set. */ @java.lang.Override public boolean hasSystem() { return system_ != null; } /** *
     * Resources used by the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; * @return The system. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics getSystem() { return system_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.getDefaultInstance() : system_; } /** *
     * Resources used by the host.
     * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetricsOrBuilder getSystemOrBuilder() { return getSystem(); } public static final int NODE_GROUP_FIELD_NUMBER = 11; private volatile java.lang.Object nodeGroup_; /** *
     * Name of the host group that the host belongs to.
     * 
* * string node_group = 11; * @return The nodeGroup. */ @java.lang.Override public java.lang.String getNodeGroup() { java.lang.Object ref = nodeGroup_; 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(); nodeGroup_ = s; return s; } } /** *
     * Name of the host group that the host belongs to.
     * 
* * string node_group = 11; * @return The bytes for nodeGroup. */ @java.lang.Override public com.google.protobuf.ByteString getNodeGroupBytes() { java.lang.Object ref = nodeGroup_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ROLES_FIELD_NUMBER = 12; private java.util.List roles_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole> roles_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole>() { public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole convert(java.lang.Integer from) { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole.valueOf(from); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole.UNRECOGNIZED : result; } }; /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return A list containing the roles. */ @java.lang.Override public java.util.List getRolesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole>(roles_, roles_converter_); } /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return The count of roles. */ @java.lang.Override public int getRolesCount() { return roles_.size(); } /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param index The index of the element to return. * @return The roles at the given index. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return A list containing the enum numeric values on the wire for roles. */ @java.lang.Override public java.util.List getRolesValueList() { return roles_; } /** *
     * Roles of the host.
     * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ @java.lang.Override public int getRolesValue(int index) { return roles_.get(index); } private int rolesMemoizedSerializedSize; 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, zoneId_); } if (resources_ != null) { output.writeMessage(4, getResources()); } if (type_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, type_); } if (health_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health.UNKNOWN.getNumber()) { output.writeEnum(6, health_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, subnetId_); } if (assignPublicIp_ != false) { output.writeBool(9, assignPublicIp_); } if (system_ != null) { output.writeMessage(10, getSystem()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, nodeGroup_); } if (getRolesList().size() > 0) { output.writeUInt32NoTag(98); output.writeUInt32NoTag(rolesMemoizedSerializedSize); } for (int i = 0; i < roles_.size(); i++) { output.writeEnumNoTag(roles_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, zoneId_); } if (resources_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getResources()); } if (type_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, type_); } if (health_ != yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, health_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, subnetId_); } if (assignPublicIp_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, assignPublicIp_); } if (system_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getSystem()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeGroup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, nodeGroup_); } { int dataSize = 0; for (int i = 0; i < roles_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(roles_.get(i)); } size += dataSize; if (!getRolesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }rolesMemoizedSerializedSize = dataSize; } 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.opensearch.v1.ClusterOuterClass.Host)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host) obj; if (!getName() .equals(other.getName())) return false; if (!getClusterId() .equals(other.getClusterId())) return false; if (!getZoneId() .equals(other.getZoneId())) return false; if (hasResources() != other.hasResources()) return false; if (hasResources()) { if (!getResources() .equals(other.getResources())) return false; } if (type_ != other.type_) return false; if (health_ != other.health_) return false; if (!getSubnetId() .equals(other.getSubnetId())) return false; if (getAssignPublicIp() != other.getAssignPublicIp()) return false; if (hasSystem() != other.hasSystem()) return false; if (hasSystem()) { if (!getSystem() .equals(other.getSystem())) return false; } if (!getNodeGroup() .equals(other.getNodeGroup())) return false; if (!roles_.equals(other.roles_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); hash = (37 * hash) + ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getZoneId().hashCode(); if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + HEALTH_FIELD_NUMBER; hash = (53 * hash) + health_; hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER; hash = (53 * hash) + getSubnetId().hashCode(); hash = (37 * hash) + ASSIGN_PUBLIC_IP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAssignPublicIp()); if (hasSystem()) { hash = (37 * hash) + SYSTEM_FIELD_NUMBER; hash = (53 * hash) + getSystem().hashCode(); } hash = (37 * hash) + NODE_GROUP_FIELD_NUMBER; hash = (53 * hash) + getNodeGroup().hashCode(); if (getRolesCount() > 0) { hash = (37 * hash) + ROLES_FIELD_NUMBER; hash = (53 * hash) + roles_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host 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.opensearch.v1.ClusterOuterClass.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host 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.opensearch.v1.ClusterOuterClass.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host 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.opensearch.v1.ClusterOuterClass.Host parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host 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.opensearch.v1.ClusterOuterClass.Host parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host 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.opensearch.v1.ClusterOuterClass.Host 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; } /** *
     * An OpenSearch cluster host resource.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Host} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Host) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.HostOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; clusterId_ = ""; zoneId_ = ""; if (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } type_ = 0; health_ = 0; subnetId_ = ""; assignPublicIp_ = false; if (systemBuilder_ == null) { system_ = null; } else { system_ = null; systemBuilder_ = null; } nodeGroup_ = ""; roles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.clusterId_ = clusterId_; result.zoneId_ = zoneId_; if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.type_ = type_; result.health_ = health_; result.subnetId_ = subnetId_; result.assignPublicIp_ = assignPublicIp_; if (systemBuilder_ == null) { result.system_ = system_; } else { result.system_ = systemBuilder_.build(); } result.nodeGroup_ = nodeGroup_; if (((bitField0_ & 0x00000001) != 0)) { roles_ = java.util.Collections.unmodifiableList(roles_); bitField0_ = (bitField0_ & ~0x00000001); } result.roles_ = roles_; 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.opensearch.v1.ClusterOuterClass.Host) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getClusterId().isEmpty()) { clusterId_ = other.clusterId_; onChanged(); } if (!other.getZoneId().isEmpty()) { zoneId_ = other.zoneId_; onChanged(); } if (other.hasResources()) { mergeResources(other.getResources()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.health_ != 0) { setHealthValue(other.getHealthValue()); } if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); } if (other.getAssignPublicIp() != false) { setAssignPublicIp(other.getAssignPublicIp()); } if (other.hasSystem()) { mergeSystem(other.getSystem()); } if (!other.getNodeGroup().isEmpty()) { nodeGroup_ = other.nodeGroup_; onChanged(); } if (!other.roles_.isEmpty()) { if (roles_.isEmpty()) { roles_ = other.roles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRolesIsMutable(); roles_.addAll(other.roles_); } 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 { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Required. Name of the OpenSearch host.
       * The host name is assigned by the platform at creation time and cannot be changed.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. Name of the OpenSearch host.
       * The host name is assigned by the platform at creation time and cannot be changed.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. Name of the OpenSearch host.
       * The host name is assigned by the platform at creation time and cannot be changed.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Required. Name of the OpenSearch host.
       * The host name is assigned by the platform at creation time and cannot be changed.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Required. Name of the OpenSearch host.
       * The host name is assigned by the platform at creation time and cannot be changed.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object clusterId_ = ""; /** *
       * Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time.
       * 
* * string cluster_id = 2; * @return The clusterId. */ public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time.
       * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time.
       * 
* * string cluster_id = 2; * @param value The clusterId to set. * @return This builder for chaining. */ public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterId_ = value; onChanged(); return this; } /** *
       * Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time.
       * 
* * string cluster_id = 2; * @return This builder for chaining. */ public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); return this; } /** *
       * Required. ID of the OpenSearch cluster. The ID is assigned by the platform at creation time.
       * 
* * string cluster_id = 2; * @param value The bytes for clusterId to set. * @return This builder for chaining. */ public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterId_ = value; onChanged(); return this; } private java.lang.Object zoneId_ = ""; /** *
       * ID of the availability zone the OpenSearch host belongs to.
       * 
* * string zone_id = 3; * @return The zoneId. */ public java.lang.String getZoneId() { java.lang.Object ref = zoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the availability zone the OpenSearch host belongs to.
       * 
* * string zone_id = 3; * @return The bytes for zoneId. */ public com.google.protobuf.ByteString getZoneIdBytes() { java.lang.Object ref = zoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); zoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the availability zone the OpenSearch host belongs to.
       * 
* * string zone_id = 3; * @param value The zoneId to set. * @return This builder for chaining. */ public Builder setZoneId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } zoneId_ = value; onChanged(); return this; } /** *
       * ID of the availability zone the OpenSearch host belongs to.
       * 
* * string zone_id = 3; * @return This builder for chaining. */ public Builder clearZoneId() { zoneId_ = getDefaultInstance().getZoneId(); onChanged(); return this; } /** *
       * ID of the availability zone the OpenSearch host belongs to.
       * 
* * string zone_id = 3; * @param value The bytes for zoneId to set. * @return This builder for chaining. */ public Builder setZoneIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); zoneId_ = value; onChanged(); return this; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_; /** *
       * Resources allocated to the OpenSearch host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** *
       * Resources allocated to the OpenSearch host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; * @return The resources. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** *
       * Resources allocated to the OpenSearch host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; */ public Builder setResources(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } return this; } /** *
       * Resources allocated to the OpenSearch host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; */ public Builder setResources( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Resources allocated to the OpenSearch host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; */ public Builder mergeResources(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** *
       * Resources allocated to the OpenSearch host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** *
       * Resources allocated to the OpenSearch host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** *
       * Resources allocated to the OpenSearch host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } } /** *
       * Resources allocated to the OpenSearch host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Resources resources = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private int type_ = 0; /** *
       * Type of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Type type = 5; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * Type of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.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; } /** *
       * Type of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Type type = 5; * @return The type. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type.valueOf(type_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type.UNRECOGNIZED : result; } /** *
       * Type of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Type type = 5; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * Type of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Type type = 5; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private int health_ = 0; /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Health health = 6; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Health health = 6; * @param value The enum numeric value on the wire for health to set. * @return This builder for chaining. */ public Builder setHealthValue(int value) { health_ = value; onChanged(); return this; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Health health = 6; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health.UNRECOGNIZED : result; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Health health = 6; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Health value) { if (value == null) { throw new NullPointerException(); } health_ = value.getNumber(); onChanged(); return this; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.Health health = 6; * @return This builder for chaining. */ public Builder clearHealth() { health_ = 0; onChanged(); return this; } private java.lang.Object subnetId_ = ""; /** *
       * ID of the subnet that the host belongs to.
       * 
* * string subnet_id = 8; * @return The subnetId. */ public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the subnet that the host belongs to.
       * 
* * string subnet_id = 8; * @return The bytes for subnetId. */ public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the subnet that the host belongs to.
       * 
* * string subnet_id = 8; * @param value The subnetId to set. * @return This builder for chaining. */ public Builder setSubnetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subnetId_ = value; onChanged(); return this; } /** *
       * ID of the subnet that the host belongs to.
       * 
* * string subnet_id = 8; * @return This builder for chaining. */ public Builder clearSubnetId() { subnetId_ = getDefaultInstance().getSubnetId(); onChanged(); return this; } /** *
       * ID of the subnet that the host belongs to.
       * 
* * string subnet_id = 8; * @param value The bytes for subnetId to set. * @return This builder for chaining. */ public Builder setSubnetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetId_ = value; onChanged(); return this; } private boolean assignPublicIp_ ; /** *
       * Determines whether a public IP is assigned to the host.
       * 
* * bool assign_public_ip = 9; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } /** *
       * Determines whether a public IP is assigned to the host.
       * 
* * bool assign_public_ip = 9; * @param value The assignPublicIp to set. * @return This builder for chaining. */ public Builder setAssignPublicIp(boolean value) { assignPublicIp_ = value; onChanged(); return this; } /** *
       * Determines whether a public IP is assigned to the host.
       * 
* * bool assign_public_ip = 9; * @return This builder for chaining. */ public Builder clearAssignPublicIp() { assignPublicIp_ = false; onChanged(); return this; } private yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics system_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetricsOrBuilder> systemBuilder_; /** *
       * Resources used by the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; * @return Whether the system field is set. */ public boolean hasSystem() { return systemBuilder_ != null || system_ != null; } /** *
       * Resources used by the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; * @return The system. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics getSystem() { if (systemBuilder_ == null) { return system_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.getDefaultInstance() : system_; } else { return systemBuilder_.getMessage(); } } /** *
       * Resources used by the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; */ public Builder setSystem(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics value) { if (systemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } system_ = value; onChanged(); } else { systemBuilder_.setMessage(value); } return this; } /** *
       * Resources used by the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; */ public Builder setSystem( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.Builder builderForValue) { if (systemBuilder_ == null) { system_ = builderForValue.build(); onChanged(); } else { systemBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Resources used by the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; */ public Builder mergeSystem(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics value) { if (systemBuilder_ == null) { if (system_ != null) { system_ = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.newBuilder(system_).mergeFrom(value).buildPartial(); } else { system_ = value; } onChanged(); } else { systemBuilder_.mergeFrom(value); } return this; } /** *
       * Resources used by the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; */ public Builder clearSystem() { if (systemBuilder_ == null) { system_ = null; onChanged(); } else { system_ = null; systemBuilder_ = null; } return this; } /** *
       * Resources used by the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.Builder getSystemBuilder() { onChanged(); return getSystemFieldBuilder().getBuilder(); } /** *
       * Resources used by the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetricsOrBuilder getSystemOrBuilder() { if (systemBuilder_ != null) { return systemBuilder_.getMessageOrBuilder(); } else { return system_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.getDefaultInstance() : system_; } } /** *
       * Resources used by the host.
       * 
* * .yandex.cloud.mdb.opensearch.v1.Host.SystemMetrics system = 10; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetricsOrBuilder> getSystemFieldBuilder() { if (systemBuilder_ == null) { systemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetrics.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.SystemMetricsOrBuilder>( getSystem(), getParentForChildren(), isClean()); system_ = null; } return systemBuilder_; } private java.lang.Object nodeGroup_ = ""; /** *
       * Name of the host group that the host belongs to.
       * 
* * string node_group = 11; * @return The nodeGroup. */ public java.lang.String getNodeGroup() { java.lang.Object ref = nodeGroup_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeGroup_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the host group that the host belongs to.
       * 
* * string node_group = 11; * @return The bytes for nodeGroup. */ public com.google.protobuf.ByteString getNodeGroupBytes() { java.lang.Object ref = nodeGroup_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nodeGroup_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the host group that the host belongs to.
       * 
* * string node_group = 11; * @param value The nodeGroup to set. * @return This builder for chaining. */ public Builder setNodeGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nodeGroup_ = value; onChanged(); return this; } /** *
       * Name of the host group that the host belongs to.
       * 
* * string node_group = 11; * @return This builder for chaining. */ public Builder clearNodeGroup() { nodeGroup_ = getDefaultInstance().getNodeGroup(); onChanged(); return this; } /** *
       * Name of the host group that the host belongs to.
       * 
* * string node_group = 11; * @param value The bytes for nodeGroup to set. * @return This builder for chaining. */ public Builder setNodeGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nodeGroup_ = value; onChanged(); return this; } private java.util.List roles_ = java.util.Collections.emptyList(); private void ensureRolesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { roles_ = new java.util.ArrayList(roles_); bitField0_ |= 0x00000001; } } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return A list containing the roles. */ public java.util.List getRolesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole>(roles_, roles_converter_); } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return The count of roles. */ public int getRolesCount() { return roles_.size(); } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param index The index of the element to return. * @return The roles at the given index. */ public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole getRoles(int index) { return roles_converter_.convert(roles_.get(index)); } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param index The index to set the value at. * @param value The roles to set. * @return This builder for chaining. */ public Builder setRoles( int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param value The roles to add. * @return This builder for chaining. */ public Builder addRoles(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole value) { if (value == null) { throw new NullPointerException(); } ensureRolesIsMutable(); roles_.add(value.getNumber()); onChanged(); return this; } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param values The roles to add. * @return This builder for chaining. */ public Builder addAllRoles( java.lang.Iterable values) { ensureRolesIsMutable(); for (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole value : values) { roles_.add(value.getNumber()); } onChanged(); return this; } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return This builder for chaining. */ public Builder clearRoles() { roles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @return A list containing the enum numeric values on the wire for roles. */ public java.util.List getRolesValueList() { return java.util.Collections.unmodifiableList(roles_); } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. */ public int getRolesValue(int index) { return roles_.get(index); } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param index The index of the value to return. * @return The enum numeric value on the wire of roles at the given index. * @return This builder for chaining. */ public Builder setRolesValue( int index, int value) { ensureRolesIsMutable(); roles_.set(index, value); onChanged(); return this; } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param value The enum numeric value on the wire for roles to add. * @return This builder for chaining. */ public Builder addRolesValue(int value) { ensureRolesIsMutable(); roles_.add(value); onChanged(); return this; } /** *
       * Roles of the host.
       * 
* * repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 12; * @param values The enum numeric values on the wire for roles to add. * @return This builder for chaining. */ public Builder addAllRolesValue( java.lang.Iterable values) { ensureRolesIsMutable(); for (int value : values) { roles_.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:yandex.cloud.mdb.opensearch.v1.Host) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Host) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Host parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Host(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.opensearch.v1.ClusterOuterClass.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccessOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.Access) com.google.protobuf.MessageOrBuilder { /** *
     * Determines whether the access to Data Transfer is allowed.
     * 
* * bool data_transfer = 1; * @return The dataTransfer. */ boolean getDataTransfer(); /** *
     * Determines whether the access to Serverless is allowed.
     * 
* * bool serverless = 2; * @return The serverless. */ boolean getServerless(); } /** *
   * Access policy for external services.
   * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Access} */ public static final class Access extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.Access) AccessOrBuilder { private static final long serialVersionUID = 0L; // Use Access.newBuilder() to construct. private Access(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Access() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Access(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Access( 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: { dataTransfer_ = input.readBool(); break; } case 16: { serverless_ = input.readBool(); 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 yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder.class); } public static final int DATA_TRANSFER_FIELD_NUMBER = 1; private boolean dataTransfer_; /** *
     * Determines whether the access to Data Transfer is allowed.
     * 
* * bool data_transfer = 1; * @return The dataTransfer. */ @java.lang.Override public boolean getDataTransfer() { return dataTransfer_; } public static final int SERVERLESS_FIELD_NUMBER = 2; private boolean serverless_; /** *
     * Determines whether the access to Serverless is allowed.
     * 
* * bool serverless = 2; * @return The serverless. */ @java.lang.Override public boolean getServerless() { return serverless_; } 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 (dataTransfer_ != false) { output.writeBool(1, dataTransfer_); } if (serverless_ != false) { output.writeBool(2, serverless_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dataTransfer_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, dataTransfer_); } if (serverless_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, serverless_); } 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.opensearch.v1.ClusterOuterClass.Access)) { return super.equals(obj); } yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access other = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access) obj; if (getDataTransfer() != other.getDataTransfer()) return false; if (getServerless() != other.getServerless()) 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_TRANSFER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDataTransfer()); hash = (37 * hash) + SERVERLESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getServerless()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access 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.opensearch.v1.ClusterOuterClass.Access parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access 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.opensearch.v1.ClusterOuterClass.Access parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access 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.opensearch.v1.ClusterOuterClass.Access parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access 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.opensearch.v1.ClusterOuterClass.Access parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access 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.opensearch.v1.ClusterOuterClass.Access 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; } /** *
     * Access policy for external services.
     * 
* * Protobuf type {@code yandex.cloud.mdb.opensearch.v1.Access} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.Access) yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.class, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder.class); } // Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.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(); dataTransfer_ = false; serverless_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_Access_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access getDefaultInstanceForType() { return yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access build() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access buildPartial() { yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access result = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access(this); result.dataTransfer_ = dataTransfer_; result.serverless_ = serverless_; 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.opensearch.v1.ClusterOuterClass.Access) { return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access other) { if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.getDefaultInstance()) return this; if (other.getDataTransfer() != false) { setDataTransfer(other.getDataTransfer()); } if (other.getServerless() != false) { setServerless(other.getServerless()); } 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.opensearch.v1.ClusterOuterClass.Access parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean dataTransfer_ ; /** *
       * Determines whether the access to Data Transfer is allowed.
       * 
* * bool data_transfer = 1; * @return The dataTransfer. */ @java.lang.Override public boolean getDataTransfer() { return dataTransfer_; } /** *
       * Determines whether the access to Data Transfer is allowed.
       * 
* * bool data_transfer = 1; * @param value The dataTransfer to set. * @return This builder for chaining. */ public Builder setDataTransfer(boolean value) { dataTransfer_ = value; onChanged(); return this; } /** *
       * Determines whether the access to Data Transfer is allowed.
       * 
* * bool data_transfer = 1; * @return This builder for chaining. */ public Builder clearDataTransfer() { dataTransfer_ = false; onChanged(); return this; } private boolean serverless_ ; /** *
       * Determines whether the access to Serverless is allowed.
       * 
* * bool serverless = 2; * @return The serverless. */ @java.lang.Override public boolean getServerless() { return serverless_; } /** *
       * Determines whether the access to Serverless is allowed.
       * 
* * bool serverless = 2; * @param value The serverless to set. * @return This builder for chaining. */ public Builder setServerless(boolean value) { serverless_ = value; onChanged(); return this; } /** *
       * Determines whether the access to Serverless is allowed.
       * 
* * bool serverless = 2; * @return This builder for chaining. */ public Builder clearServerless() { serverless_ = false; 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.opensearch.v1.Access) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.Access) private static final yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access(); } public static yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Access parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Access(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.opensearch.v1.ClusterOuterClass.Access getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Resources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Resources_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Host_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_opensearch_v1_Access_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_opensearch_v1_Access_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n,yandex/cloud/mdb/opensearch/v1/cluster" + ".proto\022\036yandex.cloud.mdb.opensearch.v1\032\037" + "google/protobuf/timestamp.proto\0320yandex/" + "cloud/mdb/opensearch/v1/maintenance.prot" + "o\0326yandex/cloud/mdb/opensearch/v1/config" + "/opensearch.proto\"\310\010\n\007Cluster\022\n\n\002id\030\001 \001(" + "\t\022\021\n\tfolder_id\030\002 \001(\t\022.\n\ncreated_at\030\003 \001(\013" + "2\032.google.protobuf.Timestamp\022\014\n\004name\030\004 \001" + "(\t\022\023\n\013description\030\005 \001(\t\022C\n\006labels\030\006 \003(\0132" + "3.yandex.cloud.mdb.opensearch.v1.Cluster" + ".LabelsEntry\022H\n\013environment\030\007 \001(\01623.yand" + "ex.cloud.mdb.opensearch.v1.Cluster.Envir" + "onment\022>\n\nmonitoring\030\010 \003(\0132*.yandex.clou" + "d.mdb.opensearch.v1.Monitoring\022=\n\006config" + "\030\t \001(\0132-.yandex.cloud.mdb.opensearch.v1." + "ClusterConfig\022\022\n\nnetwork_id\030\n \001(\t\022>\n\006hea" + "lth\030\013 \001(\0162..yandex.cloud.mdb.opensearch." + "v1.Cluster.Health\022>\n\006status\030\014 \001(\0162..yand" + "ex.cloud.mdb.opensearch.v1.Cluster.Statu" + "s\022\032\n\022security_group_ids\030\r \003(\t\022\032\n\022service" + "_account_id\030\016 \001(\t\022\033\n\023deletion_protection" + "\030\017 \001(\010\022M\n\022maintenance_window\030\020 \001(\01321.yan" + "dex.cloud.mdb.opensearch.v1.MaintenanceW" + "indow\022O\n\021planned_operation\030\021 \001(\01324.yande" + "x.cloud.mdb.opensearch.v1.MaintenanceOpe" + "ration\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001\"I\n\013Environment\022\033\n\027ENVIRONM" + "ENT_UNSPECIFIED\020\000\022\016\n\nPRODUCTION\020\001\022\r\n\tPRE" + "STABLE\020\002\"?\n\006Health\022\022\n\016HEALTH_UNKNOWN\020\000\022\t" + "\n\005ALIVE\020\001\022\010\n\004DEAD\020\002\022\014\n\010DEGRADED\020\003\"y\n\006Sta" + "tus\022\022\n\016STATUS_UNKNOWN\020\000\022\014\n\010CREATING\020\001\022\013\n" + "\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\014\n\010UPDATING\020\004\022\014\n\010S" + "TOPPING\020\005\022\013\n\007STOPPED\020\006\022\014\n\010STARTING\020\007\"=\n\n" + "Monitoring\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030" + "\002 \001(\t\022\014\n\004link\030\003 \001(\t\"\330\001\n\rClusterConfig\022\017\n" + "\007version\030\001 \001(\t\022>\n\nopensearch\030\002 \001(\0132*.yan" + "dex.cloud.mdb.opensearch.v1.OpenSearch\022>" + "\n\ndashboards\030\003 \001(\0132*.yandex.cloud.mdb.op" + "ensearch.v1.Dashboards\0226\n\006access\030\004 \001(\0132&" + ".yandex.cloud.mdb.opensearch.v1.Access\"\235" + "\004\n\nOpenSearch\022\017\n\007plugins\030\001 \003(\t\022I\n\013node_g" + "roups\030\002 \003(\01324.yandex.cloud.mdb.opensearc" + "h.v1.OpenSearch.NodeGroup\022u\n\027opensearch_" + "config_set_2\030\003 \001(\0132;.yandex.cloud.mdb.op" + "ensearch.v1.config.OpenSearchConfigSet2H" + "\000R\025opensearchConfigSet_2\032\361\001\n\tNodeGroup\022\014" + "\n\004name\030\001 \001(\t\022<\n\tresources\030\002 \001(\0132).yandex" + ".cloud.mdb.opensearch.v1.Resources\022\023\n\013ho" + "sts_count\030\003 \001(\003\022\020\n\010zone_ids\030\004 \003(\t\022\022\n\nsub" + "net_ids\030\005 \003(\t\022\030\n\020assign_public_ip\030\006 \001(\010\022" + "C\n\005roles\030\007 \003(\01624.yandex.cloud.mdb.opense" + "arch.v1.OpenSearch.GroupRole\">\n\tGroupRol" + "e\022\032\n\026GROUP_ROLE_UNSPECIFIED\020\000\022\010\n\004DATA\020\001\022" + "\013\n\007MANAGER\020\002B\010\n\006config\"\206\002\n\nDashboards\022I\n" + "\013node_groups\030\002 \003(\01324.yandex.cloud.mdb.op" + "ensearch.v1.Dashboards.NodeGroup\032\254\001\n\tNod" + "eGroup\022\014\n\004name\030\001 \001(\t\022<\n\tresources\030\002 \001(\0132" + ").yandex.cloud.mdb.opensearch.v1.Resourc" + "es\022\023\n\013hosts_count\030\003 \001(\003\022\020\n\010zone_ids\030\004 \003(" + "\t\022\022\n\nsubnet_ids\030\005 \003(\t\022\030\n\020assign_public_i" + "p\030\006 \001(\010\"P\n\tResources\022\032\n\022resource_preset_" + "id\030\001 \001(\t\022\021\n\tdisk_size\030\002 \001(\003\022\024\n\014disk_type" + "_id\030\003 \001(\t\"\254\007\n\004Host\022\014\n\004name\030\001 \001(\t\022\022\n\nclus" + "ter_id\030\002 \001(\t\022\017\n\007zone_id\030\003 \001(\t\022<\n\tresourc" + "es\030\004 \001(\0132).yandex.cloud.mdb.opensearch.v" + "1.Resources\0227\n\004type\030\005 \001(\0162).yandex.cloud" + ".mdb.opensearch.v1.Host.Type\022;\n\006health\030\006" + " \001(\0162+.yandex.cloud.mdb.opensearch.v1.Ho" + "st.Health\022\021\n\tsubnet_id\030\010 \001(\t\022\030\n\020assign_p" + "ublic_ip\030\t \001(\010\022B\n\006system\030\n \001(\01322.yandex." + "cloud.mdb.opensearch.v1.Host.SystemMetri" + "cs\022\022\n\nnode_group\030\013 \001(\t\022C\n\005roles\030\014 \003(\01624." + "yandex.cloud.mdb.opensearch.v1.OpenSearc" + "h.GroupRole\032,\n\tCPUMetric\022\021\n\ttimestamp\030\001 " + "\001(\003\022\014\n\004used\030\002 \001(\001\032>\n\014MemoryMetric\022\021\n\ttim" + "estamp\030\001 \001(\003\022\014\n\004used\030\002 \001(\003\022\r\n\005total\030\003 \001(" + "\003\032<\n\nDiskMetric\022\021\n\ttimestamp\030\001 \001(\003\022\014\n\004us" + "ed\030\002 \001(\003\022\r\n\005total\030\003 \001(\003\032\316\001\n\rSystemMetric" + "s\022;\n\003cpu\030\001 \001(\0132..yandex.cloud.mdb.opense" + "arch.v1.Host.CPUMetric\022A\n\006memory\030\002 \001(\01321" + ".yandex.cloud.mdb.opensearch.v1.Host.Mem" + "oryMetric\022=\n\004disk\030\003 \001(\0132/.yandex.cloud.m" + "db.opensearch.v1.Host.DiskMetric\"8\n\006Heal" + "th\022\013\n\007UNKNOWN\020\000\022\t\n\005ALIVE\020\001\022\010\n\004DEAD\020\002\022\014\n\010" + "DEGRADED\020\003\"<\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000" + "\022\016\n\nOPENSEARCH\020\001\022\016\n\nDASHBOARDS\020\002\"3\n\006Acce" + "ss\022\025\n\rdata_transfer\030\001 \001(\010\022\022\n\nserverless\030" + "\002 \001(\010Bs\n\"yandex.cloud.api.mdb.opensearch" + ".v1ZMgithub.com/yandex-cloud/go-genproto" + "/yandex/cloud/mdb/opensearch/v1;opensear" + "chb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), yandex.cloud.api.mdb.opensearch.v1.Maintenance.getDescriptor(), yandex.cloud.api.mdb.opensearch.v1.Opensearch.getDescriptor(), }); internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Environment", "Monitoring", "Config", "NetworkId", "Health", "Status", "SecurityGroupIds", "ServiceAccountId", "DeletionProtection", "MaintenanceWindow", "PlannedOperation", }); internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_LabelsEntry_descriptor = internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Cluster_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Monitoring_descriptor, new java.lang.String[] { "Name", "Description", "Link", }); internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_ClusterConfig_descriptor, new java.lang.String[] { "Version", "Opensearch", "Dashboards", "Access", }); internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_descriptor, new java.lang.String[] { "Plugins", "NodeGroups", "OpensearchConfigSet2", "Config", }); internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_descriptor = internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearch_NodeGroup_descriptor, new java.lang.String[] { "Name", "Resources", "HostsCount", "ZoneIds", "SubnetIds", "AssignPublicIp", "Roles", }); internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_descriptor, new java.lang.String[] { "NodeGroups", }); internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_descriptor = internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Dashboards_NodeGroup_descriptor, new java.lang.String[] { "Name", "Resources", "HostsCount", "ZoneIds", "SubnetIds", "AssignPublicIp", }); internal_static_yandex_cloud_mdb_opensearch_v1_Resources_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_mdb_opensearch_v1_Resources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Resources_descriptor, new java.lang.String[] { "ResourcePresetId", "DiskSize", "DiskTypeId", }); internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_mdb_opensearch_v1_Host_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor, new java.lang.String[] { "Name", "ClusterId", "ZoneId", "Resources", "Type", "Health", "SubnetId", "AssignPublicIp", "System", "NodeGroup", "Roles", }); internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_descriptor = internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Host_CPUMetric_descriptor, new java.lang.String[] { "Timestamp", "Used", }); internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_descriptor = internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Host_MemoryMetric_descriptor, new java.lang.String[] { "Timestamp", "Used", "Total", }); internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_descriptor = internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor.getNestedTypes().get(2); internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Host_DiskMetric_descriptor, new java.lang.String[] { "Timestamp", "Used", "Total", }); internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_descriptor = internal_static_yandex_cloud_mdb_opensearch_v1_Host_descriptor.getNestedTypes().get(3); internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Host_SystemMetrics_descriptor, new java.lang.String[] { "Cpu", "Memory", "Disk", }); internal_static_yandex_cloud_mdb_opensearch_v1_Access_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_mdb_opensearch_v1_Access_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_opensearch_v1_Access_descriptor, new java.lang.String[] { "DataTransfer", "Serverless", }); com.google.protobuf.TimestampProto.getDescriptor(); yandex.cloud.api.mdb.opensearch.v1.Maintenance.getDescriptor(); yandex.cloud.api.mdb.opensearch.v1.Opensearch.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy