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

yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass Maven / Gradle / Ivy

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

package yandex.cloud.api.mdb.mysql.v1alpha;

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.mysql.v1alpha.Cluster)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the MySQL cluster.
     * This ID is assigned by Managed Service for MySQL at creation time.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the MySQL cluster.
     * This ID is assigned by Managed Service for MySQL at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the MySQL cluster belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the MySQL cluster belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the MySQL cluster.
     * The name must be unique within the folder, comply with RFC 1035
     * and be 1-63 characters long.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the MySQL cluster.
     * The name must be unique within the folder, comply with RFC 1035
     * and be 1-63 characters long.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the MySQL cluster. 0-256 characters long.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the MySQL cluster. 0-256 characters long.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Custom labels for the MySQL cluster as `key:value` pairs.
     * Maximum 64 per resource.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * Custom labels for the MySQL cluster as `key:value` pairs.
     * Maximum 64 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 MySQL cluster as `key:value` pairs.
     * Maximum 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** *
     * Custom labels for the MySQL cluster as `key:value` pairs.
     * Maximum 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Custom labels for the MySQL cluster as `key:value` pairs.
     * Maximum 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * Deployment environment of the MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Environment environment = 7; * @return The enum numeric value on the wire for environment. */ int getEnvironmentValue(); /** *
     * Deployment environment of the MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Environment environment = 7; * @return The environment. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Environment getEnvironment(); /** *
     * Description of monitoring systems relevant to the MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ java.util.List getMonitoringList(); /** *
     * Description of monitoring systems relevant to the MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring getMonitoring(int index); /** *
     * Description of monitoring systems relevant to the MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ int getMonitoringCount(); /** *
     * Description of monitoring systems relevant to the MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ java.util.List getMonitoringOrBuilderList(); /** *
     * Description of monitoring systems relevant to the MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder( int index); /** *
     * Configuration of the MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; * @return Whether the config field is set. */ boolean hasConfig(); /** *
     * Configuration of the MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; * @return The config. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig getConfig(); /** *
     * Configuration of the MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder(); /** *
     * ID of the network that the cluster belongs to.
     * 
* * string network_id = 10; * @return The networkId. */ java.lang.String getNetworkId(); /** *
     * ID of the 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.mysql.v1alpha.Cluster.Health health = 11; * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** *
     * Aggregated cluster health.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Health health = 11; * @return The health. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health getHealth(); /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Status status = 12; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Status status = 12; * @return The status. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status getStatus(); } /** *
   * A MySQL cluster. For more information, see
   * the [documentation](/docs/managed-mysql/concepts).
   * 
* * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.Cluster} */ public static final class Cluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mysql.v1alpha.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; } @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.mysql.v1alpha.ClusterOuterClass.Monitoring.parser(), extensionRegistry)); break; } case 74: { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.Builder subBuilder = null; if (config_ != null) { subBuilder = config_.toBuilder(); } config_ = input.readMessage(yandex.cloud.api.mdb.mysql.v1alpha.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; } 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_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_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.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.Cluster.Environment) } /** * Protobuf enum {@code yandex.cloud.mdb.mysql.v1alpha.Cluster.Health} */ public enum Health implements com.google.protobuf.ProtocolMessageEnum { /** *
       * State of the cluster is unknown ([Host.health] for every host in the cluster is UNKNOWN).
       * 
* * HEALTH_UNKNOWN = 0; */ HEALTH_UNKNOWN(0), /** *
       * Cluster is alive and well ([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), ; /** *
       * State 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 alive and well ([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.mysql.v1alpha.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.mysql.v1alpha.Cluster.Health) } /** * Protobuf enum {@code yandex.cloud.mdb.mysql.v1alpha.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 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 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 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 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.mysql.v1alpha.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.mysql.v1alpha.Cluster.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the MySQL cluster.
     * This ID is assigned by Managed Service for MySQL at creation time.
     * 
* * 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 MySQL cluster.
     * This ID is assigned by Managed Service for MySQL at creation time.
     * 
* * 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 MySQL 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 MySQL 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_; /** * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** * .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_; } /** * .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 MySQL cluster.
     * The name must be unique within the folder, comply with RFC 1035
     * and be 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 MySQL cluster.
     * The name must be unique within the folder, comply with RFC 1035
     * and be 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 MySQL 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 MySQL 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.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_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 MySQL cluster as `key:value` pairs.
     * Maximum 64 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 MySQL cluster as `key:value` pairs.
     * Maximum 64 per resource.
     * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Custom labels for the MySQL cluster as `key:value` pairs.
     * Maximum 64 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 MySQL cluster as `key:value` pairs.
     * Maximum 64 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 MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.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 MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Environment environment = 7; * @return The environment. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Environment getEnvironment() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Environment.valueOf(environment_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ @java.lang.Override public java.util.List getMonitoringList() { return monitoring_; } /** *
     * Description of monitoring systems relevant to the MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ @java.lang.Override public java.util.List getMonitoringOrBuilderList() { return monitoring_; } /** *
     * Description of monitoring systems relevant to the MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ @java.lang.Override public int getMonitoringCount() { return monitoring_.size(); } /** *
     * Description of monitoring systems relevant to the MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring getMonitoring(int index) { return monitoring_.get(index); } /** *
     * Description of monitoring systems relevant to the MySQL cluster.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder( int index) { return monitoring_.get(index); } public static final int CONFIG_FIELD_NUMBER = 9; private yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig config_; /** *
     * Configuration of the MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; * @return Whether the config field is set. */ @java.lang.Override public boolean hasConfig() { return config_ != null; } /** *
     * Configuration of the MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; * @return The config. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig getConfig() { return config_ == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_; } /** *
     * Configuration of the MySQL cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder() { return getConfig(); } public static final int NETWORK_ID_FIELD_NUMBER = 10; private volatile java.lang.Object networkId_; /** *
     * ID of the 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 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.mysql.v1alpha.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.mysql.v1alpha.Cluster.Health health = 11; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health.UNRECOGNIZED : result; } public static final int STATUS_FIELD_NUMBER = 12; private int status_; /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.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.mysql.v1alpha.Cluster.Status status = 12; * @return The status. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status.valueOf(status_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!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.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Cluster.Health.HEALTH_UNKNOWN.getNumber()) { output.writeEnum(11, health_); } if (status_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status.STATUS_UNKNOWN.getNumber()) { output.writeEnum(12, status_); } 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.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Cluster.Health.HEALTH_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, health_); } if (status_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status.STATUS_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, status_); } 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.mysql.v1alpha.ClusterOuterClass.Cluster)) { return super.equals(obj); } yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster other = (yandex.cloud.api.mdb.mysql.v1alpha.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 (!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_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Cluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Cluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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; } /** *
     * A MySQL cluster. For more information, see
     * the [documentation](/docs/managed-mysql/concepts).
     * 
* * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.Cluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mysql.v1alpha.Cluster) yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_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.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Builder.class); } // Construct using yandex.cloud.api.mdb.mysql.v1alpha.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; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster getDefaultInstanceForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster build() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster buildPartial() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster result = new yandex.cloud.api.mdb.mysql.v1alpha.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_; 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.mysql.v1alpha.ClusterOuterClass.Cluster) { return mergeFrom((yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster other) { if (other == yandex.cloud.api.mdb.mysql.v1alpha.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()); } 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.mysql.v1alpha.ClusterOuterClass.Cluster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL cluster.
       * This ID is assigned by Managed Service for MySQL at creation time.
       * 
* * 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 MySQL cluster.
       * This ID is assigned by Managed Service for MySQL at creation time.
       * 
* * 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 MySQL cluster.
       * This ID is assigned by Managed Service for MySQL at creation time.
       * 
* * 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 MySQL cluster.
       * This ID is assigned by Managed Service for MySQL at creation time.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the MySQL cluster.
       * This ID is assigned by Managed Service for MySQL at creation time.
       * 
* * 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 MySQL 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 MySQL 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 MySQL 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 MySQL 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 MySQL 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_; /** * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** * .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(); } } /** * .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; } /** * .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; } /** * .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; } /** * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** * .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_; } } /** * .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 MySQL cluster.
       * The name must be unique within the folder, comply with RFC 1035
       * and be 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 MySQL cluster.
       * The name must be unique within the folder, comply with RFC 1035
       * and be 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 MySQL cluster.
       * The name must be unique within the folder, comply with RFC 1035
       * and be 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 MySQL cluster.
       * The name must be unique within the folder, comply with RFC 1035
       * and be 1-63 characters long.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the MySQL cluster.
       * The name must be unique within the folder, comply with RFC 1035
       * and be 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 MySQL 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 MySQL 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 MySQL 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 MySQL 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 MySQL 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 MySQL cluster as `key:value` pairs.
       * Maximum 64 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 MySQL cluster as `key:value` pairs.
       * Maximum 64 per resource.
       * 
* * map<string, string> labels = 6; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Custom labels for the MySQL cluster as `key:value` pairs.
       * Maximum 64 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 MySQL cluster as `key:value` pairs.
       * Maximum 64 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 MySQL cluster as `key:value` pairs.
       * Maximum 64 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 MySQL cluster as `key:value` pairs.
       * Maximum 64 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 MySQL cluster as `key:value` pairs.
       * Maximum 64 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 MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Environment environment = 7; * @return The environment. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Environment getEnvironment() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Environment.valueOf(environment_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result; } /** *
       * Deployment environment of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Environment environment = 7; * @param value The environment to set. * @return This builder for chaining. */ public Builder setEnvironment(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Environment value) { if (value == null) { throw new NullPointerException(); } environment_ = value.getNumber(); onChanged(); return this; } /** *
       * Deployment environment of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.MonitoringOrBuilder> monitoringBuilder_; /** *
       * Description of monitoring systems relevant to the MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public int getMonitoringCount() { if (monitoringBuilder_ == null) { return monitoring_.size(); } else { return monitoringBuilder_.getCount(); } } /** *
       * Description of monitoring systems relevant to the MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring getMonitoring(int index) { if (monitoringBuilder_ == null) { return monitoring_.get(index); } else { return monitoringBuilder_.getMessage(index); } } /** *
       * Description of monitoring systems relevant to the MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public Builder setMonitoring( int index, yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public Builder setMonitoring( int index, yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public Builder addMonitoring(yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public Builder addMonitoring( int index, yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public Builder addMonitoring( yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public Builder addMonitoring( int index, yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.Builder getMonitoringBuilder( int index) { return getMonitoringFieldBuilder().getBuilder(index); } /** *
       * Description of monitoring systems relevant to the MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder( int index) { if (monitoringBuilder_ == null) { return monitoring_.get(index); } else { return monitoringBuilder_.getMessageOrBuilder(index); } } /** *
       * Description of monitoring systems relevant to the MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.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 MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.Builder addMonitoringBuilder() { return getMonitoringFieldBuilder().addBuilder( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.getDefaultInstance()); } /** *
       * Description of monitoring systems relevant to the MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.Builder addMonitoringBuilder( int index) { return getMonitoringFieldBuilder().addBuilder( index, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.getDefaultInstance()); } /** *
       * Description of monitoring systems relevant to the MySQL cluster.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Monitoring monitoring = 8; */ public java.util.List getMonitoringBuilderList() { return getMonitoringFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.MonitoringOrBuilder> getMonitoringFieldBuilder() { if (monitoringBuilder_ == null) { monitoringBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.MonitoringOrBuilder>( monitoring_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); monitoring_ = null; } return monitoringBuilder_; } private yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig config_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfigOrBuilder> configBuilder_; /** *
       * Configuration of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** *
       * Configuration of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; * @return The config. */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig getConfig() { if (configBuilder_ == null) { return config_ == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
       * Configuration of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; */ public Builder setConfig(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } return this; } /** *
       * Configuration of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; */ public Builder setConfig( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; */ public Builder mergeConfig(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { config_ = null; configBuilder_ = null; } return this; } /** *
       * Configuration of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.Builder getConfigBuilder() { onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
       * Configuration of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_; } } /** *
       * Configuration of the MySQL cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.ClusterConfig config = 9; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfigOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } private java.lang.Object networkId_ = ""; /** *
       * ID of the 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 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 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 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 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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.Cluster.Health health = 11; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health.UNRECOGNIZED : result; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Health health = 11; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Health value) { if (value == null) { throw new NullPointerException(); } health_ = value.getNumber(); onChanged(); return this; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.Cluster.Status status = 12; * @return The status. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status.valueOf(status_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status.UNRECOGNIZED : result; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Status status = 12; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Cluster.Status status = 12; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mysql.v1alpha.Cluster) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mysql.v1alpha.Cluster) private static final yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Cluster(); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Cluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MonitoringOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mysql.v1alpha.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 MySQL cluster.
     * 
* * string link = 3; * @return The link. */ java.lang.String getLink(); /** *
     * Link to the monitoring system charts for the MySQL cluster.
     * 
* * string link = 3; * @return The bytes for link. */ com.google.protobuf.ByteString getLinkBytes(); } /** * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.Monitoring} */ public static final class Monitoring extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.class, yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL 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 MySQL 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.mysql.v1alpha.ClusterOuterClass.Monitoring)) { return super.equals(obj); } yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring other = (yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Monitoring parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Monitoring parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Monitoring parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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; } /** * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.Monitoring} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mysql.v1alpha.Monitoring) yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.MonitoringOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.Builder.class); } // Construct using yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring getDefaultInstanceForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring build() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring buildPartial() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring result = new yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Monitoring) { return mergeFrom((yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring other) { if (other == yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Monitoring parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.mysql.v1alpha.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 MySQL 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 MySQL 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 MySQL 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 MySQL 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 MySQL 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.mysql.v1alpha.Monitoring) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mysql.v1alpha.Monitoring) private static final yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Monitoring(); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Monitoring getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClusterConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mysql.v1alpha.ClusterConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Version of MySQL server software.
     * 
* * string version = 1; * @return The version. */ java.lang.String getVersion(); /** *
     * Version of MySQL server software.
     * 
* * string version = 1; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * Configuration of a MySQL 5.7 server.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; * @return Whether the mysqlConfig57 field is set. */ boolean hasMysqlConfig57(); /** *
     * Configuration of a MySQL 5.7 server.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; * @return The mysqlConfig57. */ yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7 getMysqlConfig57(); /** *
     * Configuration of a MySQL 5.7 server.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; */ yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7OrBuilder getMysqlConfig57OrBuilder(); /** *
     * Resources allocated to MySQL hosts.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; * @return Whether the resources field is set. */ boolean hasResources(); /** *
     * Resources allocated to MySQL hosts.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; * @return The resources. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources getResources(); /** *
     * Resources allocated to MySQL hosts.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder(); /** *
     * Time to start the daily backup, in the UTC timezone.
     * 
* * .google.type.TimeOfDay backup_window_start = 4; * @return Whether the backupWindowStart field is set. */ boolean hasBackupWindowStart(); /** *
     * Time to start the daily backup, in the UTC timezone.
     * 
* * .google.type.TimeOfDay backup_window_start = 4; * @return The backupWindowStart. */ com.google.type.TimeOfDay getBackupWindowStart(); /** *
     * Time to start the daily backup, in the UTC timezone.
     * 
* * .google.type.TimeOfDay backup_window_start = 4; */ com.google.type.TimeOfDayOrBuilder getBackupWindowStartOrBuilder(); public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.MysqlConfigCase getMysqlConfigCase(); } /** * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.ClusterConfig} */ public static final class ClusterConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mysql.v1alpha.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.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.Builder subBuilder = null; if (mysqlConfigCase_ == 2) { subBuilder = ((yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_).toBuilder(); } mysqlConfig_ = input.readMessage(yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_); mysqlConfig_ = subBuilder.buildPartial(); } mysqlConfigCase_ = 2; break; } case 26: { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder subBuilder = null; if (resources_ != null) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } break; } case 34: { com.google.type.TimeOfDay.Builder subBuilder = null; if (backupWindowStart_ != null) { subBuilder = backupWindowStart_.toBuilder(); } backupWindowStart_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(backupWindowStart_); backupWindowStart_ = 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.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.Builder.class); } private int mysqlConfigCase_ = 0; private java.lang.Object mysqlConfig_; public enum MysqlConfigCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MYSQL_CONFIG_5_7(2), MYSQLCONFIG_NOT_SET(0); private final int value; private MysqlConfigCase(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 MysqlConfigCase valueOf(int value) { return forNumber(value); } public static MysqlConfigCase forNumber(int value) { switch (value) { case 2: return MYSQL_CONFIG_5_7; case 0: return MYSQLCONFIG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MysqlConfigCase getMysqlConfigCase() { return MysqlConfigCase.forNumber( mysqlConfigCase_); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** *
     * Version of MySQL 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 MySQL 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 MYSQL_CONFIG_5_7_FIELD_NUMBER = 2; /** *
     * Configuration of a MySQL 5.7 server.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; * @return Whether the mysqlConfig57 field is set. */ @java.lang.Override public boolean hasMysqlConfig57() { return mysqlConfigCase_ == 2; } /** *
     * Configuration of a MySQL 5.7 server.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; * @return The mysqlConfig57. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7 getMysqlConfig57() { if (mysqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_; } return yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.getDefaultInstance(); } /** *
     * Configuration of a MySQL 5.7 server.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7OrBuilder getMysqlConfig57OrBuilder() { if (mysqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_; } return yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.getDefaultInstance(); } public static final int RESOURCES_FIELD_NUMBER = 3; private yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources resources_; /** *
     * Resources allocated to MySQL hosts.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** *
     * Resources allocated to MySQL hosts.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; * @return The resources. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources getResources() { return resources_ == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } /** *
     * Resources allocated to MySQL hosts.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int BACKUP_WINDOW_START_FIELD_NUMBER = 4; private com.google.type.TimeOfDay backupWindowStart_; /** *
     * Time to start the daily backup, in the UTC timezone.
     * 
* * .google.type.TimeOfDay backup_window_start = 4; * @return Whether the backupWindowStart field is set. */ @java.lang.Override public boolean hasBackupWindowStart() { return backupWindowStart_ != null; } /** *
     * Time to start the daily backup, in the UTC timezone.
     * 
* * .google.type.TimeOfDay backup_window_start = 4; * @return The backupWindowStart. */ @java.lang.Override public com.google.type.TimeOfDay getBackupWindowStart() { return backupWindowStart_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : backupWindowStart_; } /** *
     * Time to start the daily backup, in the UTC timezone.
     * 
* * .google.type.TimeOfDay backup_window_start = 4; */ @java.lang.Override public com.google.type.TimeOfDayOrBuilder getBackupWindowStartOrBuilder() { return getBackupWindowStart(); } 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 (mysqlConfigCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_); } if (resources_ != null) { output.writeMessage(3, getResources()); } if (backupWindowStart_ != null) { output.writeMessage(4, getBackupWindowStart()); } 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 (mysqlConfigCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_); } if (resources_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getResources()); } if (backupWindowStart_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getBackupWindowStart()); } 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.mysql.v1alpha.ClusterOuterClass.ClusterConfig)) { return super.equals(obj); } yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig other = (yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig) obj; if (!getVersion() .equals(other.getVersion())) return false; if (hasResources() != other.hasResources()) return false; if (hasResources()) { if (!getResources() .equals(other.getResources())) return false; } if (hasBackupWindowStart() != other.hasBackupWindowStart()) return false; if (hasBackupWindowStart()) { if (!getBackupWindowStart() .equals(other.getBackupWindowStart())) return false; } if (!getMysqlConfigCase().equals(other.getMysqlConfigCase())) return false; switch (mysqlConfigCase_) { case 2: if (!getMysqlConfig57() .equals(other.getMysqlConfig57())) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } if (hasBackupWindowStart()) { hash = (37 * hash) + BACKUP_WINDOW_START_FIELD_NUMBER; hash = (53 * hash) + getBackupWindowStart().hashCode(); } switch (mysqlConfigCase_) { case 2: hash = (37 * hash) + MYSQL_CONFIG_5_7_FIELD_NUMBER; hash = (53 * hash) + getMysqlConfig57().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.ClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.ClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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; } /** * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.ClusterConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mysql.v1alpha.ClusterConfig) yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.Builder.class); } // Construct using yandex.cloud.api.mdb.mysql.v1alpha.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 (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } if (backupWindowStartBuilder_ == null) { backupWindowStart_ = null; } else { backupWindowStart_ = null; backupWindowStartBuilder_ = null; } mysqlConfigCase_ = 0; mysqlConfig_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig getDefaultInstanceForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig build() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig buildPartial() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig result = new yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig(this); result.version_ = version_; if (mysqlConfigCase_ == 2) { if (mysqlConfig57Builder_ == null) { result.mysqlConfig_ = mysqlConfig_; } else { result.mysqlConfig_ = mysqlConfig57Builder_.build(); } } if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (backupWindowStartBuilder_ == null) { result.backupWindowStart_ = backupWindowStart_; } else { result.backupWindowStart_ = backupWindowStartBuilder_.build(); } result.mysqlConfigCase_ = mysqlConfigCase_; 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.mysql.v1alpha.ClusterOuterClass.ClusterConfig) { return mergeFrom((yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig other) { if (other == yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (other.hasResources()) { mergeResources(other.getResources()); } if (other.hasBackupWindowStart()) { mergeBackupWindowStart(other.getBackupWindowStart()); } switch (other.getMysqlConfigCase()) { case MYSQL_CONFIG_5_7: { mergeMysqlConfig57(other.getMysqlConfig57()); break; } case MYSQLCONFIG_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.mysql.v1alpha.ClusterOuterClass.ClusterConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int mysqlConfigCase_ = 0; private java.lang.Object mysqlConfig_; public MysqlConfigCase getMysqlConfigCase() { return MysqlConfigCase.forNumber( mysqlConfigCase_); } public Builder clearMysqlConfig() { mysqlConfigCase_ = 0; mysqlConfig_ = null; onChanged(); return this; } private java.lang.Object version_ = ""; /** *
       * Version of MySQL 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 MySQL 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 MySQL 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 MySQL server software.
       * 
* * string version = 1; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * Version of MySQL 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 com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7, yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.Builder, yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7OrBuilder> mysqlConfig57Builder_; /** *
       * Configuration of a MySQL 5.7 server.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; * @return Whether the mysqlConfig57 field is set. */ @java.lang.Override public boolean hasMysqlConfig57() { return mysqlConfigCase_ == 2; } /** *
       * Configuration of a MySQL 5.7 server.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; * @return The mysqlConfig57. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7 getMysqlConfig57() { if (mysqlConfig57Builder_ == null) { if (mysqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_; } return yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.getDefaultInstance(); } else { if (mysqlConfigCase_ == 2) { return mysqlConfig57Builder_.getMessage(); } return yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.getDefaultInstance(); } } /** *
       * Configuration of a MySQL 5.7 server.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; */ public Builder setMysqlConfig57(yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7 value) { if (mysqlConfig57Builder_ == null) { if (value == null) { throw new NullPointerException(); } mysqlConfig_ = value; onChanged(); } else { mysqlConfig57Builder_.setMessage(value); } mysqlConfigCase_ = 2; return this; } /** *
       * Configuration of a MySQL 5.7 server.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; */ public Builder setMysqlConfig57( yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.Builder builderForValue) { if (mysqlConfig57Builder_ == null) { mysqlConfig_ = builderForValue.build(); onChanged(); } else { mysqlConfig57Builder_.setMessage(builderForValue.build()); } mysqlConfigCase_ = 2; return this; } /** *
       * Configuration of a MySQL 5.7 server.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; */ public Builder mergeMysqlConfig57(yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7 value) { if (mysqlConfig57Builder_ == null) { if (mysqlConfigCase_ == 2 && mysqlConfig_ != yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.getDefaultInstance()) { mysqlConfig_ = yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.newBuilder((yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_) .mergeFrom(value).buildPartial(); } else { mysqlConfig_ = value; } onChanged(); } else { if (mysqlConfigCase_ == 2) { mysqlConfig57Builder_.mergeFrom(value); } mysqlConfig57Builder_.setMessage(value); } mysqlConfigCase_ = 2; return this; } /** *
       * Configuration of a MySQL 5.7 server.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; */ public Builder clearMysqlConfig57() { if (mysqlConfig57Builder_ == null) { if (mysqlConfigCase_ == 2) { mysqlConfigCase_ = 0; mysqlConfig_ = null; onChanged(); } } else { if (mysqlConfigCase_ == 2) { mysqlConfigCase_ = 0; mysqlConfig_ = null; } mysqlConfig57Builder_.clear(); } return this; } /** *
       * Configuration of a MySQL 5.7 server.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; */ public yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.Builder getMysqlConfig57Builder() { return getMysqlConfig57FieldBuilder().getBuilder(); } /** *
       * Configuration of a MySQL 5.7 server.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7OrBuilder getMysqlConfig57OrBuilder() { if ((mysqlConfigCase_ == 2) && (mysqlConfig57Builder_ != null)) { return mysqlConfig57Builder_.getMessageOrBuilder(); } else { if (mysqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_; } return yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.getDefaultInstance(); } } /** *
       * Configuration of a MySQL 5.7 server.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.config.MysqlConfigSet5_7 mysql_config_5_7 = 2 [json_name = "mysqlConfig_5_7"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7, yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.Builder, yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7OrBuilder> getMysqlConfig57FieldBuilder() { if (mysqlConfig57Builder_ == null) { if (!(mysqlConfigCase_ == 2)) { mysqlConfig_ = yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.getDefaultInstance(); } mysqlConfig57Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7, yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7.Builder, yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7OrBuilder>( (yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.MysqlConfigSet5_7) mysqlConfig_, getParentForChildren(), isClean()); mysqlConfig_ = null; } mysqlConfigCase_ = 2; onChanged();; return mysqlConfig57Builder_; } private yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_; /** *
       * Resources allocated to MySQL hosts.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** *
       * Resources allocated to MySQL hosts.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; * @return The resources. */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** *
       * Resources allocated to MySQL hosts.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; */ public Builder setResources(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } return this; } /** *
       * Resources allocated to MySQL hosts.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; */ public Builder setResources( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Resources allocated to MySQL hosts.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; */ public Builder mergeResources(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** *
       * Resources allocated to MySQL hosts.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** *
       * Resources allocated to MySQL hosts.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** *
       * Resources allocated to MySQL hosts.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } } /** *
       * Resources allocated to MySQL hosts.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private com.google.type.TimeOfDay backupWindowStart_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> backupWindowStartBuilder_; /** *
       * Time to start the daily backup, in the UTC timezone.
       * 
* * .google.type.TimeOfDay backup_window_start = 4; * @return Whether the backupWindowStart field is set. */ public boolean hasBackupWindowStart() { return backupWindowStartBuilder_ != null || backupWindowStart_ != null; } /** *
       * Time to start the daily backup, in the UTC timezone.
       * 
* * .google.type.TimeOfDay backup_window_start = 4; * @return The backupWindowStart. */ public com.google.type.TimeOfDay getBackupWindowStart() { if (backupWindowStartBuilder_ == null) { return backupWindowStart_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : backupWindowStart_; } else { return backupWindowStartBuilder_.getMessage(); } } /** *
       * Time to start the daily backup, in the UTC timezone.
       * 
* * .google.type.TimeOfDay backup_window_start = 4; */ public Builder setBackupWindowStart(com.google.type.TimeOfDay value) { if (backupWindowStartBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backupWindowStart_ = value; onChanged(); } else { backupWindowStartBuilder_.setMessage(value); } return this; } /** *
       * Time to start the daily backup, in the UTC timezone.
       * 
* * .google.type.TimeOfDay backup_window_start = 4; */ public Builder setBackupWindowStart( com.google.type.TimeOfDay.Builder builderForValue) { if (backupWindowStartBuilder_ == null) { backupWindowStart_ = builderForValue.build(); onChanged(); } else { backupWindowStartBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time to start the daily backup, in the UTC timezone.
       * 
* * .google.type.TimeOfDay backup_window_start = 4; */ public Builder mergeBackupWindowStart(com.google.type.TimeOfDay value) { if (backupWindowStartBuilder_ == null) { if (backupWindowStart_ != null) { backupWindowStart_ = com.google.type.TimeOfDay.newBuilder(backupWindowStart_).mergeFrom(value).buildPartial(); } else { backupWindowStart_ = value; } onChanged(); } else { backupWindowStartBuilder_.mergeFrom(value); } return this; } /** *
       * Time to start the daily backup, in the UTC timezone.
       * 
* * .google.type.TimeOfDay backup_window_start = 4; */ public Builder clearBackupWindowStart() { if (backupWindowStartBuilder_ == null) { backupWindowStart_ = null; onChanged(); } else { backupWindowStart_ = null; backupWindowStartBuilder_ = null; } return this; } /** *
       * Time to start the daily backup, in the UTC timezone.
       * 
* * .google.type.TimeOfDay backup_window_start = 4; */ public com.google.type.TimeOfDay.Builder getBackupWindowStartBuilder() { onChanged(); return getBackupWindowStartFieldBuilder().getBuilder(); } /** *
       * Time to start the daily backup, in the UTC timezone.
       * 
* * .google.type.TimeOfDay backup_window_start = 4; */ public com.google.type.TimeOfDayOrBuilder getBackupWindowStartOrBuilder() { if (backupWindowStartBuilder_ != null) { return backupWindowStartBuilder_.getMessageOrBuilder(); } else { return backupWindowStart_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : backupWindowStart_; } } /** *
       * Time to start the daily backup, in the UTC timezone.
       * 
* * .google.type.TimeOfDay backup_window_start = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> getBackupWindowStartFieldBuilder() { if (backupWindowStartBuilder_ == null) { backupWindowStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder>( getBackupWindowStart(), getParentForChildren(), isClean()); backupWindowStart_ = null; } return backupWindowStartBuilder_; } @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.mysql.v1alpha.ClusterConfig) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mysql.v1alpha.ClusterConfig) private static final yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ClusterConfig(); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.ClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mysql.v1alpha.Host) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the MySQL host. The host name is assigned by Managed Service for MySQL
     * at creation time, and cannot be changed. 1-63 characters long.
     * The name is unique across all database hosts that exist on the platform,
     * as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the MySQL host. The host name is assigned by Managed Service for MySQL
     * at creation time, and cannot be changed. 1-63 characters long.
     * The name is unique across all database 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(); /** *
     * ID of the MySQL host. The ID is assigned by Managed Service for MySQL
     * at creation time.
     * 
* * string cluster_id = 2; * @return The clusterId. */ java.lang.String getClusterId(); /** *
     * ID of the MySQL host. The ID is assigned by Managed Service for MySQL
     * at creation time.
     * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ com.google.protobuf.ByteString getClusterIdBytes(); /** *
     * ID of the availability zone where the MySQL host resides.
     * 
* * string zone_id = 3; * @return The zoneId. */ java.lang.String getZoneId(); /** *
     * ID of the availability zone where the MySQL host resides.
     * 
* * string zone_id = 3; * @return The bytes for zoneId. */ com.google.protobuf.ByteString getZoneIdBytes(); /** *
     * Resources allocated to the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; * @return Whether the resources field is set. */ boolean hasResources(); /** *
     * Resources allocated to the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; * @return The resources. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources getResources(); /** *
     * Resources allocated to the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder(); /** *
     * Role of the host in the cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Role role = 5; * @return The enum numeric value on the wire for role. */ int getRoleValue(); /** *
     * Role of the host in the cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Role role = 5; * @return The role. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role getRole(); /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.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.mysql.v1alpha.Host.Health health = 6; * @return The health. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health getHealth(); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ java.util.List getServicesList(); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service getServices(int index); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ int getServicesCount(); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ java.util.List getServicesOrBuilderList(); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ServiceOrBuilder getServicesOrBuilder( int index); /** *
     * 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(); /** *
     * Flag showing public IP assignment status to this host.
     * 
* * bool assign_public_ip = 9; * @return The assignPublicIp. */ boolean getAssignPublicIp(); } /** * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.Host} */ public static final class Host extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mysql.v1alpha.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_ = ""; role_ = 0; health_ = 0; services_ = java.util.Collections.emptyList(); subnetId_ = ""; } @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.mysql.v1alpha.ClusterOuterClass.Resources.Builder subBuilder = null; if (resources_ != null) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } break; } case 40: { int rawValue = input.readEnum(); role_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); health_ = rawValue; break; } case 58: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { services_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } services_.add( input.readMessage(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.parser(), extensionRegistry)); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); subnetId_ = s; break; } case 72: { 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)) { services_ = java.util.Collections.unmodifiableList(services_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.mysql.v1alpha.Host.Role} */ public enum Role implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Role of the host in the cluster is unknown.
       * 
* * ROLE_UNKNOWN = 0; */ ROLE_UNKNOWN(0), /** *
       * Host is the master MySQL server in the cluster.
       * 
* * MASTER = 1; */ MASTER(1), /** *
       * Host is a replica MySQL server in the cluster.
       * 
* * REPLICA = 2; */ REPLICA(2), UNRECOGNIZED(-1), ; /** *
       * Role of the host in the cluster is unknown.
       * 
* * ROLE_UNKNOWN = 0; */ public static final int ROLE_UNKNOWN_VALUE = 0; /** *
       * Host is the master MySQL server in the cluster.
       * 
* * MASTER = 1; */ public static final int MASTER_VALUE = 1; /** *
       * Host is a replica MySQL server in the cluster.
       * 
* * REPLICA = 2; */ public static final int REPLICA_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 Role 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 Role forNumber(int value) { switch (value) { case 0: return ROLE_UNKNOWN; case 1: return MASTER; case 2: return REPLICA; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Role> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Role findValueByNumber(int number) { return Role.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.mysql.v1alpha.ClusterOuterClass.Host.getDescriptor().getEnumTypes().get(0); } private static final Role[] VALUES = values(); public static Role 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 Role(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.mysql.v1alpha.Host.Role) } /** * Protobuf enum {@code yandex.cloud.mdb.mysql.v1alpha.Host.Health} */ public enum Health implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Health of the host is unknown.
       * 
* * HEALTH_UNKNOWN = 0; */ HEALTH_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 degraded, and can perform only some of its essential functions.
       * 
* * DEGRADED = 3; */ DEGRADED(3), UNRECOGNIZED(-1), ; /** *
       * Health of the host is unknown.
       * 
* * HEALTH_UNKNOWN = 0; */ public static final int HEALTH_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 degraded, and can perform only some of its essential functions.
       * 
* * 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.mysql.v1alpha.ClusterOuterClass.Host.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.mysql.v1alpha.Host.Health) } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the MySQL host. The host name is assigned by Managed Service for MySQL
     * at creation time, and cannot be changed. 1-63 characters long.
     * The name is unique across all database 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; } } /** *
     * Name of the MySQL host. The host name is assigned by Managed Service for MySQL
     * at creation time, and cannot be changed. 1-63 characters long.
     * The name is unique across all database 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_; /** *
     * ID of the MySQL host. The ID is assigned by Managed Service for MySQL
     * 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; } } /** *
     * ID of the MySQL host. The ID is assigned by Managed Service for MySQL
     * 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 where the MySQL host resides.
     * 
* * 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 where the MySQL host resides.
     * 
* * 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.mysql.v1alpha.ClusterOuterClass.Resources resources_; /** *
     * Resources allocated to the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** *
     * Resources allocated to the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; * @return The resources. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources getResources() { return resources_ == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } /** *
     * Resources allocated to the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int ROLE_FIELD_NUMBER = 5; private int role_; /** *
     * Role of the host in the cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Role role = 5; * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** *
     * Role of the host in the cluster.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Role role = 5; * @return The role. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role getRole() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role.valueOf(role_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role.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.mysql.v1alpha.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.mysql.v1alpha.Host.Health health = 6; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health.UNRECOGNIZED : result; } public static final int SERVICES_FIELD_NUMBER = 7; private java.util.List services_; /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ @java.lang.Override public java.util.List getServicesList() { return services_; } /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ @java.lang.Override public java.util.List getServicesOrBuilderList() { return services_; } /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ @java.lang.Override public int getServicesCount() { return services_.size(); } /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service getServices(int index) { return services_.get(index); } /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ServiceOrBuilder getServicesOrBuilder( int index) { return services_.get(index); } 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_; /** *
     * Flag showing public IP assignment status to this host.
     * 
* * bool assign_public_ip = 9; * @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 (!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 (role_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role.ROLE_UNKNOWN.getNumber()) { output.writeEnum(5, role_); } if (health_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health.HEALTH_UNKNOWN.getNumber()) { output.writeEnum(6, health_); } for (int i = 0; i < services_.size(); i++) { output.writeMessage(7, services_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, subnetId_); } if (assignPublicIp_ != false) { output.writeBool(9, 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 (!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 (role_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role.ROLE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, role_); } if (health_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health.HEALTH_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, health_); } for (int i = 0; i < services_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, services_.get(i)); } 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_); } 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.mysql.v1alpha.ClusterOuterClass.Host)) { return super.equals(obj); } yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host other = (yandex.cloud.api.mdb.mysql.v1alpha.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 (role_ != other.role_) return false; if (health_ != other.health_) return false; if (!getServicesList() .equals(other.getServicesList())) return false; if (!getSubnetId() .equals(other.getSubnetId())) 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(); 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) + ROLE_FIELD_NUMBER; hash = (53 * hash) + role_; hash = (37 * hash) + HEALTH_FIELD_NUMBER; hash = (53 * hash) + health_; if (getServicesCount() > 0) { hash = (37 * hash) + SERVICES_FIELD_NUMBER; hash = (53 * hash) + getServicesList().hashCode(); } 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()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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; } /** * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.Host} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mysql.v1alpha.Host) yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.HostOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Builder.class); } // Construct using yandex.cloud.api.mdb.mysql.v1alpha.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) { getServicesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; clusterId_ = ""; zoneId_ = ""; if (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } role_ = 0; health_ = 0; if (servicesBuilder_ == null) { services_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { servicesBuilder_.clear(); } subnetId_ = ""; assignPublicIp_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host getDefaultInstanceForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host build() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host buildPartial() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host result = new yandex.cloud.api.mdb.mysql.v1alpha.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.role_ = role_; result.health_ = health_; if (servicesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { services_ = java.util.Collections.unmodifiableList(services_); bitField0_ = (bitField0_ & ~0x00000001); } result.services_ = services_; } else { result.services_ = servicesBuilder_.build(); } result.subnetId_ = subnetId_; 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.mysql.v1alpha.ClusterOuterClass.Host) { return mergeFrom((yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host other) { if (other == yandex.cloud.api.mdb.mysql.v1alpha.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.role_ != 0) { setRoleValue(other.getRoleValue()); } if (other.health_ != 0) { setHealthValue(other.getHealthValue()); } if (servicesBuilder_ == null) { if (!other.services_.isEmpty()) { if (services_.isEmpty()) { services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureServicesIsMutable(); services_.addAll(other.services_); } onChanged(); } } else { if (!other.services_.isEmpty()) { if (servicesBuilder_.isEmpty()) { servicesBuilder_.dispose(); servicesBuilder_ = null; services_ = other.services_; bitField0_ = (bitField0_ & ~0x00000001); servicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getServicesFieldBuilder() : null; } else { servicesBuilder_.addAllMessages(other.services_); } } } if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; 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.mysql.v1alpha.ClusterOuterClass.Host parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
       * Name of the MySQL host. The host name is assigned by Managed Service for MySQL
       * at creation time, and cannot be changed. 1-63 characters long.
       * The name is unique across all database 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; } } /** *
       * Name of the MySQL host. The host name is assigned by Managed Service for MySQL
       * at creation time, and cannot be changed. 1-63 characters long.
       * The name is unique across all database 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; } } /** *
       * Name of the MySQL host. The host name is assigned by Managed Service for MySQL
       * at creation time, and cannot be changed. 1-63 characters long.
       * The name is unique across all database 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; } /** *
       * Name of the MySQL host. The host name is assigned by Managed Service for MySQL
       * at creation time, and cannot be changed. 1-63 characters long.
       * The name is unique across all database 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; } /** *
       * Name of the MySQL host. The host name is assigned by Managed Service for MySQL
       * at creation time, and cannot be changed. 1-63 characters long.
       * The name is unique across all database 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_ = ""; /** *
       * ID of the MySQL host. The ID is assigned by Managed Service for MySQL
       * 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; } } /** *
       * ID of the MySQL host. The ID is assigned by Managed Service for MySQL
       * 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; } } /** *
       * ID of the MySQL host. The ID is assigned by Managed Service for MySQL
       * 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; } /** *
       * ID of the MySQL host. The ID is assigned by Managed Service for MySQL
       * at creation time.
       * 
* * string cluster_id = 2; * @return This builder for chaining. */ public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); return this; } /** *
       * ID of the MySQL host. The ID is assigned by Managed Service for MySQL
       * 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 where the MySQL host resides.
       * 
* * 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 where the MySQL host resides.
       * 
* * 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 where the MySQL host resides.
       * 
* * 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 where the MySQL host resides.
       * 
* * string zone_id = 3; * @return This builder for chaining. */ public Builder clearZoneId() { zoneId_ = getDefaultInstance().getZoneId(); onChanged(); return this; } /** *
       * ID of the availability zone where the MySQL host resides.
       * 
* * 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.mysql.v1alpha.ClusterOuterClass.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_; /** *
       * Resources allocated to the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** *
       * Resources allocated to the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; * @return The resources. */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** *
       * Resources allocated to the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; */ public Builder setResources(yandex.cloud.api.mdb.mysql.v1alpha.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 host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; */ public Builder setResources( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Resources allocated to the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; */ public Builder mergeResources(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** *
       * Resources allocated to the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** *
       * Resources allocated to the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** *
       * Resources allocated to the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } } /** *
       * Resources allocated to the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Resources resources = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private int role_ = 0; /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Role role = 5; * @return The enum numeric value on the wire for role. */ @java.lang.Override public int getRoleValue() { return role_; } /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Role role = 5; * @param value The enum numeric value on the wire for role to set. * @return This builder for chaining. */ public Builder setRoleValue(int value) { role_ = value; onChanged(); return this; } /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Role role = 5; * @return The role. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role getRole() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role.valueOf(role_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role.UNRECOGNIZED : result; } /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Role role = 5; * @param value The role to set. * @return This builder for chaining. */ public Builder setRole(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Role value) { if (value == null) { throw new NullPointerException(); } role_ = value.getNumber(); onChanged(); return this; } /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Role role = 5; * @return This builder for chaining. */ public Builder clearRole() { role_ = 0; onChanged(); return this; } private int health_ = 0; /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.Host.Health health = 6; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host.Health.UNRECOGNIZED : result; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Host.Health health = 6; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.Host.Health health = 6; * @return This builder for chaining. */ public Builder clearHealth() { health_ = 0; onChanged(); return this; } private java.util.List services_ = java.util.Collections.emptyList(); private void ensureServicesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { services_ = new java.util.ArrayList(services_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ServiceOrBuilder> servicesBuilder_; /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public java.util.List getServicesList() { if (servicesBuilder_ == null) { return java.util.Collections.unmodifiableList(services_); } else { return servicesBuilder_.getMessageList(); } } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public int getServicesCount() { if (servicesBuilder_ == null) { return services_.size(); } else { return servicesBuilder_.getCount(); } } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service getServices(int index) { if (servicesBuilder_ == null) { return services_.get(index); } else { return servicesBuilder_.getMessage(index); } } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public Builder setServices( int index, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.set(index, value); onChanged(); } else { servicesBuilder_.setMessage(index, value); } return this; } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public Builder setServices( int index, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.set(index, builderForValue.build()); onChanged(); } else { servicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public Builder addServices(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.add(value); onChanged(); } else { servicesBuilder_.addMessage(value); } return this; } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public Builder addServices( int index, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service value) { if (servicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureServicesIsMutable(); services_.add(index, value); onChanged(); } else { servicesBuilder_.addMessage(index, value); } return this; } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public Builder addServices( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(builderForValue.build()); onChanged(); } else { servicesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public Builder addServices( int index, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder builderForValue) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.add(index, builderForValue.build()); onChanged(); } else { servicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public Builder addAllServices( java.lang.Iterable values) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, services_); onChanged(); } else { servicesBuilder_.addAllMessages(values); } return this; } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public Builder clearServices() { if (servicesBuilder_ == null) { services_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { servicesBuilder_.clear(); } return this; } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public Builder removeServices(int index) { if (servicesBuilder_ == null) { ensureServicesIsMutable(); services_.remove(index); onChanged(); } else { servicesBuilder_.remove(index); } return this; } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder getServicesBuilder( int index) { return getServicesFieldBuilder().getBuilder(index); } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ServiceOrBuilder getServicesOrBuilder( int index) { if (servicesBuilder_ == null) { return services_.get(index); } else { return servicesBuilder_.getMessageOrBuilder(index); } } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public java.util.List getServicesOrBuilderList() { if (servicesBuilder_ != null) { return servicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(services_); } } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder addServicesBuilder() { return getServicesFieldBuilder().addBuilder( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.getDefaultInstance()); } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder addServicesBuilder( int index) { return getServicesFieldBuilder().addBuilder( index, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.getDefaultInstance()); } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.mysql.v1alpha.Service services = 7; */ public java.util.List getServicesBuilderList() { return getServicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ServiceOrBuilder> getServicesFieldBuilder() { if (servicesBuilder_ == null) { servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ServiceOrBuilder>( services_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); services_ = null; } return servicesBuilder_; } 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_ ; /** *
       * Flag showing public IP assignment status to this host.
       * 
* * bool assign_public_ip = 9; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } /** *
       * Flag showing public IP assignment status to this 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; } /** *
       * Flag showing public IP assignment status to this host.
       * 
* * bool assign_public_ip = 9; * @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.mysql.v1alpha.Host) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mysql.v1alpha.Host) private static final yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Host(); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mysql.v1alpha.Service) com.google.protobuf.MessageOrBuilder { /** *
     * Type of the service provided by the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Type type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * Type of the service provided by the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Type type = 1; * @return The type. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type getType(); /** *
     * Status code of server availability.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Health health = 2; * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** *
     * Status code of server availability.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Health health = 2; * @return The health. */ yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health getHealth(); } /** * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.Service} */ public static final class Service extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mysql.v1alpha.Service) ServiceOrBuilder { private static final long serialVersionUID = 0L; // Use Service.newBuilder() to construct. private Service(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Service() { type_ = 0; health_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Service(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Service( 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: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); health_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.mysql.v1alpha.Service.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** *
       * Host provides the MySQL error log.
       * 
* * MYSQL_ERROR = 1; */ MYSQL_ERROR(1), /** *
       * Host provides the MySQL general query log.
       * 
* * MYSQL_GENERAL = 2; */ MYSQL_GENERAL(2), /** *
       * Host provides the MySQL slow query log.
       * 
* * MYSQL_SLOW_QUERY = 3; */ MYSQL_SLOW_QUERY(3), UNRECOGNIZED(-1), ; /** * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** *
       * Host provides the MySQL error log.
       * 
* * MYSQL_ERROR = 1; */ public static final int MYSQL_ERROR_VALUE = 1; /** *
       * Host provides the MySQL general query log.
       * 
* * MYSQL_GENERAL = 2; */ public static final int MYSQL_GENERAL_VALUE = 2; /** *
       * Host provides the MySQL slow query log.
       * 
* * MYSQL_SLOW_QUERY = 3; */ public static final int MYSQL_SLOW_QUERY_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 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 MYSQL_ERROR; case 2: return MYSQL_GENERAL; case 3: return MYSQL_SLOW_QUERY; 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.mysql.v1alpha.ClusterOuterClass.Service.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.mysql.v1alpha.Service.Type) } /** * Protobuf enum {@code yandex.cloud.mdb.mysql.v1alpha.Service.Health} */ public enum Health implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Health of the server is unknown.
       * 
* * HEALTH_UNKNOWN = 0; */ HEALTH_UNKNOWN(0), /** *
       * The server is working normally.
       * 
* * ALIVE = 1; */ ALIVE(1), /** *
       * The server is dead or unresponsive.
       * 
* * DEAD = 2; */ DEAD(2), UNRECOGNIZED(-1), ; /** *
       * Health of the server is unknown.
       * 
* * HEALTH_UNKNOWN = 0; */ public static final int HEALTH_UNKNOWN_VALUE = 0; /** *
       * The server is working normally.
       * 
* * ALIVE = 1; */ public static final int ALIVE_VALUE = 1; /** *
       * The server is dead or unresponsive.
       * 
* * DEAD = 2; */ public static final int DEAD_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 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; 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.mysql.v1alpha.ClusterOuterClass.Service.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.mysql.v1alpha.Service.Health) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * Type of the service provided by the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * Type of the service provided by the host.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Type type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type.valueOf(type_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type.UNRECOGNIZED : result; } public static final int HEALTH_FIELD_NUMBER = 2; private int health_; /** *
     * Status code of server availability.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Health health = 2; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
     * Status code of server availability.
     * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Health health = 2; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (health_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health.HEALTH_UNKNOWN.getNumber()) { output.writeEnum(2, health_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (health_ != yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health.HEALTH_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, health_); } 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.mysql.v1alpha.ClusterOuterClass.Service)) { return super.equals(obj); } yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service other = (yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service) obj; if (type_ != other.type_) return false; if (health_ != other.health_) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + HEALTH_FIELD_NUMBER; hash = (53 * hash) + health_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service 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.mysql.v1alpha.ClusterOuterClass.Service parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service 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.mysql.v1alpha.ClusterOuterClass.Service parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service 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.mysql.v1alpha.ClusterOuterClass.Service parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service 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.mysql.v1alpha.ClusterOuterClass.Service parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service 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.mysql.v1alpha.ClusterOuterClass.Service 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.mysql.v1alpha.Service} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mysql.v1alpha.Service) yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ServiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Builder.class); } // Construct using yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.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(); type_ = 0; health_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service getDefaultInstanceForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service build() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service buildPartial() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service result = new yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service(this); result.type_ = type_; result.health_ = health_; 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.mysql.v1alpha.ClusterOuterClass.Service) { return mergeFrom((yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service other) { if (other == yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.health_ != 0) { setHealthValue(other.getHealthValue()); } 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.mysql.v1alpha.ClusterOuterClass.Service parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** *
       * Type of the service provided by the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
       * Type of the service provided by the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Type type = 1; * @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 service provided by the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Type type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type.valueOf(type_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type.UNRECOGNIZED : result; } /** *
       * Type of the service provided by the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Type type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * Type of the service provided by the host.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Type type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private int health_ = 0; /** *
       * Status code of server availability.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Health health = 2; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
       * Status code of server availability.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Health health = 2; * @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 server availability.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Health health = 2; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health result = yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health.UNRECOGNIZED : result; } /** *
       * Status code of server availability.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Health health = 2; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service.Health value) { if (value == null) { throw new NullPointerException(); } health_ = value.getNumber(); onChanged(); return this; } /** *
       * Status code of server availability.
       * 
* * .yandex.cloud.mdb.mysql.v1alpha.Service.Health health = 2; * @return This builder for chaining. */ public Builder clearHealth() { health_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mysql.v1alpha.Service) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mysql.v1alpha.Service) private static final yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service(); } public static yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Service getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Service parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Service(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.mysql.v1alpha.ClusterOuterClass.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mysql.v1alpha.Resources) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the preset for computational resources available to a host (CPU, memory etc.).
     * All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
     * 
* * string resource_preset_id = 1; * @return The resourcePresetId. */ java.lang.String getResourcePresetId(); /** *
     * ID of the preset for computational resources available to a host (CPU, memory etc.).
     * All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
     * 
* * string resource_preset_id = 1; * @return The bytes for resourcePresetId. */ com.google.protobuf.ByteString getResourcePresetIdBytes(); /** *
     * Volume of the storage available to a host.
     * 
* * int64 disk_size = 2; * @return The diskSize. */ long getDiskSize(); /** *
     * Type of the storage environment for the host.
     * Possible values:
     * * network-ssd - network SSD drive,
     * * local-ssd - local SSD storage.
     * 
* * string disk_type_id = 3; * @return The diskTypeId. */ java.lang.String getDiskTypeId(); /** *
     * Type of the storage environment for the host.
     * Possible values:
     * * network-ssd - network SSD drive,
     * * local-ssd - local SSD storage.
     * 
* * string disk_type_id = 3; * @return The bytes for diskTypeId. */ com.google.protobuf.ByteString getDiskTypeIdBytes(); } /** * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.Resources} */ public static final class Resources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.class, yandex.cloud.api.mdb.mysql.v1alpha.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 available to a host (CPU, memory etc.).
     * All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
     * 
* * 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 available to a host (CPU, memory etc.).
     * All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
     * 
* * 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 available to a host.
     * 
* * 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 environment for the host.
     * Possible values:
     * * network-ssd - network SSD drive,
     * * local-ssd - local SSD storage.
     * 
* * 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 environment for the host.
     * Possible values:
     * * network-ssd - network SSD drive,
     * * local-ssd - local SSD storage.
     * 
* * 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.mysql.v1alpha.ClusterOuterClass.Resources)) { return super.equals(obj); } yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources other = (yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Resources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Resources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Resources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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.mysql.v1alpha.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; } /** * Protobuf type {@code yandex.cloud.mdb.mysql.v1alpha.Resources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mysql.v1alpha.Resources) yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.ResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.class, yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.Builder.class); } // Construct using yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources getDefaultInstanceForType() { return yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources build() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources buildPartial() { yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources result = new yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Resources) { return mergeFrom((yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources other) { if (other == yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Resources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.mysql.v1alpha.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 available to a host (CPU, memory etc.).
       * All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
       * 
* * 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 available to a host (CPU, memory etc.).
       * All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
       * 
* * 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 available to a host (CPU, memory etc.).
       * All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
       * 
* * 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 available to a host (CPU, memory etc.).
       * All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
       * 
* * 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 available to a host (CPU, memory etc.).
       * All available presets are listed in the [documentation](/docs/managed-mysql/concepts/instance-types).
       * 
* * 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 available to a host.
       * 
* * int64 disk_size = 2; * @return The diskSize. */ @java.lang.Override public long getDiskSize() { return diskSize_; } /** *
       * Volume of the storage available to a host.
       * 
* * 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 available to a host.
       * 
* * 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 environment for the host.
       * Possible values:
       * * network-ssd - network SSD drive,
       * * local-ssd - local SSD storage.
       * 
* * 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 environment for the host.
       * Possible values:
       * * network-ssd - network SSD drive,
       * * local-ssd - local SSD storage.
       * 
* * 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 environment for the host.
       * Possible values:
       * * network-ssd - network SSD drive,
       * * local-ssd - local SSD storage.
       * 
* * 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 environment for the host.
       * Possible values:
       * * network-ssd - network SSD drive,
       * * local-ssd - local SSD storage.
       * 
* * string disk_type_id = 3; * @return This builder for chaining. */ public Builder clearDiskTypeId() { diskTypeId_ = getDefaultInstance().getDiskTypeId(); onChanged(); return this; } /** *
       * Type of the storage environment for the host.
       * Possible values:
       * * network-ssd - network SSD drive,
       * * local-ssd - local SSD storage.
       * 
* * 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.mysql.v1alpha.Resources) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mysql.v1alpha.Resources) private static final yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mysql.v1alpha.ClusterOuterClass.Resources(); } public static yandex.cloud.api.mdb.mysql.v1alpha.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.mysql.v1alpha.ClusterOuterClass.Resources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_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/mysql/v1alpha/cluster" + ".proto\022\036yandex.cloud.mdb.mysql.v1alpha\032\037" + "google/protobuf/timestamp.proto\032\033google/" + "type/timeofday.proto\0324yandex/cloud/mdb/m" + "ysql/v1alpha/config/mysql5_7.proto\"\323\006\n\007C" + "luster\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002 \001(\t\022.\n" + "\ncreated_at\030\003 \001(\0132\032.google.protobuf.Time" + "stamp\022\014\n\004name\030\004 \001(\t\022\023\n\013description\030\005 \001(\t" + "\022C\n\006labels\030\006 \003(\01323.yandex.cloud.mdb.mysq" + "l.v1alpha.Cluster.LabelsEntry\022H\n\013environ" + "ment\030\007 \001(\01623.yandex.cloud.mdb.mysql.v1al" + "pha.Cluster.Environment\022>\n\nmonitoring\030\010 " + "\003(\0132*.yandex.cloud.mdb.mysql.v1alpha.Mon" + "itoring\022=\n\006config\030\t \001(\0132-.yandex.cloud.m" + "db.mysql.v1alpha.ClusterConfig\022\022\n\nnetwor" + "k_id\030\n \001(\t\022>\n\006health\030\013 \001(\0162..yandex.clou" + "d.mdb.mysql.v1alpha.Cluster.Health\022>\n\006st" + "atus\030\014 \001(\0162..yandex.cloud.mdb.mysql.v1al" + "pha.Cluster.Status\032-\n\013LabelsEntry\022\013\n\003key" + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"I\n\013Environment" + "\022\033\n\027ENVIRONMENT_UNSPECIFIED\020\000\022\016\n\nPRODUCT" + "ION\020\001\022\r\n\tPRESTABLE\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\010DEGRA" + "DED\020\003\"y\n\006Status\022\022\n\016STATUS_UNKNOWN\020\000\022\014\n\010C" + "REATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022\014\n\010UPD" + "ATING\020\004\022\014\n\010STOPPING\020\005\022\013\n\007STOPPED\020\006\022\014\n\010ST" + "ARTING\020\007\"=\n\nMonitoring\022\014\n\004name\030\001 \001(\t\022\023\n\013" + "description\030\002 \001(\t\022\014\n\004link\030\003 \001(\t\"\212\002\n\rClus" + "terConfig\022\017\n\007version\030\001 \001(\t\022e\n\020mysql_conf" + "ig_5_7\030\002 \001(\01328.yandex.cloud.mdb.mysql.v1" + "alpha.config.MysqlConfigSet5_7H\000R\017mysqlC" + "onfig_5_7\022<\n\tresources\030\003 \001(\0132).yandex.cl" + "oud.mdb.mysql.v1alpha.Resources\0223\n\023backu" + "p_window_start\030\004 \001(\0132\026.google.type.TimeO" + "fDayB\016\n\014mysql_config\"\311\003\n\004Host\022\014\n\004name\030\001 " + "\001(\t\022\022\n\ncluster_id\030\002 \001(\t\022\017\n\007zone_id\030\003 \001(\t" + "\022<\n\tresources\030\004 \001(\0132).yandex.cloud.mdb.m" + "ysql.v1alpha.Resources\0227\n\004role\030\005 \001(\0162).y" + "andex.cloud.mdb.mysql.v1alpha.Host.Role\022" + ";\n\006health\030\006 \001(\0162+.yandex.cloud.mdb.mysql" + ".v1alpha.Host.Health\0229\n\010services\030\007 \003(\0132\'" + ".yandex.cloud.mdb.mysql.v1alpha.Service\022" + "\021\n\tsubnet_id\030\010 \001(\t\022\030\n\020assign_public_ip\030\t" + " \001(\010\"1\n\004Role\022\020\n\014ROLE_UNKNOWN\020\000\022\n\n\006MASTER" + "\020\001\022\013\n\007REPLICA\020\002\"?\n\006Health\022\022\n\016HEALTH_UNKN" + "OWN\020\000\022\t\n\005ALIVE\020\001\022\010\n\004DEAD\020\002\022\014\n\010DEGRADED\020\003" + "\"\220\002\n\007Service\022:\n\004type\030\001 \001(\0162,.yandex.clou" + "d.mdb.mysql.v1alpha.Service.Type\022>\n\006heal" + "th\030\002 \001(\0162..yandex.cloud.mdb.mysql.v1alph" + "a.Service.Health\"V\n\004Type\022\024\n\020TYPE_UNSPECI" + "FIED\020\000\022\017\n\013MYSQL_ERROR\020\001\022\021\n\rMYSQL_GENERAL" + "\020\002\022\024\n\020MYSQL_SLOW_QUERY\020\003\"1\n\006Health\022\022\n\016HE" + "ALTH_UNKNOWN\020\000\022\t\n\005ALIVE\020\001\022\010\n\004DEAD\020\002\"P\n\tR" + "esources\022\032\n\022resource_preset_id\030\001 \001(\t\022\021\n\t" + "disk_size\030\002 \001(\003\022\024\n\014disk_type_id\030\003 \001(\tBn\n" + "\"yandex.cloud.api.mdb.mysql.v1alphaZHgit" + "hub.com/yandex-cloud/go-genproto/yandex/" + "cloud/mdb/mysql/v1alpha;mysqlb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), com.google.type.TimeOfDayProto.getDescriptor(), yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.getDescriptor(), }); internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Environment", "Monitoring", "Config", "NetworkId", "Health", "Status", }); internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_LabelsEntry_descriptor = internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_mysql_v1alpha_Cluster_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_mysql_v1alpha_Monitoring_descriptor, new java.lang.String[] { "Name", "Description", "Link", }); internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_mysql_v1alpha_ClusterConfig_descriptor, new java.lang.String[] { "Version", "MysqlConfig57", "Resources", "BackupWindowStart", "MysqlConfig", }); internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_mysql_v1alpha_Host_descriptor, new java.lang.String[] { "Name", "ClusterId", "ZoneId", "Resources", "Role", "Health", "Services", "SubnetId", "AssignPublicIp", }); internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_mysql_v1alpha_Service_descriptor, new java.lang.String[] { "Type", "Health", }); internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_mysql_v1alpha_Resources_descriptor, new java.lang.String[] { "ResourcePresetId", "DiskSize", "DiskTypeId", }); com.google.protobuf.TimestampProto.getDescriptor(); com.google.type.TimeOfDayProto.getDescriptor(); yandex.cloud.api.mdb.mysql.v1alpha.config.Mysql57.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy