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

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

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

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

public final class ClusterOuterClass {
  private ClusterOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ClusterOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.Cluster)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the PostgreSQL cluster.
     * This ID is assigned by MDB at creation time.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the PostgreSQL cluster.
     * This ID is assigned by MDB at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the PostgreSQL cluster belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the PostgreSQL cluster belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the PostgreSQL cluster.
     * The name is unique within the folder. 1-63 characters long.
     * 
* * string name = 4; * @return The name. */ java.lang.String getName(); /** *
     * Name of the PostgreSQL cluster.
     * The name is unique within the folder. 1-63 characters long.
     * 
* * string name = 4; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the PostgreSQL cluster. 0-256 characters long.
     * 
* * string description = 5; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the PostgreSQL cluster. 0-256 characters long.
     * 
* * string description = 5; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Custom labels for the PostgreSQL cluster as `` key:value `` pairs.
     * Maximum 64 per resource.
     * 
* * map<string, string> labels = 6; */ int getLabelsCount(); /** *
     * Custom labels for the PostgreSQL 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 PostgreSQL cluster as `` key:value `` pairs.
     * Maximum 64 per resource.
     * 
* * map<string, string> labels = 6; */ java.util.Map getLabelsMap(); /** *
     * Custom labels for the PostgreSQL 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 PostgreSQL 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 PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Environment environment = 7; * @return The enum numeric value on the wire for environment. */ int getEnvironmentValue(); /** *
     * Deployment environment of the PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Environment environment = 7; * @return The environment. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment getEnvironment(); /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ java.util.List getMonitoringList(); /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring getMonitoring(int index); /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ int getMonitoringCount(); /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ java.util.List getMonitoringOrBuilderList(); /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder( int index); /** *
     * Configuration of the PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; * @return Whether the config field is set. */ boolean hasConfig(); /** *
     * Configuration of the PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; * @return The config. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig getConfig(); /** *
     * Configuration of the PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; */ yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Cluster.Health health = 11; * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** *
     * Aggregated cluster health.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Health health = 11; * @return The health. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health getHealth(); /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Status status = 12; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Status status = 12; * @return The status. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status getStatus(); /** *
     * Maintenance window for the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; * @return Whether the maintenanceWindow field is set. */ boolean hasMaintenanceWindow(); /** *
     * Maintenance window for the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; * @return The maintenanceWindow. */ yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow getMaintenanceWindow(); /** *
     * Maintenance window for the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; */ yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder(); /** *
     * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; * @return Whether the plannedOperation field is set. */ boolean hasPlannedOperation(); /** *
     * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; * @return The plannedOperation. */ yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation getPlannedOperation(); /** *
     * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; */ yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperationOrBuilder getPlannedOperationOrBuilder(); /** *
     * User security groups
     * 
* * repeated string security_group_ids = 15; * @return A list containing the securityGroupIds. */ java.util.List getSecurityGroupIdsList(); /** *
     * User security groups
     * 
* * repeated string security_group_ids = 15; * @return The count of securityGroupIds. */ int getSecurityGroupIdsCount(); /** *
     * User security groups
     * 
* * repeated string security_group_ids = 15; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ java.lang.String getSecurityGroupIds(int index); /** *
     * User security groups
     * 
* * repeated string security_group_ids = 15; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index); /** *
     * Deletion Protection inhibits deletion of the cluster
     * 
* * bool deletion_protection = 16; * @return The deletionProtection. */ boolean getDeletionProtection(); /** *
     * Host groups hosting VMs of the cluster.
     * 
* * repeated string host_group_ids = 17; * @return A list containing the hostGroupIds. */ java.util.List getHostGroupIdsList(); /** *
     * Host groups hosting VMs of the cluster.
     * 
* * repeated string host_group_ids = 17; * @return The count of hostGroupIds. */ int getHostGroupIdsCount(); /** *
     * Host groups hosting VMs of the cluster.
     * 
* * repeated string host_group_ids = 17; * @param index The index of the element to return. * @return The hostGroupIds at the given index. */ java.lang.String getHostGroupIds(int index); /** *
     * Host groups hosting VMs of the cluster.
     * 
* * repeated string host_group_ids = 17; * @param index The index of the value to return. * @return The bytes of the hostGroupIds at the given index. */ com.google.protobuf.ByteString getHostGroupIdsBytes(int index); } /** *
   * A PostgreSQL Cluster resource. For more information, see
   * the [Concepts](/docs/managed-postgresql/concepts) section of the documentation.
   * 
* * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Cluster} */ public static final class Cluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.Cluster) ClusterOrBuilder { private static final long serialVersionUID = 0L; // Use Cluster.newBuilder() to construct. private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Cluster() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; environment_ = 0; monitoring_ = java.util.Collections.emptyList(); networkId_ = ""; health_ = 0; status_ = 0; securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; hostGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @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.postgresql.v1.ClusterOuterClass.Monitoring.parser(), extensionRegistry)); break; } case 74: { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.Builder subBuilder = null; if (config_ != null) { subBuilder = config_.toBuilder(); } config_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(config_); config_ = subBuilder.buildPartial(); } break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); networkId_ = s; break; } case 88: { int rawValue = input.readEnum(); health_ = rawValue; break; } case 96: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 106: { yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.Builder subBuilder = null; if (maintenanceWindow_ != null) { subBuilder = maintenanceWindow_.toBuilder(); } maintenanceWindow_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maintenanceWindow_); maintenanceWindow_ = subBuilder.buildPartial(); } break; } case 114: { yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.Builder subBuilder = null; if (plannedOperation_ != null) { subBuilder = plannedOperation_.toBuilder(); } plannedOperation_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(plannedOperation_); plannedOperation_ = subBuilder.buildPartial(); } break; } case 122: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } securityGroupIds_.add(s); break; } case 128: { deletionProtection_ = input.readBool(); break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000008) != 0)) { hostGroupIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } hostGroupIds_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { monitoring_ = java.util.Collections.unmodifiableList(monitoring_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) != 0)) { hostGroupIds_ = hostGroupIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.Cluster.Environment} */ public enum Environment implements com.google.protobuf.ProtocolMessageEnum { /** * ENVIRONMENT_UNSPECIFIED = 0; */ ENVIRONMENT_UNSPECIFIED(0), /** *
       * Stable environment with a conservative update policy:
       * only hotfixes are applied during regular maintenance.
       * 
* * PRODUCTION = 1; */ PRODUCTION(1), /** *
       * Environment with more aggressive update policy: new versions
       * are rolled out irrespective of backward compatibility.
       * 
* * PRESTABLE = 2; */ PRESTABLE(2), UNRECOGNIZED(-1), ; /** * ENVIRONMENT_UNSPECIFIED = 0; */ public static final int ENVIRONMENT_UNSPECIFIED_VALUE = 0; /** *
       * Stable environment with a conservative update policy:
       * only hotfixes are applied during regular maintenance.
       * 
* * PRODUCTION = 1; */ public static final int PRODUCTION_VALUE = 1; /** *
       * Environment with more aggressive update policy: new versions
       * are rolled out irrespective of backward compatibility.
       * 
* * PRESTABLE = 2; */ public static final int PRESTABLE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Environment valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Environment forNumber(int value) { switch (value) { case 0: return ENVIRONMENT_UNSPECIFIED; case 1: return PRODUCTION; case 2: return PRESTABLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Environment> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Environment findValueByNumber(int number) { return Environment.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.getDescriptor().getEnumTypes().get(0); } private static final Environment[] VALUES = values(); public static Environment valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Environment(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.Cluster.Environment) } /** * Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Cluster.getDescriptor().getEnumTypes().get(1); } private static final Health[] VALUES = values(); public static Health valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Health(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.Cluster.Health) } /** * Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.Cluster.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Cluster state is unknown.
       * 
* * STATUS_UNKNOWN = 0; */ STATUS_UNKNOWN(0), /** *
       * Cluster is being created.
       * 
* * CREATING = 1; */ CREATING(1), /** *
       * Cluster is running normally.
       * 
* * RUNNING = 2; */ RUNNING(2), /** *
       * Cluster 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.postgresql.v1.ClusterOuterClass.Cluster.getDescriptor().getEnumTypes().get(2); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.Cluster.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the PostgreSQL cluster.
     * This ID is assigned by MDB 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 PostgreSQL cluster.
     * This ID is assigned by MDB 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 PostgreSQL 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 PostgreSQL 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_; /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .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_; } /** *
     * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
     * 
* * .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 PostgreSQL cluster.
     * The name is unique within the folder. 1-63 characters long.
     * 
* * string name = 4; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the PostgreSQL cluster.
     * The name is unique within the folder. 1-63 characters long.
     * 
* * string name = 4; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** *
     * Description of the PostgreSQL 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 PostgreSQL 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.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Custom labels for the PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Environment environment = 7; * @return The enum numeric value on the wire for environment. */ @java.lang.Override public int getEnvironmentValue() { return environment_; } /** *
     * Deployment environment of the PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Environment environment = 7; * @return The environment. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment getEnvironment() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result; } public static final int MONITORING_FIELD_NUMBER = 8; private java.util.List monitoring_; /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ @java.lang.Override public java.util.List getMonitoringList() { return monitoring_; } /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ @java.lang.Override public java.util.List getMonitoringOrBuilderList() { return monitoring_; } /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ @java.lang.Override public int getMonitoringCount() { return monitoring_.size(); } /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring getMonitoring(int index) { return monitoring_.get(index); } /** *
     * Description of monitoring systems relevant to the PostgreSQL cluster.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder( int index) { return monitoring_.get(index); } public static final int CONFIG_FIELD_NUMBER = 9; private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig config_; /** *
     * Configuration of the PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; * @return Whether the config field is set. */ @java.lang.Override public boolean hasConfig() { return config_ != null; } /** *
     * Configuration of the PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; * @return The config. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig getConfig() { return config_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_; } /** *
     * Configuration of the PostgreSQL cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Cluster.Health health = 11; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
     * Aggregated cluster health.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Health health = 11; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health.UNRECOGNIZED : result; } public static final int STATUS_FIELD_NUMBER = 12; private int status_; /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Status status = 12; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Current state of the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Status status = 12; * @return The status. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status.valueOf(status_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status.UNRECOGNIZED : result; } public static final int MAINTENANCE_WINDOW_FIELD_NUMBER = 13; private yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow maintenanceWindow_; /** *
     * Maintenance window for the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; * @return Whether the maintenanceWindow field is set. */ @java.lang.Override public boolean hasMaintenanceWindow() { return maintenanceWindow_ != null; } /** *
     * Maintenance window for the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; * @return The maintenanceWindow. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow getMaintenanceWindow() { return maintenanceWindow_ == null ? yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_; } /** *
     * Maintenance window for the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder() { return getMaintenanceWindow(); } public static final int PLANNED_OPERATION_FIELD_NUMBER = 14; private yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation plannedOperation_; /** *
     * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; * @return Whether the plannedOperation field is set. */ @java.lang.Override public boolean hasPlannedOperation() { return plannedOperation_ != null; } /** *
     * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; * @return The plannedOperation. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation getPlannedOperation() { return plannedOperation_ == null ? yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.getDefaultInstance() : plannedOperation_; } /** *
     * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
     * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperationOrBuilder getPlannedOperationOrBuilder() { return getPlannedOperation(); } public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 15; private com.google.protobuf.LazyStringList securityGroupIds_; /** *
     * User security groups
     * 
* * repeated string security_group_ids = 15; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_; } /** *
     * User security groups
     * 
* * repeated string security_group_ids = 15; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
     * User security groups
     * 
* * repeated string security_group_ids = 15; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
     * User security groups
     * 
* * repeated string security_group_ids = 15; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } public static final int DELETION_PROTECTION_FIELD_NUMBER = 16; private boolean deletionProtection_; /** *
     * Deletion Protection inhibits deletion of the cluster
     * 
* * bool deletion_protection = 16; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } public static final int HOST_GROUP_IDS_FIELD_NUMBER = 17; private com.google.protobuf.LazyStringList hostGroupIds_; /** *
     * Host groups hosting VMs of the cluster.
     * 
* * repeated string host_group_ids = 17; * @return A list containing the hostGroupIds. */ public com.google.protobuf.ProtocolStringList getHostGroupIdsList() { return hostGroupIds_; } /** *
     * Host groups hosting VMs of the cluster.
     * 
* * repeated string host_group_ids = 17; * @return The count of hostGroupIds. */ public int getHostGroupIdsCount() { return hostGroupIds_.size(); } /** *
     * Host groups hosting VMs of the cluster.
     * 
* * repeated string host_group_ids = 17; * @param index The index of the element to return. * @return The hostGroupIds at the given index. */ public java.lang.String getHostGroupIds(int index) { return hostGroupIds_.get(index); } /** *
     * Host groups hosting VMs of the cluster.
     * 
* * repeated string host_group_ids = 17; * @param index The index of the value to return. * @return The bytes of the hostGroupIds at the given index. */ public com.google.protobuf.ByteString getHostGroupIdsBytes(int index) { return hostGroupIds_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 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.postgresql.v1.ClusterOuterClass.Cluster.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(7, environment_); } for (int i = 0; i < monitoring_.size(); i++) { output.writeMessage(8, monitoring_.get(i)); } if (config_ != null) { output.writeMessage(9, getConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, networkId_); } if (health_ != yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health.HEALTH_UNKNOWN.getNumber()) { output.writeEnum(11, health_); } if (status_ != yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status.STATUS_UNKNOWN.getNumber()) { output.writeEnum(12, status_); } if (maintenanceWindow_ != null) { output.writeMessage(13, getMaintenanceWindow()); } if (plannedOperation_ != null) { output.writeMessage(14, getPlannedOperation()); } for (int i = 0; i < securityGroupIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, securityGroupIds_.getRaw(i)); } if (deletionProtection_ != false) { output.writeBool(16, deletionProtection_); } for (int i = 0; i < hostGroupIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, hostGroupIds_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } 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.postgresql.v1.ClusterOuterClass.Cluster.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, environment_); } for (int i = 0; i < monitoring_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, monitoring_.get(i)); } if (config_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, networkId_); } if (health_ != yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health.HEALTH_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, health_); } if (status_ != yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status.STATUS_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, status_); } if (maintenanceWindow_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getMaintenanceWindow()); } if (plannedOperation_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getPlannedOperation()); } { int dataSize = 0; for (int i = 0; i < securityGroupIds_.size(); i++) { dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i)); } size += dataSize; size += 1 * getSecurityGroupIdsList().size(); } if (deletionProtection_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, deletionProtection_); } { int dataSize = 0; for (int i = 0; i < hostGroupIds_.size(); i++) { dataSize += computeStringSizeNoTag(hostGroupIds_.getRaw(i)); } size += dataSize; size += 2 * getHostGroupIdsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster other = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (environment_ != other.environment_) return false; if (!getMonitoringList() .equals(other.getMonitoringList())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { if (!getConfig() .equals(other.getConfig())) return false; } if (!getNetworkId() .equals(other.getNetworkId())) return false; if (health_ != other.health_) return false; if (status_ != other.status_) return false; if (hasMaintenanceWindow() != other.hasMaintenanceWindow()) return false; if (hasMaintenanceWindow()) { if (!getMaintenanceWindow() .equals(other.getMaintenanceWindow())) return false; } if (hasPlannedOperation() != other.hasPlannedOperation()) return false; if (hasPlannedOperation()) { if (!getPlannedOperation() .equals(other.getPlannedOperation())) return false; } if (!getSecurityGroupIdsList() .equals(other.getSecurityGroupIdsList())) return false; if (getDeletionProtection() != other.getDeletionProtection()) return false; if (!getHostGroupIdsList() .equals(other.getHostGroupIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + environment_; if (getMonitoringCount() > 0) { hash = (37 * hash) + MONITORING_FIELD_NUMBER; hash = (53 * hash) + getMonitoringList().hashCode(); } if (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getNetworkId().hashCode(); hash = (37 * hash) + HEALTH_FIELD_NUMBER; hash = (53 * hash) + health_; hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (hasMaintenanceWindow()) { hash = (37 * hash) + MAINTENANCE_WINDOW_FIELD_NUMBER; hash = (53 * hash) + getMaintenanceWindow().hashCode(); } if (hasPlannedOperation()) { hash = (37 * hash) + PLANNED_OPERATION_FIELD_NUMBER; hash = (53 * hash) + getPlannedOperation().hashCode(); } if (getSecurityGroupIdsCount() > 0) { hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER; hash = (53 * hash) + getSecurityGroupIdsList().hashCode(); } hash = (37 * hash) + DELETION_PROTECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeletionProtection()); if (getHostGroupIdsCount() > 0) { hash = (37 * hash) + HOST_GROUP_IDS_FIELD_NUMBER; hash = (53 * hash) + getHostGroupIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A PostgreSQL Cluster resource. For more information, see
     * the [Concepts](/docs/managed-postgresql/concepts) section of the documentation.
     * 
* * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Cluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.Cluster) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMonitoringFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; folderId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); environment_ = 0; if (monitoringBuilder_ == null) { monitoring_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { monitoringBuilder_.clear(); } if (configBuilder_ == null) { config_ = null; } else { config_ = null; configBuilder_ = null; } networkId_ = ""; health_ = 0; status_ = 0; if (maintenanceWindowBuilder_ == null) { maintenanceWindow_ = null; } else { maintenanceWindow_ = null; maintenanceWindowBuilder_ = null; } if (plannedOperationBuilder_ == null) { plannedOperation_ = null; } else { plannedOperation_ = null; plannedOperationBuilder_ = null; } securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); deletionProtection_ = false; hostGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster result = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.environment_ = environment_; if (monitoringBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { monitoring_ = java.util.Collections.unmodifiableList(monitoring_); bitField0_ = (bitField0_ & ~0x00000002); } result.monitoring_ = monitoring_; } else { result.monitoring_ = monitoringBuilder_.build(); } if (configBuilder_ == null) { result.config_ = config_; } else { result.config_ = configBuilder_.build(); } result.networkId_ = networkId_; result.health_ = health_; result.status_ = status_; if (maintenanceWindowBuilder_ == null) { result.maintenanceWindow_ = maintenanceWindow_; } else { result.maintenanceWindow_ = maintenanceWindowBuilder_.build(); } if (plannedOperationBuilder_ == null) { result.plannedOperation_ = plannedOperation_; } else { result.plannedOperation_ = plannedOperationBuilder_.build(); } if (((bitField0_ & 0x00000004) != 0)) { securityGroupIds_ = securityGroupIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.securityGroupIds_ = securityGroupIds_; result.deletionProtection_ = deletionProtection_; if (((bitField0_ & 0x00000008) != 0)) { hostGroupIds_ = hostGroupIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.hostGroupIds_ = hostGroupIds_; 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.postgresql.v1.ClusterOuterClass.Cluster) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster other) { if (other == yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.environment_ != 0) { setEnvironmentValue(other.getEnvironmentValue()); } if (monitoringBuilder_ == null) { if (!other.monitoring_.isEmpty()) { if (monitoring_.isEmpty()) { monitoring_ = other.monitoring_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMonitoringIsMutable(); monitoring_.addAll(other.monitoring_); } onChanged(); } } else { if (!other.monitoring_.isEmpty()) { if (monitoringBuilder_.isEmpty()) { monitoringBuilder_.dispose(); monitoringBuilder_ = null; monitoring_ = other.monitoring_; bitField0_ = (bitField0_ & ~0x00000002); monitoringBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMonitoringFieldBuilder() : null; } else { monitoringBuilder_.addAllMessages(other.monitoring_); } } } if (other.hasConfig()) { mergeConfig(other.getConfig()); } if (!other.getNetworkId().isEmpty()) { networkId_ = other.networkId_; onChanged(); } if (other.health_ != 0) { setHealthValue(other.getHealthValue()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (other.hasMaintenanceWindow()) { mergeMaintenanceWindow(other.getMaintenanceWindow()); } if (other.hasPlannedOperation()) { mergePlannedOperation(other.getPlannedOperation()); } if (!other.securityGroupIds_.isEmpty()) { if (securityGroupIds_.isEmpty()) { securityGroupIds_ = other.securityGroupIds_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSecurityGroupIdsIsMutable(); securityGroupIds_.addAll(other.securityGroupIds_); } onChanged(); } if (other.getDeletionProtection() != false) { setDeletionProtection(other.getDeletionProtection()); } if (!other.hostGroupIds_.isEmpty()) { if (hostGroupIds_.isEmpty()) { hostGroupIds_ = other.hostGroupIds_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureHostGroupIdsIsMutable(); hostGroupIds_.addAll(other.hostGroupIds_); } 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.postgresql.v1.ClusterOuterClass.Cluster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the PostgreSQL cluster.
       * This ID is assigned by MDB 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 PostgreSQL cluster.
       * This ID is assigned by MDB 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 PostgreSQL cluster.
       * This ID is assigned by MDB 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 PostgreSQL cluster.
       * This ID is assigned by MDB at creation time.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the PostgreSQL cluster.
       * This ID is assigned by MDB 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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_; /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .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(); } } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .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; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .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; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .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; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .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_; } } /** *
       * Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
       * 
* * .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 PostgreSQL cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the PostgreSQL cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the PostgreSQL cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the PostgreSQL cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the PostgreSQL cluster.
       * The name is unique within the folder. 1-63 characters long.
       * 
* * string name = 4; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Environment environment = 7; * @return The enum numeric value on the wire for environment. */ @java.lang.Override public int getEnvironmentValue() { return environment_; } /** *
       * Deployment environment of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Environment environment = 7; * @param value The enum numeric value on the wire for environment to set. * @return This builder for chaining. */ public Builder setEnvironmentValue(int value) { environment_ = value; onChanged(); return this; } /** *
       * Deployment environment of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Environment environment = 7; * @return The environment. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment getEnvironment() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result; } /** *
       * Deployment environment of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Environment environment = 7; * @param value The environment to set. * @return This builder for chaining. */ public Builder setEnvironment(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Environment value) { if (value == null) { throw new NullPointerException(); } environment_ = value.getNumber(); onChanged(); return this; } /** *
       * Deployment environment of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Environment environment = 7; * @return This builder for chaining. */ public Builder clearEnvironment() { environment_ = 0; onChanged(); return this; } private java.util.List monitoring_ = java.util.Collections.emptyList(); private void ensureMonitoringIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { monitoring_ = new java.util.ArrayList(monitoring_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.MonitoringOrBuilder> monitoringBuilder_; /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public java.util.List getMonitoringList() { if (monitoringBuilder_ == null) { return java.util.Collections.unmodifiableList(monitoring_); } else { return monitoringBuilder_.getMessageList(); } } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public int getMonitoringCount() { if (monitoringBuilder_ == null) { return monitoring_.size(); } else { return monitoringBuilder_.getCount(); } } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring getMonitoring(int index) { if (monitoringBuilder_ == null) { return monitoring_.get(index); } else { return monitoringBuilder_.getMessage(index); } } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public Builder setMonitoring( int index, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring value) { if (monitoringBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonitoringIsMutable(); monitoring_.set(index, value); onChanged(); } else { monitoringBuilder_.setMessage(index, value); } return this; } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public Builder setMonitoring( int index, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder builderForValue) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); monitoring_.set(index, builderForValue.build()); onChanged(); } else { monitoringBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public Builder addMonitoring(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring value) { if (monitoringBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonitoringIsMutable(); monitoring_.add(value); onChanged(); } else { monitoringBuilder_.addMessage(value); } return this; } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public Builder addMonitoring( int index, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring value) { if (monitoringBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMonitoringIsMutable(); monitoring_.add(index, value); onChanged(); } else { monitoringBuilder_.addMessage(index, value); } return this; } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public Builder addMonitoring( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder builderForValue) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); monitoring_.add(builderForValue.build()); onChanged(); } else { monitoringBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public Builder addMonitoring( int index, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder builderForValue) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); monitoring_.add(index, builderForValue.build()); onChanged(); } else { monitoringBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public Builder addAllMonitoring( java.lang.Iterable values) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, monitoring_); onChanged(); } else { monitoringBuilder_.addAllMessages(values); } return this; } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public Builder clearMonitoring() { if (monitoringBuilder_ == null) { monitoring_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { monitoringBuilder_.clear(); } return this; } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public Builder removeMonitoring(int index) { if (monitoringBuilder_ == null) { ensureMonitoringIsMutable(); monitoring_.remove(index); onChanged(); } else { monitoringBuilder_.remove(index); } return this; } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder getMonitoringBuilder( int index) { return getMonitoringFieldBuilder().getBuilder(index); } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.MonitoringOrBuilder getMonitoringOrBuilder( int index) { if (monitoringBuilder_ == null) { return monitoring_.get(index); } else { return monitoringBuilder_.getMessageOrBuilder(index); } } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public java.util.List getMonitoringOrBuilderList() { if (monitoringBuilder_ != null) { return monitoringBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(monitoring_); } } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder addMonitoringBuilder() { return getMonitoringFieldBuilder().addBuilder( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.getDefaultInstance()); } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder addMonitoringBuilder( int index) { return getMonitoringFieldBuilder().addBuilder( index, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.getDefaultInstance()); } /** *
       * Description of monitoring systems relevant to the PostgreSQL cluster.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Monitoring monitoring = 8; */ public java.util.List getMonitoringBuilderList() { return getMonitoringFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.MonitoringOrBuilder> getMonitoringFieldBuilder() { if (monitoringBuilder_ == null) { monitoringBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.MonitoringOrBuilder>( monitoring_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); monitoring_ = null; } return monitoringBuilder_; } private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig config_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfigOrBuilder> configBuilder_; /** *
       * Configuration of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** *
       * Configuration of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; * @return The config. */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig getConfig() { if (configBuilder_ == null) { return config_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
       * Configuration of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; */ public Builder setConfig(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } return this; } /** *
       * Configuration of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; */ public Builder setConfig( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; */ public Builder mergeConfig(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { config_ = null; configBuilder_ = null; } return this; } /** *
       * Configuration of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.Builder getConfigBuilder() { onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
       * Configuration of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance() : config_; } } /** *
       * Configuration of the PostgreSQL cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ClusterConfig config = 9; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.Builder, yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Cluster.Health health = 11; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Health health = 11; * @param value The enum numeric value on the wire for health to set. * @return This builder for chaining. */ public Builder setHealthValue(int value) { health_ = value; onChanged(); return this; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Health health = 11; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health.UNRECOGNIZED : result; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Health health = 11; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Health value) { if (value == null) { throw new NullPointerException(); } health_ = value.getNumber(); onChanged(); return this; } /** *
       * Aggregated cluster health.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Health health = 11; * @return This builder for chaining. */ public Builder clearHealth() { health_ = 0; onChanged(); return this; } private int status_ = 0; /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Status status = 12; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Status status = 12; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Status status = 12; * @return The status. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status.valueOf(status_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status.UNRECOGNIZED : result; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Status status = 12; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Current state of the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Cluster.Status status = 12; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow maintenanceWindow_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindowOrBuilder> maintenanceWindowBuilder_; /** *
       * Maintenance window for the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; * @return Whether the maintenanceWindow field is set. */ public boolean hasMaintenanceWindow() { return maintenanceWindowBuilder_ != null || maintenanceWindow_ != null; } /** *
       * Maintenance window for the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; * @return The maintenanceWindow. */ public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow getMaintenanceWindow() { if (maintenanceWindowBuilder_ == null) { return maintenanceWindow_ == null ? yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_; } else { return maintenanceWindowBuilder_.getMessage(); } } /** *
       * Maintenance window for the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; */ public Builder setMaintenanceWindow(yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow value) { if (maintenanceWindowBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maintenanceWindow_ = value; onChanged(); } else { maintenanceWindowBuilder_.setMessage(value); } return this; } /** *
       * Maintenance window for the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; */ public Builder setMaintenanceWindow( yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.Builder builderForValue) { if (maintenanceWindowBuilder_ == null) { maintenanceWindow_ = builderForValue.build(); onChanged(); } else { maintenanceWindowBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Maintenance window for the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; */ public Builder mergeMaintenanceWindow(yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow value) { if (maintenanceWindowBuilder_ == null) { if (maintenanceWindow_ != null) { maintenanceWindow_ = yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.newBuilder(maintenanceWindow_).mergeFrom(value).buildPartial(); } else { maintenanceWindow_ = value; } onChanged(); } else { maintenanceWindowBuilder_.mergeFrom(value); } return this; } /** *
       * Maintenance window for the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; */ public Builder clearMaintenanceWindow() { if (maintenanceWindowBuilder_ == null) { maintenanceWindow_ = null; onChanged(); } else { maintenanceWindow_ = null; maintenanceWindowBuilder_ = null; } return this; } /** *
       * Maintenance window for the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; */ public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.Builder getMaintenanceWindowBuilder() { onChanged(); return getMaintenanceWindowFieldBuilder().getBuilder(); } /** *
       * Maintenance window for the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; */ public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder() { if (maintenanceWindowBuilder_ != null) { return maintenanceWindowBuilder_.getMessageOrBuilder(); } else { return maintenanceWindow_ == null ? yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.getDefaultInstance() : maintenanceWindow_; } } /** *
       * Maintenance window for the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceWindow maintenance_window = 13; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindowOrBuilder> getMaintenanceWindowFieldBuilder() { if (maintenanceWindowBuilder_ == null) { maintenanceWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindow.Builder, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceWindowOrBuilder>( getMaintenanceWindow(), getParentForChildren(), isClean()); maintenanceWindow_ = null; } return maintenanceWindowBuilder_; } private yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation plannedOperation_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.Builder, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperationOrBuilder> plannedOperationBuilder_; /** *
       * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; * @return Whether the plannedOperation field is set. */ public boolean hasPlannedOperation() { return plannedOperationBuilder_ != null || plannedOperation_ != null; } /** *
       * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; * @return The plannedOperation. */ public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation getPlannedOperation() { if (plannedOperationBuilder_ == null) { return plannedOperation_ == null ? yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.getDefaultInstance() : plannedOperation_; } else { return plannedOperationBuilder_.getMessage(); } } /** *
       * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; */ public Builder setPlannedOperation(yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation value) { if (plannedOperationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } plannedOperation_ = value; onChanged(); } else { plannedOperationBuilder_.setMessage(value); } return this; } /** *
       * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; */ public Builder setPlannedOperation( yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.Builder builderForValue) { if (plannedOperationBuilder_ == null) { plannedOperation_ = builderForValue.build(); onChanged(); } else { plannedOperationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; */ public Builder mergePlannedOperation(yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation value) { if (plannedOperationBuilder_ == null) { if (plannedOperation_ != null) { plannedOperation_ = yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.newBuilder(plannedOperation_).mergeFrom(value).buildPartial(); } else { plannedOperation_ = value; } onChanged(); } else { plannedOperationBuilder_.mergeFrom(value); } return this; } /** *
       * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; */ public Builder clearPlannedOperation() { if (plannedOperationBuilder_ == null) { plannedOperation_ = null; onChanged(); } else { plannedOperation_ = null; plannedOperationBuilder_ = null; } return this; } /** *
       * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; */ public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.Builder getPlannedOperationBuilder() { onChanged(); return getPlannedOperationFieldBuilder().getBuilder(); } /** *
       * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; */ public yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperationOrBuilder getPlannedOperationOrBuilder() { if (plannedOperationBuilder_ != null) { return plannedOperationBuilder_.getMessageOrBuilder(); } else { return plannedOperation_ == null ? yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.getDefaultInstance() : plannedOperation_; } } /** *
       * Planned maintenance operation to be started for the cluster within the nearest [maintenance_window].
       * 
* * .yandex.cloud.mdb.postgresql.v1.MaintenanceOperation planned_operation = 14; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.Builder, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperationOrBuilder> getPlannedOperationFieldBuilder() { if (plannedOperationBuilder_ == null) { plannedOperationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperation.Builder, yandex.cloud.api.mdb.postgresql.v1.Maintenance.MaintenanceOperationOrBuilder>( getPlannedOperation(), getParentForChildren(), isClean()); plannedOperation_ = null; } return plannedOperationBuilder_; } private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSecurityGroupIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_); bitField0_ |= 0x00000004; } } /** *
       * User security groups
       * 
* * repeated string security_group_ids = 15; * @return A list containing the securityGroupIds. */ public com.google.protobuf.ProtocolStringList getSecurityGroupIdsList() { return securityGroupIds_.getUnmodifiableView(); } /** *
       * User security groups
       * 
* * repeated string security_group_ids = 15; * @return The count of securityGroupIds. */ public int getSecurityGroupIdsCount() { return securityGroupIds_.size(); } /** *
       * User security groups
       * 
* * repeated string security_group_ids = 15; * @param index The index of the element to return. * @return The securityGroupIds at the given index. */ public java.lang.String getSecurityGroupIds(int index) { return securityGroupIds_.get(index); } /** *
       * User security groups
       * 
* * repeated string security_group_ids = 15; * @param index The index of the value to return. * @return The bytes of the securityGroupIds at the given index. */ public com.google.protobuf.ByteString getSecurityGroupIdsBytes(int index) { return securityGroupIds_.getByteString(index); } /** *
       * User security groups
       * 
* * repeated string security_group_ids = 15; * @param index The index to set the value at. * @param value The securityGroupIds to set. * @return This builder for chaining. */ public Builder setSecurityGroupIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.set(index, value); onChanged(); return this; } /** *
       * User security groups
       * 
* * repeated string security_group_ids = 15; * @param value The securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } /** *
       * User security groups
       * 
* * repeated string security_group_ids = 15; * @param values The securityGroupIds to add. * @return This builder for chaining. */ public Builder addAllSecurityGroupIds( java.lang.Iterable values) { ensureSecurityGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, securityGroupIds_); onChanged(); return this; } /** *
       * User security groups
       * 
* * repeated string security_group_ids = 15; * @return This builder for chaining. */ public Builder clearSecurityGroupIds() { securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * User security groups
       * 
* * repeated string security_group_ids = 15; * @param value The bytes of the securityGroupIds to add. * @return This builder for chaining. */ public Builder addSecurityGroupIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSecurityGroupIdsIsMutable(); securityGroupIds_.add(value); onChanged(); return this; } private boolean deletionProtection_ ; /** *
       * Deletion Protection inhibits deletion of the cluster
       * 
* * bool deletion_protection = 16; * @return The deletionProtection. */ @java.lang.Override public boolean getDeletionProtection() { return deletionProtection_; } /** *
       * Deletion Protection inhibits deletion of the cluster
       * 
* * bool deletion_protection = 16; * @param value The deletionProtection to set. * @return This builder for chaining. */ public Builder setDeletionProtection(boolean value) { deletionProtection_ = value; onChanged(); return this; } /** *
       * Deletion Protection inhibits deletion of the cluster
       * 
* * bool deletion_protection = 16; * @return This builder for chaining. */ public Builder clearDeletionProtection() { deletionProtection_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList hostGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureHostGroupIdsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { hostGroupIds_ = new com.google.protobuf.LazyStringArrayList(hostGroupIds_); bitField0_ |= 0x00000008; } } /** *
       * Host groups hosting VMs of the cluster.
       * 
* * repeated string host_group_ids = 17; * @return A list containing the hostGroupIds. */ public com.google.protobuf.ProtocolStringList getHostGroupIdsList() { return hostGroupIds_.getUnmodifiableView(); } /** *
       * Host groups hosting VMs of the cluster.
       * 
* * repeated string host_group_ids = 17; * @return The count of hostGroupIds. */ public int getHostGroupIdsCount() { return hostGroupIds_.size(); } /** *
       * Host groups hosting VMs of the cluster.
       * 
* * repeated string host_group_ids = 17; * @param index The index of the element to return. * @return The hostGroupIds at the given index. */ public java.lang.String getHostGroupIds(int index) { return hostGroupIds_.get(index); } /** *
       * Host groups hosting VMs of the cluster.
       * 
* * repeated string host_group_ids = 17; * @param index The index of the value to return. * @return The bytes of the hostGroupIds at the given index. */ public com.google.protobuf.ByteString getHostGroupIdsBytes(int index) { return hostGroupIds_.getByteString(index); } /** *
       * Host groups hosting VMs of the cluster.
       * 
* * repeated string host_group_ids = 17; * @param index The index to set the value at. * @param value The hostGroupIds to set. * @return This builder for chaining. */ public Builder setHostGroupIds( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureHostGroupIdsIsMutable(); hostGroupIds_.set(index, value); onChanged(); return this; } /** *
       * Host groups hosting VMs of the cluster.
       * 
* * repeated string host_group_ids = 17; * @param value The hostGroupIds to add. * @return This builder for chaining. */ public Builder addHostGroupIds( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureHostGroupIdsIsMutable(); hostGroupIds_.add(value); onChanged(); return this; } /** *
       * Host groups hosting VMs of the cluster.
       * 
* * repeated string host_group_ids = 17; * @param values The hostGroupIds to add. * @return This builder for chaining. */ public Builder addAllHostGroupIds( java.lang.Iterable values) { ensureHostGroupIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hostGroupIds_); onChanged(); return this; } /** *
       * Host groups hosting VMs of the cluster.
       * 
* * repeated string host_group_ids = 17; * @return This builder for chaining. */ public Builder clearHostGroupIds() { hostGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * Host groups hosting VMs of the cluster.
       * 
* * repeated string host_group_ids = 17; * @param value The bytes of the hostGroupIds to add. * @return This builder for chaining. */ public Builder addHostGroupIdsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureHostGroupIdsIsMutable(); hostGroupIds_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.postgresql.v1.Cluster) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.Cluster) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster(); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Cluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Cluster(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Cluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MonitoringOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.Monitoring) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the monitoring system.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the monitoring system.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the monitoring system.
     * 
* * string description = 2; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the monitoring system.
     * 
* * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Link to the monitoring system charts for the PostgreSQL cluster.
     * 
* * string link = 3; * @return The link. */ java.lang.String getLink(); /** *
     * Link to the monitoring system charts for the PostgreSQL cluster.
     * 
* * string link = 3; * @return The bytes for link. */ com.google.protobuf.ByteString getLinkBytes(); } /** *
   * Monitoring system.
   * 
* * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Monitoring} */ public static final class Monitoring extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.Monitoring) MonitoringOrBuilder { private static final long serialVersionUID = 0L; // Use Monitoring.newBuilder() to construct. private Monitoring(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Monitoring() { name_ = ""; description_ = ""; link_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Monitoring(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Monitoring( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); link_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the monitoring system.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the monitoring system.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** *
     * Description of the monitoring system.
     * 
* * string description = 2; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Description of the monitoring system.
     * 
* * string description = 2; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LINK_FIELD_NUMBER = 3; private volatile java.lang.Object link_; /** *
     * Link to the monitoring system charts for the PostgreSQL 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 PostgreSQL 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.postgresql.v1.ClusterOuterClass.Monitoring)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring other = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring) obj; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getLink() .equals(other.getLink())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + LINK_FIELD_NUMBER; hash = (53 * hash) + getLink().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Monitoring system.
     * 
* * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Monitoring} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.Monitoring) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.MonitoringOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; description_ = ""; link_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring result = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring(this); result.name_ = name_; result.description_ = description_; result.link_ = link_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring other) { if (other == yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getLink().isEmpty()) { link_ = other.link_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the monitoring system.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the monitoring system.
       * 
* * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object link_ = ""; /** *
       * Link to the monitoring system charts for the PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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.postgresql.v1.Monitoring) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.Monitoring) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring(); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Monitoring parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Monitoring(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Monitoring getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ClusterConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.ClusterConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Version of PostgreSQL server software.
     * 
* * string version = 1; * @return The version. */ java.lang.String getVersion(); /** *
     * Version of PostgreSQL server software.
     * 
* * string version = 1; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * Configuration of a PostgreSQL 9.6 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; * @return Whether the postgresqlConfig96 field is set. */ boolean hasPostgresqlConfig96(); /** *
     * Configuration of a PostgreSQL 9.6 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; * @return The postgresqlConfig96. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6 getPostgresqlConfig96(); /** *
     * Configuration of a PostgreSQL 9.6 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6OrBuilder getPostgresqlConfig96OrBuilder(); /** *
     * Configuration of a PostgreSQL 10 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; * @return Whether the postgresqlConfig101c field is set. */ boolean hasPostgresqlConfig101C(); /** *
     * Configuration of a PostgreSQL 10 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; * @return The postgresqlConfig101c. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C getPostgresqlConfig101C(); /** *
     * Configuration of a PostgreSQL 10 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1COrBuilder getPostgresqlConfig101COrBuilder(); /** *
     * Configuration of a PostgreSQL 10 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; * @return Whether the postgresqlConfig10 field is set. */ boolean hasPostgresqlConfig10(); /** *
     * Configuration of a PostgreSQL 10 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; * @return The postgresqlConfig10. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10 getPostgresqlConfig10(); /** *
     * Configuration of a PostgreSQL 10 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10OrBuilder getPostgresqlConfig10OrBuilder(); /** *
     * Configuration of a PostgreSQL 11 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; * @return Whether the postgresqlConfig11 field is set. */ boolean hasPostgresqlConfig11(); /** *
     * Configuration of a PostgreSQL 11 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; * @return The postgresqlConfig11. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11 getPostgresqlConfig11(); /** *
     * Configuration of a PostgreSQL 11 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11OrBuilder getPostgresqlConfig11OrBuilder(); /** *
     * Configuration of a PostgreSQL 11 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; * @return Whether the postgresqlConfig111c field is set. */ boolean hasPostgresqlConfig111C(); /** *
     * Configuration of a PostgreSQL 11 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; * @return The postgresqlConfig111c. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C getPostgresqlConfig111C(); /** *
     * Configuration of a PostgreSQL 11 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1COrBuilder getPostgresqlConfig111COrBuilder(); /** *
     * Configuration of a PostgreSQL 12 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; * @return Whether the postgresqlConfig12 field is set. */ boolean hasPostgresqlConfig12(); /** *
     * Configuration of a PostgreSQL 12 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; * @return The postgresqlConfig12. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12 getPostgresqlConfig12(); /** *
     * Configuration of a PostgreSQL 12 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12OrBuilder getPostgresqlConfig12OrBuilder(); /** *
     * Configuration of a PostgreSQL 12 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; * @return Whether the postgresqlConfig121c field is set. */ boolean hasPostgresqlConfig121C(); /** *
     * Configuration of a PostgreSQL 12 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; * @return The postgresqlConfig121c. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C getPostgresqlConfig121C(); /** *
     * Configuration of a PostgreSQL 12 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1COrBuilder getPostgresqlConfig121COrBuilder(); /** *
     * Configuration of a PostgreSQL 13 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; * @return Whether the postgresqlConfig13 field is set. */ boolean hasPostgresqlConfig13(); /** *
     * Configuration of a PostgreSQL 13 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; * @return The postgresqlConfig13. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13 getPostgresqlConfig13(); /** *
     * Configuration of a PostgreSQL 13 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13OrBuilder getPostgresqlConfig13OrBuilder(); /** *
     * Configuration of a PostgreSQL 13 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; * @return Whether the postgresqlConfig131c field is set. */ boolean hasPostgresqlConfig131C(); /** *
     * Configuration of a PostgreSQL 13 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; * @return The postgresqlConfig131c. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C getPostgresqlConfig131C(); /** *
     * Configuration of a PostgreSQL 13 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1COrBuilder getPostgresqlConfig131COrBuilder(); /** *
     * Configuration of a PostgreSQL 14 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; * @return Whether the postgresqlConfig14 field is set. */ boolean hasPostgresqlConfig14(); /** *
     * Configuration of a PostgreSQL 14 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; * @return The postgresqlConfig14. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14 getPostgresqlConfig14(); /** *
     * Configuration of a PostgreSQL 14 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14OrBuilder getPostgresqlConfig14OrBuilder(); /** *
     * Configuration of a PostgreSQL 14 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; * @return Whether the postgresqlConfig141c field is set. */ boolean hasPostgresqlConfig141C(); /** *
     * Configuration of a PostgreSQL 14 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; * @return The postgresqlConfig141c. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C getPostgresqlConfig141C(); /** *
     * Configuration of a PostgreSQL 14 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1COrBuilder getPostgresqlConfig141COrBuilder(); /** *
     * Configuration of a PostgreSQL 15 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; * @return Whether the postgresqlConfig15 field is set. */ boolean hasPostgresqlConfig15(); /** *
     * Configuration of a PostgreSQL 15 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; * @return The postgresqlConfig15. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15 getPostgresqlConfig15(); /** *
     * Configuration of a PostgreSQL 15 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15OrBuilder getPostgresqlConfig15OrBuilder(); /** *
     * Configuration of a PostgreSQL 15 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; * @return Whether the postgresqlConfig151c field is set. */ boolean hasPostgresqlConfig151C(); /** *
     * Configuration of a PostgreSQL 15 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; * @return The postgresqlConfig151c. */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C getPostgresqlConfig151C(); /** *
     * Configuration of a PostgreSQL 15 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1COrBuilder getPostgresqlConfig151COrBuilder(); /** *
     * Configuration of the connection pooler.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; * @return Whether the poolerConfig field is set. */ boolean hasPoolerConfig(); /** *
     * Configuration of the connection pooler.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; * @return The poolerConfig. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig getPoolerConfig(); /** *
     * Configuration of the connection pooler.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfigOrBuilder getPoolerConfigOrBuilder(); /** *
     * Resources allocated to PostgreSQL hosts.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; * @return Whether the resources field is set. */ boolean hasResources(); /** *
     * Resources allocated to PostgreSQL hosts.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; * @return The resources. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources getResources(); /** *
     * Resources allocated to PostgreSQL hosts.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder(); /** *
     * Configuration setting which enables/disables autofailover in cluster.
     * 
* * .google.protobuf.BoolValue autofailover = 6; * @return Whether the autofailover field is set. */ boolean hasAutofailover(); /** *
     * Configuration setting which enables/disables autofailover in cluster.
     * 
* * .google.protobuf.BoolValue autofailover = 6; * @return The autofailover. */ com.google.protobuf.BoolValue getAutofailover(); /** *
     * Configuration setting which enables/disables autofailover in cluster.
     * 
* * .google.protobuf.BoolValue autofailover = 6; */ com.google.protobuf.BoolValueOrBuilder getAutofailoverOrBuilder(); /** *
     * Time to start the daily backup, in the UTC timezone.
     * 
* * .google.type.TimeOfDay backup_window_start = 7; * @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 = 7; * @return The backupWindowStart. */ com.google.type.TimeOfDay getBackupWindowStart(); /** *
     * Time to start the daily backup, in the UTC timezone.
     * 
* * .google.type.TimeOfDay backup_window_start = 7; */ com.google.type.TimeOfDayOrBuilder getBackupWindowStartOrBuilder(); /** *
     * Retention policy of automated backups.
     * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; * @return Whether the backupRetainPeriodDays field is set. */ boolean hasBackupRetainPeriodDays(); /** *
     * Retention policy of automated backups.
     * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; * @return The backupRetainPeriodDays. */ com.google.protobuf.Int64Value getBackupRetainPeriodDays(); /** *
     * Retention policy of automated backups.
     * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; */ com.google.protobuf.Int64ValueOrBuilder getBackupRetainPeriodDaysOrBuilder(); /** *
     * Access policy to DB
     * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; * @return Whether the access field is set. */ boolean hasAccess(); /** *
     * Access policy to DB
     * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; * @return The access. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access getAccess(); /** *
     * Access policy to DB
     * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.AccessOrBuilder getAccessOrBuilder(); /** *
     * Configuration of the performance diagnostics service.
     * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; * @return Whether the performanceDiagnostics field is set. */ boolean hasPerformanceDiagnostics(); /** *
     * Configuration of the performance diagnostics service.
     * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; * @return The performanceDiagnostics. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics getPerformanceDiagnostics(); /** *
     * Configuration of the performance diagnostics service.
     * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnosticsOrBuilder getPerformanceDiagnosticsOrBuilder(); public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.PostgresqlConfigCase getPostgresqlConfigCase(); } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.ClusterConfig} */ public static final class ClusterConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.ClusterConfig) ClusterConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ClusterConfig.newBuilder() to construct. private ClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClusterConfig() { version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClusterConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClusterConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); version_ = s; break; } case 18: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.Builder subBuilder = null; if (postgresqlConfigCase_ == 2) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 2; break; } case 26: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.Builder subBuilder = null; if (postgresqlConfigCase_ == 3) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 3; break; } case 34: { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.Builder subBuilder = null; if (poolerConfig_ != null) { subBuilder = poolerConfig_.toBuilder(); } poolerConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(poolerConfig_); poolerConfig_ = subBuilder.buildPartial(); } break; } case 42: { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder subBuilder = null; if (resources_ != null) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (autofailover_ != null) { subBuilder = autofailover_.toBuilder(); } autofailover_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(autofailover_); autofailover_ = subBuilder.buildPartial(); } break; } case 58: { 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; } case 66: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.Builder subBuilder = null; if (postgresqlConfigCase_ == 8) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 8; break; } case 74: { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.Builder subBuilder = null; if (access_ != null) { subBuilder = access_.toBuilder(); } access_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(access_); access_ = subBuilder.buildPartial(); } break; } case 82: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 10) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 10; break; } case 90: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.Builder subBuilder = null; if (postgresqlConfigCase_ == 11) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 11; break; } case 98: { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.Builder subBuilder = null; if (performanceDiagnostics_ != null) { subBuilder = performanceDiagnostics_.toBuilder(); } performanceDiagnostics_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(performanceDiagnostics_); performanceDiagnostics_ = subBuilder.buildPartial(); } break; } case 106: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 13) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 13; break; } case 114: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 14) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 14; break; } case 122: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.Builder subBuilder = null; if (postgresqlConfigCase_ == 15) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 15; break; } case 130: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.Builder subBuilder = null; if (postgresqlConfigCase_ == 16) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 16; break; } case 138: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (backupRetainPeriodDays_ != null) { subBuilder = backupRetainPeriodDays_.toBuilder(); } backupRetainPeriodDays_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(backupRetainPeriodDays_); backupRetainPeriodDays_ = subBuilder.buildPartial(); } break; } case 146: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 18) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 18; break; } case 154: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 19) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 19; break; } case 170: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.Builder subBuilder = null; if (postgresqlConfigCase_ == 21) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 21; break; } case 178: { yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 22) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 22; 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.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.Builder.class); } private int postgresqlConfigCase_ = 0; private java.lang.Object postgresqlConfig_; public enum PostgresqlConfigCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { POSTGRESQL_CONFIG_9_6(2), POSTGRESQL_CONFIG_10_1C(10), POSTGRESQL_CONFIG_10(3), POSTGRESQL_CONFIG_11(8), POSTGRESQL_CONFIG_11_1C(13), POSTGRESQL_CONFIG_12(11), POSTGRESQL_CONFIG_12_1C(14), POSTGRESQL_CONFIG_13(15), POSTGRESQL_CONFIG_13_1C(18), POSTGRESQL_CONFIG_14(16), POSTGRESQL_CONFIG_14_1C(19), POSTGRESQL_CONFIG_15(21), POSTGRESQL_CONFIG_15_1C(22), POSTGRESQLCONFIG_NOT_SET(0); private final int value; private PostgresqlConfigCase(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 PostgresqlConfigCase valueOf(int value) { return forNumber(value); } public static PostgresqlConfigCase forNumber(int value) { switch (value) { case 2: return POSTGRESQL_CONFIG_9_6; case 10: return POSTGRESQL_CONFIG_10_1C; case 3: return POSTGRESQL_CONFIG_10; case 8: return POSTGRESQL_CONFIG_11; case 13: return POSTGRESQL_CONFIG_11_1C; case 11: return POSTGRESQL_CONFIG_12; case 14: return POSTGRESQL_CONFIG_12_1C; case 15: return POSTGRESQL_CONFIG_13; case 18: return POSTGRESQL_CONFIG_13_1C; case 16: return POSTGRESQL_CONFIG_14; case 19: return POSTGRESQL_CONFIG_14_1C; case 21: return POSTGRESQL_CONFIG_15; case 22: return POSTGRESQL_CONFIG_15_1C; case 0: return POSTGRESQLCONFIG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PostgresqlConfigCase getPostgresqlConfigCase() { return PostgresqlConfigCase.forNumber( postgresqlConfigCase_); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** *
     * Version of PostgreSQL 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 PostgreSQL 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 POSTGRESQL_CONFIG_9_6_FIELD_NUMBER = 2; /** *
     * Configuration of a PostgreSQL 9.6 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; * @return Whether the postgresqlConfig96 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig96() { return postgresqlConfigCase_ == 2; } /** *
     * Configuration of a PostgreSQL 9.6 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; * @return The postgresqlConfig96. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6 getPostgresqlConfig96() { if (postgresqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 9.6 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6OrBuilder getPostgresqlConfig96OrBuilder() { if (postgresqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_10_1C_FIELD_NUMBER = 10; /** *
     * Configuration of a PostgreSQL 10 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; * @return Whether the postgresqlConfig101c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig101C() { return postgresqlConfigCase_ == 10; } /** *
     * Configuration of a PostgreSQL 10 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; * @return The postgresqlConfig101c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C getPostgresqlConfig101C() { if (postgresqlConfigCase_ == 10) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 10 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1COrBuilder getPostgresqlConfig101COrBuilder() { if (postgresqlConfigCase_ == 10) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_10_FIELD_NUMBER = 3; /** *
     * Configuration of a PostgreSQL 10 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; * @return Whether the postgresqlConfig10 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig10() { return postgresqlConfigCase_ == 3; } /** *
     * Configuration of a PostgreSQL 10 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; * @return The postgresqlConfig10. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10 getPostgresqlConfig10() { if (postgresqlConfigCase_ == 3) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 10 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10OrBuilder getPostgresqlConfig10OrBuilder() { if (postgresqlConfigCase_ == 3) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_11_FIELD_NUMBER = 8; /** *
     * Configuration of a PostgreSQL 11 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; * @return Whether the postgresqlConfig11 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig11() { return postgresqlConfigCase_ == 8; } /** *
     * Configuration of a PostgreSQL 11 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; * @return The postgresqlConfig11. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11 getPostgresqlConfig11() { if (postgresqlConfigCase_ == 8) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 11 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11OrBuilder getPostgresqlConfig11OrBuilder() { if (postgresqlConfigCase_ == 8) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_11_1C_FIELD_NUMBER = 13; /** *
     * Configuration of a PostgreSQL 11 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; * @return Whether the postgresqlConfig111c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig111C() { return postgresqlConfigCase_ == 13; } /** *
     * Configuration of a PostgreSQL 11 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; * @return The postgresqlConfig111c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C getPostgresqlConfig111C() { if (postgresqlConfigCase_ == 13) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 11 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1COrBuilder getPostgresqlConfig111COrBuilder() { if (postgresqlConfigCase_ == 13) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_12_FIELD_NUMBER = 11; /** *
     * Configuration of a PostgreSQL 12 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; * @return Whether the postgresqlConfig12 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig12() { return postgresqlConfigCase_ == 11; } /** *
     * Configuration of a PostgreSQL 12 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; * @return The postgresqlConfig12. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12 getPostgresqlConfig12() { if (postgresqlConfigCase_ == 11) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 12 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12OrBuilder getPostgresqlConfig12OrBuilder() { if (postgresqlConfigCase_ == 11) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_12_1C_FIELD_NUMBER = 14; /** *
     * Configuration of a PostgreSQL 12 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; * @return Whether the postgresqlConfig121c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig121C() { return postgresqlConfigCase_ == 14; } /** *
     * Configuration of a PostgreSQL 12 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; * @return The postgresqlConfig121c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C getPostgresqlConfig121C() { if (postgresqlConfigCase_ == 14) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 12 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1COrBuilder getPostgresqlConfig121COrBuilder() { if (postgresqlConfigCase_ == 14) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_13_FIELD_NUMBER = 15; /** *
     * Configuration of a PostgreSQL 13 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; * @return Whether the postgresqlConfig13 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig13() { return postgresqlConfigCase_ == 15; } /** *
     * Configuration of a PostgreSQL 13 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; * @return The postgresqlConfig13. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13 getPostgresqlConfig13() { if (postgresqlConfigCase_ == 15) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 13 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13OrBuilder getPostgresqlConfig13OrBuilder() { if (postgresqlConfigCase_ == 15) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_13_1C_FIELD_NUMBER = 18; /** *
     * Configuration of a PostgreSQL 13 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; * @return Whether the postgresqlConfig131c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig131C() { return postgresqlConfigCase_ == 18; } /** *
     * Configuration of a PostgreSQL 13 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; * @return The postgresqlConfig131c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C getPostgresqlConfig131C() { if (postgresqlConfigCase_ == 18) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 13 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1COrBuilder getPostgresqlConfig131COrBuilder() { if (postgresqlConfigCase_ == 18) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_14_FIELD_NUMBER = 16; /** *
     * Configuration of a PostgreSQL 14 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; * @return Whether the postgresqlConfig14 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig14() { return postgresqlConfigCase_ == 16; } /** *
     * Configuration of a PostgreSQL 14 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; * @return The postgresqlConfig14. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14 getPostgresqlConfig14() { if (postgresqlConfigCase_ == 16) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 14 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14OrBuilder getPostgresqlConfig14OrBuilder() { if (postgresqlConfigCase_ == 16) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_14_1C_FIELD_NUMBER = 19; /** *
     * Configuration of a PostgreSQL 14 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; * @return Whether the postgresqlConfig141c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig141C() { return postgresqlConfigCase_ == 19; } /** *
     * Configuration of a PostgreSQL 14 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; * @return The postgresqlConfig141c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C getPostgresqlConfig141C() { if (postgresqlConfigCase_ == 19) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 14 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1COrBuilder getPostgresqlConfig141COrBuilder() { if (postgresqlConfigCase_ == 19) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_15_FIELD_NUMBER = 21; /** *
     * Configuration of a PostgreSQL 15 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; * @return Whether the postgresqlConfig15 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig15() { return postgresqlConfigCase_ == 21; } /** *
     * Configuration of a PostgreSQL 15 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; * @return The postgresqlConfig15. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15 getPostgresqlConfig15() { if (postgresqlConfigCase_ == 21) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 15 server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15OrBuilder getPostgresqlConfig15OrBuilder() { if (postgresqlConfigCase_ == 21) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_15_1C_FIELD_NUMBER = 22; /** *
     * Configuration of a PostgreSQL 15 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; * @return Whether the postgresqlConfig151c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig151C() { return postgresqlConfigCase_ == 22; } /** *
     * Configuration of a PostgreSQL 15 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; * @return The postgresqlConfig151c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C getPostgresqlConfig151C() { if (postgresqlConfigCase_ == 22) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.getDefaultInstance(); } /** *
     * Configuration of a PostgreSQL 15 1C server.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1COrBuilder getPostgresqlConfig151COrBuilder() { if (postgresqlConfigCase_ == 22) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.getDefaultInstance(); } public static final int POOLER_CONFIG_FIELD_NUMBER = 4; private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig poolerConfig_; /** *
     * Configuration of the connection pooler.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; * @return Whether the poolerConfig field is set. */ @java.lang.Override public boolean hasPoolerConfig() { return poolerConfig_ != null; } /** *
     * Configuration of the connection pooler.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; * @return The poolerConfig. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig getPoolerConfig() { return poolerConfig_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.getDefaultInstance() : poolerConfig_; } /** *
     * Configuration of the connection pooler.
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfigOrBuilder getPoolerConfigOrBuilder() { return getPoolerConfig(); } public static final int RESOURCES_FIELD_NUMBER = 5; private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources resources_; /** *
     * Resources allocated to PostgreSQL hosts.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** *
     * Resources allocated to PostgreSQL hosts.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; * @return The resources. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources getResources() { return resources_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } /** *
     * Resources allocated to PostgreSQL hosts.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int AUTOFAILOVER_FIELD_NUMBER = 6; private com.google.protobuf.BoolValue autofailover_; /** *
     * Configuration setting which enables/disables autofailover in cluster.
     * 
* * .google.protobuf.BoolValue autofailover = 6; * @return Whether the autofailover field is set. */ @java.lang.Override public boolean hasAutofailover() { return autofailover_ != null; } /** *
     * Configuration setting which enables/disables autofailover in cluster.
     * 
* * .google.protobuf.BoolValue autofailover = 6; * @return The autofailover. */ @java.lang.Override public com.google.protobuf.BoolValue getAutofailover() { return autofailover_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : autofailover_; } /** *
     * Configuration setting which enables/disables autofailover in cluster.
     * 
* * .google.protobuf.BoolValue autofailover = 6; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getAutofailoverOrBuilder() { return getAutofailover(); } public static final int BACKUP_WINDOW_START_FIELD_NUMBER = 7; private com.google.type.TimeOfDay backupWindowStart_; /** *
     * Time to start the daily backup, in the UTC timezone.
     * 
* * .google.type.TimeOfDay backup_window_start = 7; * @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 = 7; * @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 = 7; */ @java.lang.Override public com.google.type.TimeOfDayOrBuilder getBackupWindowStartOrBuilder() { return getBackupWindowStart(); } public static final int BACKUP_RETAIN_PERIOD_DAYS_FIELD_NUMBER = 17; private com.google.protobuf.Int64Value backupRetainPeriodDays_; /** *
     * Retention policy of automated backups.
     * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; * @return Whether the backupRetainPeriodDays field is set. */ @java.lang.Override public boolean hasBackupRetainPeriodDays() { return backupRetainPeriodDays_ != null; } /** *
     * Retention policy of automated backups.
     * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; * @return The backupRetainPeriodDays. */ @java.lang.Override public com.google.protobuf.Int64Value getBackupRetainPeriodDays() { return backupRetainPeriodDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : backupRetainPeriodDays_; } /** *
     * Retention policy of automated backups.
     * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getBackupRetainPeriodDaysOrBuilder() { return getBackupRetainPeriodDays(); } public static final int ACCESS_FIELD_NUMBER = 9; private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access access_; /** *
     * Access policy to DB
     * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; * @return Whether the access field is set. */ @java.lang.Override public boolean hasAccess() { return access_ != null; } /** *
     * Access policy to DB
     * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; * @return The access. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access getAccess() { return access_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.getDefaultInstance() : access_; } /** *
     * Access policy to DB
     * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.AccessOrBuilder getAccessOrBuilder() { return getAccess(); } public static final int PERFORMANCE_DIAGNOSTICS_FIELD_NUMBER = 12; private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics performanceDiagnostics_; /** *
     * Configuration of the performance diagnostics service.
     * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; * @return Whether the performanceDiagnostics field is set. */ @java.lang.Override public boolean hasPerformanceDiagnostics() { return performanceDiagnostics_ != null; } /** *
     * Configuration of the performance diagnostics service.
     * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; * @return The performanceDiagnostics. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics getPerformanceDiagnostics() { return performanceDiagnostics_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.getDefaultInstance() : performanceDiagnostics_; } /** *
     * Configuration of the performance diagnostics service.
     * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnosticsOrBuilder getPerformanceDiagnosticsOrBuilder() { return getPerformanceDiagnostics(); } 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 (postgresqlConfigCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_); } if (postgresqlConfigCase_ == 3) { output.writeMessage(3, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_); } if (poolerConfig_ != null) { output.writeMessage(4, getPoolerConfig()); } if (resources_ != null) { output.writeMessage(5, getResources()); } if (autofailover_ != null) { output.writeMessage(6, getAutofailover()); } if (backupWindowStart_ != null) { output.writeMessage(7, getBackupWindowStart()); } if (postgresqlConfigCase_ == 8) { output.writeMessage(8, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_); } if (access_ != null) { output.writeMessage(9, getAccess()); } if (postgresqlConfigCase_ == 10) { output.writeMessage(10, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 11) { output.writeMessage(11, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_); } if (performanceDiagnostics_ != null) { output.writeMessage(12, getPerformanceDiagnostics()); } if (postgresqlConfigCase_ == 13) { output.writeMessage(13, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 14) { output.writeMessage(14, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 15) { output.writeMessage(15, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_); } if (postgresqlConfigCase_ == 16) { output.writeMessage(16, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_); } if (backupRetainPeriodDays_ != null) { output.writeMessage(17, getBackupRetainPeriodDays()); } if (postgresqlConfigCase_ == 18) { output.writeMessage(18, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 19) { output.writeMessage(19, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 21) { output.writeMessage(21, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_); } if (postgresqlConfigCase_ == 22) { output.writeMessage(22, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_); } 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 (postgresqlConfigCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_); } if (postgresqlConfigCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_); } if (poolerConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPoolerConfig()); } if (resources_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getResources()); } if (autofailover_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getAutofailover()); } if (backupWindowStart_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getBackupWindowStart()); } if (postgresqlConfigCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_); } if (access_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getAccess()); } if (postgresqlConfigCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_); } if (performanceDiagnostics_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getPerformanceDiagnostics()); } if (postgresqlConfigCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_); } if (postgresqlConfigCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_); } if (backupRetainPeriodDays_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getBackupRetainPeriodDays()); } if (postgresqlConfigCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_); } if (postgresqlConfigCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_); } 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.postgresql.v1.ClusterOuterClass.ClusterConfig)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig other = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig) obj; if (!getVersion() .equals(other.getVersion())) return false; if (hasPoolerConfig() != other.hasPoolerConfig()) return false; if (hasPoolerConfig()) { if (!getPoolerConfig() .equals(other.getPoolerConfig())) return false; } if (hasResources() != other.hasResources()) return false; if (hasResources()) { if (!getResources() .equals(other.getResources())) return false; } if (hasAutofailover() != other.hasAutofailover()) return false; if (hasAutofailover()) { if (!getAutofailover() .equals(other.getAutofailover())) return false; } if (hasBackupWindowStart() != other.hasBackupWindowStart()) return false; if (hasBackupWindowStart()) { if (!getBackupWindowStart() .equals(other.getBackupWindowStart())) return false; } if (hasBackupRetainPeriodDays() != other.hasBackupRetainPeriodDays()) return false; if (hasBackupRetainPeriodDays()) { if (!getBackupRetainPeriodDays() .equals(other.getBackupRetainPeriodDays())) return false; } if (hasAccess() != other.hasAccess()) return false; if (hasAccess()) { if (!getAccess() .equals(other.getAccess())) return false; } if (hasPerformanceDiagnostics() != other.hasPerformanceDiagnostics()) return false; if (hasPerformanceDiagnostics()) { if (!getPerformanceDiagnostics() .equals(other.getPerformanceDiagnostics())) return false; } if (!getPostgresqlConfigCase().equals(other.getPostgresqlConfigCase())) return false; switch (postgresqlConfigCase_) { case 2: if (!getPostgresqlConfig96() .equals(other.getPostgresqlConfig96())) return false; break; case 10: if (!getPostgresqlConfig101C() .equals(other.getPostgresqlConfig101C())) return false; break; case 3: if (!getPostgresqlConfig10() .equals(other.getPostgresqlConfig10())) return false; break; case 8: if (!getPostgresqlConfig11() .equals(other.getPostgresqlConfig11())) return false; break; case 13: if (!getPostgresqlConfig111C() .equals(other.getPostgresqlConfig111C())) return false; break; case 11: if (!getPostgresqlConfig12() .equals(other.getPostgresqlConfig12())) return false; break; case 14: if (!getPostgresqlConfig121C() .equals(other.getPostgresqlConfig121C())) return false; break; case 15: if (!getPostgresqlConfig13() .equals(other.getPostgresqlConfig13())) return false; break; case 18: if (!getPostgresqlConfig131C() .equals(other.getPostgresqlConfig131C())) return false; break; case 16: if (!getPostgresqlConfig14() .equals(other.getPostgresqlConfig14())) return false; break; case 19: if (!getPostgresqlConfig141C() .equals(other.getPostgresqlConfig141C())) return false; break; case 21: if (!getPostgresqlConfig15() .equals(other.getPostgresqlConfig15())) return false; break; case 22: if (!getPostgresqlConfig151C() .equals(other.getPostgresqlConfig151C())) 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 (hasPoolerConfig()) { hash = (37 * hash) + POOLER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPoolerConfig().hashCode(); } if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } if (hasAutofailover()) { hash = (37 * hash) + AUTOFAILOVER_FIELD_NUMBER; hash = (53 * hash) + getAutofailover().hashCode(); } if (hasBackupWindowStart()) { hash = (37 * hash) + BACKUP_WINDOW_START_FIELD_NUMBER; hash = (53 * hash) + getBackupWindowStart().hashCode(); } if (hasBackupRetainPeriodDays()) { hash = (37 * hash) + BACKUP_RETAIN_PERIOD_DAYS_FIELD_NUMBER; hash = (53 * hash) + getBackupRetainPeriodDays().hashCode(); } if (hasAccess()) { hash = (37 * hash) + ACCESS_FIELD_NUMBER; hash = (53 * hash) + getAccess().hashCode(); } if (hasPerformanceDiagnostics()) { hash = (37 * hash) + PERFORMANCE_DIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + getPerformanceDiagnostics().hashCode(); } switch (postgresqlConfigCase_) { case 2: hash = (37 * hash) + POSTGRESQL_CONFIG_9_6_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig96().hashCode(); break; case 10: hash = (37 * hash) + POSTGRESQL_CONFIG_10_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig101C().hashCode(); break; case 3: hash = (37 * hash) + POSTGRESQL_CONFIG_10_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig10().hashCode(); break; case 8: hash = (37 * hash) + POSTGRESQL_CONFIG_11_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig11().hashCode(); break; case 13: hash = (37 * hash) + POSTGRESQL_CONFIG_11_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig111C().hashCode(); break; case 11: hash = (37 * hash) + POSTGRESQL_CONFIG_12_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig12().hashCode(); break; case 14: hash = (37 * hash) + POSTGRESQL_CONFIG_12_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig121C().hashCode(); break; case 15: hash = (37 * hash) + POSTGRESQL_CONFIG_13_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig13().hashCode(); break; case 18: hash = (37 * hash) + POSTGRESQL_CONFIG_13_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig131C().hashCode(); break; case 16: hash = (37 * hash) + POSTGRESQL_CONFIG_14_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig14().hashCode(); break; case 19: hash = (37 * hash) + POSTGRESQL_CONFIG_14_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig141C().hashCode(); break; case 21: hash = (37 * hash) + POSTGRESQL_CONFIG_15_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig15().hashCode(); break; case 22: hash = (37 * hash) + POSTGRESQL_CONFIG_15_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig151C().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.ClusterConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.ClusterConfig) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); version_ = ""; if (poolerConfigBuilder_ == null) { poolerConfig_ = null; } else { poolerConfig_ = null; poolerConfigBuilder_ = null; } if (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } if (autofailoverBuilder_ == null) { autofailover_ = null; } else { autofailover_ = null; autofailoverBuilder_ = null; } if (backupWindowStartBuilder_ == null) { backupWindowStart_ = null; } else { backupWindowStart_ = null; backupWindowStartBuilder_ = null; } if (backupRetainPeriodDaysBuilder_ == null) { backupRetainPeriodDays_ = null; } else { backupRetainPeriodDays_ = null; backupRetainPeriodDaysBuilder_ = null; } if (accessBuilder_ == null) { access_ = null; } else { access_ = null; accessBuilder_ = null; } if (performanceDiagnosticsBuilder_ == null) { performanceDiagnostics_ = null; } else { performanceDiagnostics_ = null; performanceDiagnosticsBuilder_ = null; } postgresqlConfigCase_ = 0; postgresqlConfig_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig result = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig(this); result.version_ = version_; if (postgresqlConfigCase_ == 2) { if (postgresqlConfig96Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig96Builder_.build(); } } if (postgresqlConfigCase_ == 10) { if (postgresqlConfig101CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig101CBuilder_.build(); } } if (postgresqlConfigCase_ == 3) { if (postgresqlConfig10Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig10Builder_.build(); } } if (postgresqlConfigCase_ == 8) { if (postgresqlConfig11Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig11Builder_.build(); } } if (postgresqlConfigCase_ == 13) { if (postgresqlConfig111CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig111CBuilder_.build(); } } if (postgresqlConfigCase_ == 11) { if (postgresqlConfig12Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig12Builder_.build(); } } if (postgresqlConfigCase_ == 14) { if (postgresqlConfig121CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig121CBuilder_.build(); } } if (postgresqlConfigCase_ == 15) { if (postgresqlConfig13Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig13Builder_.build(); } } if (postgresqlConfigCase_ == 18) { if (postgresqlConfig131CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig131CBuilder_.build(); } } if (postgresqlConfigCase_ == 16) { if (postgresqlConfig14Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig14Builder_.build(); } } if (postgresqlConfigCase_ == 19) { if (postgresqlConfig141CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig141CBuilder_.build(); } } if (postgresqlConfigCase_ == 21) { if (postgresqlConfig15Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig15Builder_.build(); } } if (postgresqlConfigCase_ == 22) { if (postgresqlConfig151CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig151CBuilder_.build(); } } if (poolerConfigBuilder_ == null) { result.poolerConfig_ = poolerConfig_; } else { result.poolerConfig_ = poolerConfigBuilder_.build(); } if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (autofailoverBuilder_ == null) { result.autofailover_ = autofailover_; } else { result.autofailover_ = autofailoverBuilder_.build(); } if (backupWindowStartBuilder_ == null) { result.backupWindowStart_ = backupWindowStart_; } else { result.backupWindowStart_ = backupWindowStartBuilder_.build(); } if (backupRetainPeriodDaysBuilder_ == null) { result.backupRetainPeriodDays_ = backupRetainPeriodDays_; } else { result.backupRetainPeriodDays_ = backupRetainPeriodDaysBuilder_.build(); } if (accessBuilder_ == null) { result.access_ = access_; } else { result.access_ = accessBuilder_.build(); } if (performanceDiagnosticsBuilder_ == null) { result.performanceDiagnostics_ = performanceDiagnostics_; } else { result.performanceDiagnostics_ = performanceDiagnosticsBuilder_.build(); } result.postgresqlConfigCase_ = postgresqlConfigCase_; 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.postgresql.v1.ClusterOuterClass.ClusterConfig) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig other) { if (other == yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); } if (other.hasPoolerConfig()) { mergePoolerConfig(other.getPoolerConfig()); } if (other.hasResources()) { mergeResources(other.getResources()); } if (other.hasAutofailover()) { mergeAutofailover(other.getAutofailover()); } if (other.hasBackupWindowStart()) { mergeBackupWindowStart(other.getBackupWindowStart()); } if (other.hasBackupRetainPeriodDays()) { mergeBackupRetainPeriodDays(other.getBackupRetainPeriodDays()); } if (other.hasAccess()) { mergeAccess(other.getAccess()); } if (other.hasPerformanceDiagnostics()) { mergePerformanceDiagnostics(other.getPerformanceDiagnostics()); } switch (other.getPostgresqlConfigCase()) { case POSTGRESQL_CONFIG_9_6: { mergePostgresqlConfig96(other.getPostgresqlConfig96()); break; } case POSTGRESQL_CONFIG_10_1C: { mergePostgresqlConfig101C(other.getPostgresqlConfig101C()); break; } case POSTGRESQL_CONFIG_10: { mergePostgresqlConfig10(other.getPostgresqlConfig10()); break; } case POSTGRESQL_CONFIG_11: { mergePostgresqlConfig11(other.getPostgresqlConfig11()); break; } case POSTGRESQL_CONFIG_11_1C: { mergePostgresqlConfig111C(other.getPostgresqlConfig111C()); break; } case POSTGRESQL_CONFIG_12: { mergePostgresqlConfig12(other.getPostgresqlConfig12()); break; } case POSTGRESQL_CONFIG_12_1C: { mergePostgresqlConfig121C(other.getPostgresqlConfig121C()); break; } case POSTGRESQL_CONFIG_13: { mergePostgresqlConfig13(other.getPostgresqlConfig13()); break; } case POSTGRESQL_CONFIG_13_1C: { mergePostgresqlConfig131C(other.getPostgresqlConfig131C()); break; } case POSTGRESQL_CONFIG_14: { mergePostgresqlConfig14(other.getPostgresqlConfig14()); break; } case POSTGRESQL_CONFIG_14_1C: { mergePostgresqlConfig141C(other.getPostgresqlConfig141C()); break; } case POSTGRESQL_CONFIG_15: { mergePostgresqlConfig15(other.getPostgresqlConfig15()); break; } case POSTGRESQL_CONFIG_15_1C: { mergePostgresqlConfig151C(other.getPostgresqlConfig151C()); break; } case POSTGRESQLCONFIG_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.postgresql.v1.ClusterOuterClass.ClusterConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int postgresqlConfigCase_ = 0; private java.lang.Object postgresqlConfig_; public PostgresqlConfigCase getPostgresqlConfigCase() { return PostgresqlConfigCase.forNumber( postgresqlConfigCase_); } public Builder clearPostgresqlConfig() { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); return this; } private java.lang.Object version_ = ""; /** *
       * Version of PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL server software.
       * 
* * string version = 1; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * Version of PostgreSQL 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.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6OrBuilder> postgresqlConfig96Builder_; /** *
       * Configuration of a PostgreSQL 9.6 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; * @return Whether the postgresqlConfig96 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig96() { return postgresqlConfigCase_ == 2; } /** *
       * Configuration of a PostgreSQL 9.6 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; * @return The postgresqlConfig96. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6 getPostgresqlConfig96() { if (postgresqlConfig96Builder_ == null) { if (postgresqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 2) { return postgresqlConfig96Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 9.6 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; */ public Builder setPostgresqlConfig96(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6 value) { if (postgresqlConfig96Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig96Builder_.setMessage(value); } postgresqlConfigCase_ = 2; return this; } /** *
       * Configuration of a PostgreSQL 9.6 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; */ public Builder setPostgresqlConfig96( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.Builder builderForValue) { if (postgresqlConfig96Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig96Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 2; return this; } /** *
       * Configuration of a PostgreSQL 9.6 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; */ public Builder mergePostgresqlConfig96(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6 value) { if (postgresqlConfig96Builder_ == null) { if (postgresqlConfigCase_ == 2 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 2) { postgresqlConfig96Builder_.mergeFrom(value); } postgresqlConfig96Builder_.setMessage(value); } postgresqlConfigCase_ = 2; return this; } /** *
       * Configuration of a PostgreSQL 9.6 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; */ public Builder clearPostgresqlConfig96() { if (postgresqlConfig96Builder_ == null) { if (postgresqlConfigCase_ == 2) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 2) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig96Builder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 9.6 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.Builder getPostgresqlConfig96Builder() { return getPostgresqlConfig96FieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 9.6 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6OrBuilder getPostgresqlConfig96OrBuilder() { if ((postgresqlConfigCase_ == 2) && (postgresqlConfig96Builder_ != null)) { return postgresqlConfig96Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 9.6 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6 postgresql_config_9_6 = 2 [json_name = "postgresqlConfig_9_6"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6OrBuilder> getPostgresqlConfig96FieldBuilder() { if (postgresqlConfig96Builder_ == null) { if (!(postgresqlConfigCase_ == 2)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.getDefaultInstance(); } postgresqlConfig96Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.PostgresqlConfigSet9_6) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 2; onChanged();; return postgresqlConfig96Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1COrBuilder> postgresqlConfig101CBuilder_; /** *
       * Configuration of a PostgreSQL 10 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; * @return Whether the postgresqlConfig101c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig101C() { return postgresqlConfigCase_ == 10; } /** *
       * Configuration of a PostgreSQL 10 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; * @return The postgresqlConfig101c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C getPostgresqlConfig101C() { if (postgresqlConfig101CBuilder_ == null) { if (postgresqlConfigCase_ == 10) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 10) { return postgresqlConfig101CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 10 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; */ public Builder setPostgresqlConfig101C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C value) { if (postgresqlConfig101CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig101CBuilder_.setMessage(value); } postgresqlConfigCase_ = 10; return this; } /** *
       * Configuration of a PostgreSQL 10 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; */ public Builder setPostgresqlConfig101C( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.Builder builderForValue) { if (postgresqlConfig101CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig101CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 10; return this; } /** *
       * Configuration of a PostgreSQL 10 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; */ public Builder mergePostgresqlConfig101C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C value) { if (postgresqlConfig101CBuilder_ == null) { if (postgresqlConfigCase_ == 10 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 10) { postgresqlConfig101CBuilder_.mergeFrom(value); } postgresqlConfig101CBuilder_.setMessage(value); } postgresqlConfigCase_ = 10; return this; } /** *
       * Configuration of a PostgreSQL 10 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; */ public Builder clearPostgresqlConfig101C() { if (postgresqlConfig101CBuilder_ == null) { if (postgresqlConfigCase_ == 10) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 10) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig101CBuilder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 10 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.Builder getPostgresqlConfig101CBuilder() { return getPostgresqlConfig101CFieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 10 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1COrBuilder getPostgresqlConfig101COrBuilder() { if ((postgresqlConfigCase_ == 10) && (postgresqlConfig101CBuilder_ != null)) { return postgresqlConfig101CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 10) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 10 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C postgresql_config_10_1c = 10 [json_name = "postgresqlConfig_10_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1COrBuilder> getPostgresqlConfig101CFieldBuilder() { if (postgresqlConfig101CBuilder_ == null) { if (!(postgresqlConfigCase_ == 10)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.getDefaultInstance(); } postgresqlConfig101CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.PostgresqlConfigSet10_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 10; onChanged();; return postgresqlConfig101CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10OrBuilder> postgresqlConfig10Builder_; /** *
       * Configuration of a PostgreSQL 10 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; * @return Whether the postgresqlConfig10 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig10() { return postgresqlConfigCase_ == 3; } /** *
       * Configuration of a PostgreSQL 10 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; * @return The postgresqlConfig10. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10 getPostgresqlConfig10() { if (postgresqlConfig10Builder_ == null) { if (postgresqlConfigCase_ == 3) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 3) { return postgresqlConfig10Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 10 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; */ public Builder setPostgresqlConfig10(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10 value) { if (postgresqlConfig10Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig10Builder_.setMessage(value); } postgresqlConfigCase_ = 3; return this; } /** *
       * Configuration of a PostgreSQL 10 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; */ public Builder setPostgresqlConfig10( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.Builder builderForValue) { if (postgresqlConfig10Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig10Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 3; return this; } /** *
       * Configuration of a PostgreSQL 10 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; */ public Builder mergePostgresqlConfig10(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10 value) { if (postgresqlConfig10Builder_ == null) { if (postgresqlConfigCase_ == 3 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 3) { postgresqlConfig10Builder_.mergeFrom(value); } postgresqlConfig10Builder_.setMessage(value); } postgresqlConfigCase_ = 3; return this; } /** *
       * Configuration of a PostgreSQL 10 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; */ public Builder clearPostgresqlConfig10() { if (postgresqlConfig10Builder_ == null) { if (postgresqlConfigCase_ == 3) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 3) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig10Builder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 10 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.Builder getPostgresqlConfig10Builder() { return getPostgresqlConfig10FieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 10 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10OrBuilder getPostgresqlConfig10OrBuilder() { if ((postgresqlConfigCase_ == 3) && (postgresqlConfig10Builder_ != null)) { return postgresqlConfig10Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 3) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 10 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10 postgresql_config_10 = 3 [json_name = "postgresqlConfig_10"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10OrBuilder> getPostgresqlConfig10FieldBuilder() { if (postgresqlConfig10Builder_ == null) { if (!(postgresqlConfigCase_ == 3)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.getDefaultInstance(); } postgresqlConfig10Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.PostgresqlConfigSet10) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 3; onChanged();; return postgresqlConfig10Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11OrBuilder> postgresqlConfig11Builder_; /** *
       * Configuration of a PostgreSQL 11 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; * @return Whether the postgresqlConfig11 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig11() { return postgresqlConfigCase_ == 8; } /** *
       * Configuration of a PostgreSQL 11 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; * @return The postgresqlConfig11. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11 getPostgresqlConfig11() { if (postgresqlConfig11Builder_ == null) { if (postgresqlConfigCase_ == 8) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 8) { return postgresqlConfig11Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 11 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; */ public Builder setPostgresqlConfig11(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11 value) { if (postgresqlConfig11Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig11Builder_.setMessage(value); } postgresqlConfigCase_ = 8; return this; } /** *
       * Configuration of a PostgreSQL 11 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; */ public Builder setPostgresqlConfig11( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.Builder builderForValue) { if (postgresqlConfig11Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig11Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 8; return this; } /** *
       * Configuration of a PostgreSQL 11 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; */ public Builder mergePostgresqlConfig11(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11 value) { if (postgresqlConfig11Builder_ == null) { if (postgresqlConfigCase_ == 8 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 8) { postgresqlConfig11Builder_.mergeFrom(value); } postgresqlConfig11Builder_.setMessage(value); } postgresqlConfigCase_ = 8; return this; } /** *
       * Configuration of a PostgreSQL 11 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; */ public Builder clearPostgresqlConfig11() { if (postgresqlConfig11Builder_ == null) { if (postgresqlConfigCase_ == 8) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 8) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig11Builder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 11 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.Builder getPostgresqlConfig11Builder() { return getPostgresqlConfig11FieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 11 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11OrBuilder getPostgresqlConfig11OrBuilder() { if ((postgresqlConfigCase_ == 8) && (postgresqlConfig11Builder_ != null)) { return postgresqlConfig11Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 8) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 11 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11 postgresql_config_11 = 8 [json_name = "postgresqlConfig_11"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11OrBuilder> getPostgresqlConfig11FieldBuilder() { if (postgresqlConfig11Builder_ == null) { if (!(postgresqlConfigCase_ == 8)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.getDefaultInstance(); } postgresqlConfig11Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.PostgresqlConfigSet11) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 8; onChanged();; return postgresqlConfig11Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1COrBuilder> postgresqlConfig111CBuilder_; /** *
       * Configuration of a PostgreSQL 11 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; * @return Whether the postgresqlConfig111c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig111C() { return postgresqlConfigCase_ == 13; } /** *
       * Configuration of a PostgreSQL 11 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; * @return The postgresqlConfig111c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C getPostgresqlConfig111C() { if (postgresqlConfig111CBuilder_ == null) { if (postgresqlConfigCase_ == 13) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 13) { return postgresqlConfig111CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 11 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; */ public Builder setPostgresqlConfig111C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C value) { if (postgresqlConfig111CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig111CBuilder_.setMessage(value); } postgresqlConfigCase_ = 13; return this; } /** *
       * Configuration of a PostgreSQL 11 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; */ public Builder setPostgresqlConfig111C( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.Builder builderForValue) { if (postgresqlConfig111CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig111CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 13; return this; } /** *
       * Configuration of a PostgreSQL 11 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; */ public Builder mergePostgresqlConfig111C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C value) { if (postgresqlConfig111CBuilder_ == null) { if (postgresqlConfigCase_ == 13 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 13) { postgresqlConfig111CBuilder_.mergeFrom(value); } postgresqlConfig111CBuilder_.setMessage(value); } postgresqlConfigCase_ = 13; return this; } /** *
       * Configuration of a PostgreSQL 11 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; */ public Builder clearPostgresqlConfig111C() { if (postgresqlConfig111CBuilder_ == null) { if (postgresqlConfigCase_ == 13) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 13) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig111CBuilder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 11 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.Builder getPostgresqlConfig111CBuilder() { return getPostgresqlConfig111CFieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 11 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1COrBuilder getPostgresqlConfig111COrBuilder() { if ((postgresqlConfigCase_ == 13) && (postgresqlConfig111CBuilder_ != null)) { return postgresqlConfig111CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 13) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 11 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C postgresql_config_11_1c = 13 [json_name = "postgresqlConfig_11_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1COrBuilder> getPostgresqlConfig111CFieldBuilder() { if (postgresqlConfig111CBuilder_ == null) { if (!(postgresqlConfigCase_ == 13)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.getDefaultInstance(); } postgresqlConfig111CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.PostgresqlConfigSet11_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 13; onChanged();; return postgresqlConfig111CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12OrBuilder> postgresqlConfig12Builder_; /** *
       * Configuration of a PostgreSQL 12 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; * @return Whether the postgresqlConfig12 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig12() { return postgresqlConfigCase_ == 11; } /** *
       * Configuration of a PostgreSQL 12 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; * @return The postgresqlConfig12. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12 getPostgresqlConfig12() { if (postgresqlConfig12Builder_ == null) { if (postgresqlConfigCase_ == 11) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 11) { return postgresqlConfig12Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 12 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; */ public Builder setPostgresqlConfig12(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12 value) { if (postgresqlConfig12Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig12Builder_.setMessage(value); } postgresqlConfigCase_ = 11; return this; } /** *
       * Configuration of a PostgreSQL 12 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; */ public Builder setPostgresqlConfig12( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.Builder builderForValue) { if (postgresqlConfig12Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig12Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 11; return this; } /** *
       * Configuration of a PostgreSQL 12 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; */ public Builder mergePostgresqlConfig12(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12 value) { if (postgresqlConfig12Builder_ == null) { if (postgresqlConfigCase_ == 11 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 11) { postgresqlConfig12Builder_.mergeFrom(value); } postgresqlConfig12Builder_.setMessage(value); } postgresqlConfigCase_ = 11; return this; } /** *
       * Configuration of a PostgreSQL 12 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; */ public Builder clearPostgresqlConfig12() { if (postgresqlConfig12Builder_ == null) { if (postgresqlConfigCase_ == 11) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 11) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig12Builder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 12 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.Builder getPostgresqlConfig12Builder() { return getPostgresqlConfig12FieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 12 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12OrBuilder getPostgresqlConfig12OrBuilder() { if ((postgresqlConfigCase_ == 11) && (postgresqlConfig12Builder_ != null)) { return postgresqlConfig12Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 11) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 12 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12 postgresql_config_12 = 11 [json_name = "postgresqlConfig_12"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12OrBuilder> getPostgresqlConfig12FieldBuilder() { if (postgresqlConfig12Builder_ == null) { if (!(postgresqlConfigCase_ == 11)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.getDefaultInstance(); } postgresqlConfig12Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.PostgresqlConfigSet12) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 11; onChanged();; return postgresqlConfig12Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1COrBuilder> postgresqlConfig121CBuilder_; /** *
       * Configuration of a PostgreSQL 12 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; * @return Whether the postgresqlConfig121c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig121C() { return postgresqlConfigCase_ == 14; } /** *
       * Configuration of a PostgreSQL 12 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; * @return The postgresqlConfig121c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C getPostgresqlConfig121C() { if (postgresqlConfig121CBuilder_ == null) { if (postgresqlConfigCase_ == 14) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 14) { return postgresqlConfig121CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 12 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; */ public Builder setPostgresqlConfig121C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C value) { if (postgresqlConfig121CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig121CBuilder_.setMessage(value); } postgresqlConfigCase_ = 14; return this; } /** *
       * Configuration of a PostgreSQL 12 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; */ public Builder setPostgresqlConfig121C( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.Builder builderForValue) { if (postgresqlConfig121CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig121CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 14; return this; } /** *
       * Configuration of a PostgreSQL 12 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; */ public Builder mergePostgresqlConfig121C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C value) { if (postgresqlConfig121CBuilder_ == null) { if (postgresqlConfigCase_ == 14 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 14) { postgresqlConfig121CBuilder_.mergeFrom(value); } postgresqlConfig121CBuilder_.setMessage(value); } postgresqlConfigCase_ = 14; return this; } /** *
       * Configuration of a PostgreSQL 12 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; */ public Builder clearPostgresqlConfig121C() { if (postgresqlConfig121CBuilder_ == null) { if (postgresqlConfigCase_ == 14) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 14) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig121CBuilder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 12 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.Builder getPostgresqlConfig121CBuilder() { return getPostgresqlConfig121CFieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 12 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1COrBuilder getPostgresqlConfig121COrBuilder() { if ((postgresqlConfigCase_ == 14) && (postgresqlConfig121CBuilder_ != null)) { return postgresqlConfig121CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 14) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 12 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C postgresql_config_12_1c = 14 [json_name = "postgresqlConfig_12_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1COrBuilder> getPostgresqlConfig121CFieldBuilder() { if (postgresqlConfig121CBuilder_ == null) { if (!(postgresqlConfigCase_ == 14)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.getDefaultInstance(); } postgresqlConfig121CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.PostgresqlConfigSet12_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 14; onChanged();; return postgresqlConfig121CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13OrBuilder> postgresqlConfig13Builder_; /** *
       * Configuration of a PostgreSQL 13 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; * @return Whether the postgresqlConfig13 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig13() { return postgresqlConfigCase_ == 15; } /** *
       * Configuration of a PostgreSQL 13 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; * @return The postgresqlConfig13. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13 getPostgresqlConfig13() { if (postgresqlConfig13Builder_ == null) { if (postgresqlConfigCase_ == 15) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 15) { return postgresqlConfig13Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 13 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; */ public Builder setPostgresqlConfig13(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13 value) { if (postgresqlConfig13Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig13Builder_.setMessage(value); } postgresqlConfigCase_ = 15; return this; } /** *
       * Configuration of a PostgreSQL 13 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; */ public Builder setPostgresqlConfig13( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.Builder builderForValue) { if (postgresqlConfig13Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig13Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 15; return this; } /** *
       * Configuration of a PostgreSQL 13 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; */ public Builder mergePostgresqlConfig13(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13 value) { if (postgresqlConfig13Builder_ == null) { if (postgresqlConfigCase_ == 15 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 15) { postgresqlConfig13Builder_.mergeFrom(value); } postgresqlConfig13Builder_.setMessage(value); } postgresqlConfigCase_ = 15; return this; } /** *
       * Configuration of a PostgreSQL 13 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; */ public Builder clearPostgresqlConfig13() { if (postgresqlConfig13Builder_ == null) { if (postgresqlConfigCase_ == 15) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 15) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig13Builder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 13 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.Builder getPostgresqlConfig13Builder() { return getPostgresqlConfig13FieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 13 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13OrBuilder getPostgresqlConfig13OrBuilder() { if ((postgresqlConfigCase_ == 15) && (postgresqlConfig13Builder_ != null)) { return postgresqlConfig13Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 15) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 13 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13 postgresql_config_13 = 15 [json_name = "postgresqlConfig_13"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13OrBuilder> getPostgresqlConfig13FieldBuilder() { if (postgresqlConfig13Builder_ == null) { if (!(postgresqlConfigCase_ == 15)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.getDefaultInstance(); } postgresqlConfig13Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.PostgresqlConfigSet13) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 15; onChanged();; return postgresqlConfig13Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1COrBuilder> postgresqlConfig131CBuilder_; /** *
       * Configuration of a PostgreSQL 13 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; * @return Whether the postgresqlConfig131c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig131C() { return postgresqlConfigCase_ == 18; } /** *
       * Configuration of a PostgreSQL 13 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; * @return The postgresqlConfig131c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C getPostgresqlConfig131C() { if (postgresqlConfig131CBuilder_ == null) { if (postgresqlConfigCase_ == 18) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 18) { return postgresqlConfig131CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 13 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; */ public Builder setPostgresqlConfig131C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C value) { if (postgresqlConfig131CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig131CBuilder_.setMessage(value); } postgresqlConfigCase_ = 18; return this; } /** *
       * Configuration of a PostgreSQL 13 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; */ public Builder setPostgresqlConfig131C( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.Builder builderForValue) { if (postgresqlConfig131CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig131CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 18; return this; } /** *
       * Configuration of a PostgreSQL 13 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; */ public Builder mergePostgresqlConfig131C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C value) { if (postgresqlConfig131CBuilder_ == null) { if (postgresqlConfigCase_ == 18 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 18) { postgresqlConfig131CBuilder_.mergeFrom(value); } postgresqlConfig131CBuilder_.setMessage(value); } postgresqlConfigCase_ = 18; return this; } /** *
       * Configuration of a PostgreSQL 13 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; */ public Builder clearPostgresqlConfig131C() { if (postgresqlConfig131CBuilder_ == null) { if (postgresqlConfigCase_ == 18) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 18) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig131CBuilder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 13 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.Builder getPostgresqlConfig131CBuilder() { return getPostgresqlConfig131CFieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 13 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1COrBuilder getPostgresqlConfig131COrBuilder() { if ((postgresqlConfigCase_ == 18) && (postgresqlConfig131CBuilder_ != null)) { return postgresqlConfig131CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 18) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 13 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C postgresql_config_13_1c = 18 [json_name = "postgresqlConfig_13_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1COrBuilder> getPostgresqlConfig131CFieldBuilder() { if (postgresqlConfig131CBuilder_ == null) { if (!(postgresqlConfigCase_ == 18)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.getDefaultInstance(); } postgresqlConfig131CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.PostgresqlConfigSet13_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 18; onChanged();; return postgresqlConfig131CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14OrBuilder> postgresqlConfig14Builder_; /** *
       * Configuration of a PostgreSQL 14 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; * @return Whether the postgresqlConfig14 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig14() { return postgresqlConfigCase_ == 16; } /** *
       * Configuration of a PostgreSQL 14 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; * @return The postgresqlConfig14. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14 getPostgresqlConfig14() { if (postgresqlConfig14Builder_ == null) { if (postgresqlConfigCase_ == 16) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 16) { return postgresqlConfig14Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 14 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; */ public Builder setPostgresqlConfig14(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14 value) { if (postgresqlConfig14Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig14Builder_.setMessage(value); } postgresqlConfigCase_ = 16; return this; } /** *
       * Configuration of a PostgreSQL 14 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; */ public Builder setPostgresqlConfig14( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.Builder builderForValue) { if (postgresqlConfig14Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig14Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 16; return this; } /** *
       * Configuration of a PostgreSQL 14 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; */ public Builder mergePostgresqlConfig14(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14 value) { if (postgresqlConfig14Builder_ == null) { if (postgresqlConfigCase_ == 16 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 16) { postgresqlConfig14Builder_.mergeFrom(value); } postgresqlConfig14Builder_.setMessage(value); } postgresqlConfigCase_ = 16; return this; } /** *
       * Configuration of a PostgreSQL 14 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; */ public Builder clearPostgresqlConfig14() { if (postgresqlConfig14Builder_ == null) { if (postgresqlConfigCase_ == 16) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 16) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig14Builder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 14 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.Builder getPostgresqlConfig14Builder() { return getPostgresqlConfig14FieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 14 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14OrBuilder getPostgresqlConfig14OrBuilder() { if ((postgresqlConfigCase_ == 16) && (postgresqlConfig14Builder_ != null)) { return postgresqlConfig14Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 16) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 14 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14 postgresql_config_14 = 16 [json_name = "postgresqlConfig_14"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14OrBuilder> getPostgresqlConfig14FieldBuilder() { if (postgresqlConfig14Builder_ == null) { if (!(postgresqlConfigCase_ == 16)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.getDefaultInstance(); } postgresqlConfig14Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.PostgresqlConfigSet14) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 16; onChanged();; return postgresqlConfig14Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1COrBuilder> postgresqlConfig141CBuilder_; /** *
       * Configuration of a PostgreSQL 14 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; * @return Whether the postgresqlConfig141c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig141C() { return postgresqlConfigCase_ == 19; } /** *
       * Configuration of a PostgreSQL 14 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; * @return The postgresqlConfig141c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C getPostgresqlConfig141C() { if (postgresqlConfig141CBuilder_ == null) { if (postgresqlConfigCase_ == 19) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 19) { return postgresqlConfig141CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 14 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; */ public Builder setPostgresqlConfig141C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C value) { if (postgresqlConfig141CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig141CBuilder_.setMessage(value); } postgresqlConfigCase_ = 19; return this; } /** *
       * Configuration of a PostgreSQL 14 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; */ public Builder setPostgresqlConfig141C( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.Builder builderForValue) { if (postgresqlConfig141CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig141CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 19; return this; } /** *
       * Configuration of a PostgreSQL 14 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; */ public Builder mergePostgresqlConfig141C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C value) { if (postgresqlConfig141CBuilder_ == null) { if (postgresqlConfigCase_ == 19 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 19) { postgresqlConfig141CBuilder_.mergeFrom(value); } postgresqlConfig141CBuilder_.setMessage(value); } postgresqlConfigCase_ = 19; return this; } /** *
       * Configuration of a PostgreSQL 14 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; */ public Builder clearPostgresqlConfig141C() { if (postgresqlConfig141CBuilder_ == null) { if (postgresqlConfigCase_ == 19) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 19) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig141CBuilder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 14 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.Builder getPostgresqlConfig141CBuilder() { return getPostgresqlConfig141CFieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 14 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1COrBuilder getPostgresqlConfig141COrBuilder() { if ((postgresqlConfigCase_ == 19) && (postgresqlConfig141CBuilder_ != null)) { return postgresqlConfig141CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 19) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 14 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C postgresql_config_14_1c = 19 [json_name = "postgresqlConfig_14_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1COrBuilder> getPostgresqlConfig141CFieldBuilder() { if (postgresqlConfig141CBuilder_ == null) { if (!(postgresqlConfigCase_ == 19)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.getDefaultInstance(); } postgresqlConfig141CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.PostgresqlConfigSet14_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 19; onChanged();; return postgresqlConfig141CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15OrBuilder> postgresqlConfig15Builder_; /** *
       * Configuration of a PostgreSQL 15 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; * @return Whether the postgresqlConfig15 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig15() { return postgresqlConfigCase_ == 21; } /** *
       * Configuration of a PostgreSQL 15 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; * @return The postgresqlConfig15. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15 getPostgresqlConfig15() { if (postgresqlConfig15Builder_ == null) { if (postgresqlConfigCase_ == 21) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 21) { return postgresqlConfig15Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 15 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; */ public Builder setPostgresqlConfig15(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15 value) { if (postgresqlConfig15Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig15Builder_.setMessage(value); } postgresqlConfigCase_ = 21; return this; } /** *
       * Configuration of a PostgreSQL 15 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; */ public Builder setPostgresqlConfig15( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.Builder builderForValue) { if (postgresqlConfig15Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig15Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 21; return this; } /** *
       * Configuration of a PostgreSQL 15 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; */ public Builder mergePostgresqlConfig15(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15 value) { if (postgresqlConfig15Builder_ == null) { if (postgresqlConfigCase_ == 21 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 21) { postgresqlConfig15Builder_.mergeFrom(value); } postgresqlConfig15Builder_.setMessage(value); } postgresqlConfigCase_ = 21; return this; } /** *
       * Configuration of a PostgreSQL 15 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; */ public Builder clearPostgresqlConfig15() { if (postgresqlConfig15Builder_ == null) { if (postgresqlConfigCase_ == 21) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 21) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig15Builder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 15 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.Builder getPostgresqlConfig15Builder() { return getPostgresqlConfig15FieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 15 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15OrBuilder getPostgresqlConfig15OrBuilder() { if ((postgresqlConfigCase_ == 21) && (postgresqlConfig15Builder_ != null)) { return postgresqlConfig15Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 21) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 15 server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15 postgresql_config_15 = 21 [json_name = "postgresqlConfig_15"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15OrBuilder> getPostgresqlConfig15FieldBuilder() { if (postgresqlConfig15Builder_ == null) { if (!(postgresqlConfigCase_ == 21)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.getDefaultInstance(); } postgresqlConfig15Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.PostgresqlConfigSet15) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 21; onChanged();; return postgresqlConfig15Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1COrBuilder> postgresqlConfig151CBuilder_; /** *
       * Configuration of a PostgreSQL 15 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; * @return Whether the postgresqlConfig151c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig151C() { return postgresqlConfigCase_ == 22; } /** *
       * Configuration of a PostgreSQL 15 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; * @return The postgresqlConfig151c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C getPostgresqlConfig151C() { if (postgresqlConfig151CBuilder_ == null) { if (postgresqlConfigCase_ == 22) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 22) { return postgresqlConfig151CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 15 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; */ public Builder setPostgresqlConfig151C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C value) { if (postgresqlConfig151CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig151CBuilder_.setMessage(value); } postgresqlConfigCase_ = 22; return this; } /** *
       * Configuration of a PostgreSQL 15 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; */ public Builder setPostgresqlConfig151C( yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.Builder builderForValue) { if (postgresqlConfig151CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig151CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 22; return this; } /** *
       * Configuration of a PostgreSQL 15 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; */ public Builder mergePostgresqlConfig151C(yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C value) { if (postgresqlConfig151CBuilder_ == null) { if (postgresqlConfigCase_ == 22 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 22) { postgresqlConfig151CBuilder_.mergeFrom(value); } postgresqlConfig151CBuilder_.setMessage(value); } postgresqlConfigCase_ = 22; return this; } /** *
       * Configuration of a PostgreSQL 15 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; */ public Builder clearPostgresqlConfig151C() { if (postgresqlConfig151CBuilder_ == null) { if (postgresqlConfigCase_ == 22) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 22) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig151CBuilder_.clear(); } return this; } /** *
       * Configuration of a PostgreSQL 15 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.Builder getPostgresqlConfig151CBuilder() { return getPostgresqlConfig151CFieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL 15 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1COrBuilder getPostgresqlConfig151COrBuilder() { if ((postgresqlConfigCase_ == 22) && (postgresqlConfig151CBuilder_ != null)) { return postgresqlConfig151CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 22) { return (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.getDefaultInstance(); } } /** *
       * Configuration of a PostgreSQL 15 1C server.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C postgresql_config_15_1c = 22 [json_name = "postgresqlConfig_15_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1COrBuilder> getPostgresqlConfig151CFieldBuilder() { if (postgresqlConfig151CBuilder_ == null) { if (!(postgresqlConfigCase_ == 22)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.getDefaultInstance(); } postgresqlConfig151CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.PostgresqlConfigSet15_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 22; onChanged();; return postgresqlConfig151CBuilder_; } private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig poolerConfig_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfigOrBuilder> poolerConfigBuilder_; /** *
       * Configuration of the connection pooler.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; * @return Whether the poolerConfig field is set. */ public boolean hasPoolerConfig() { return poolerConfigBuilder_ != null || poolerConfig_ != null; } /** *
       * Configuration of the connection pooler.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; * @return The poolerConfig. */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig getPoolerConfig() { if (poolerConfigBuilder_ == null) { return poolerConfig_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.getDefaultInstance() : poolerConfig_; } else { return poolerConfigBuilder_.getMessage(); } } /** *
       * Configuration of the connection pooler.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; */ public Builder setPoolerConfig(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig value) { if (poolerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } poolerConfig_ = value; onChanged(); } else { poolerConfigBuilder_.setMessage(value); } return this; } /** *
       * Configuration of the connection pooler.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; */ public Builder setPoolerConfig( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.Builder builderForValue) { if (poolerConfigBuilder_ == null) { poolerConfig_ = builderForValue.build(); onChanged(); } else { poolerConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration of the connection pooler.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; */ public Builder mergePoolerConfig(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig value) { if (poolerConfigBuilder_ == null) { if (poolerConfig_ != null) { poolerConfig_ = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.newBuilder(poolerConfig_).mergeFrom(value).buildPartial(); } else { poolerConfig_ = value; } onChanged(); } else { poolerConfigBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration of the connection pooler.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; */ public Builder clearPoolerConfig() { if (poolerConfigBuilder_ == null) { poolerConfig_ = null; onChanged(); } else { poolerConfig_ = null; poolerConfigBuilder_ = null; } return this; } /** *
       * Configuration of the connection pooler.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.Builder getPoolerConfigBuilder() { onChanged(); return getPoolerConfigFieldBuilder().getBuilder(); } /** *
       * Configuration of the connection pooler.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfigOrBuilder getPoolerConfigOrBuilder() { if (poolerConfigBuilder_ != null) { return poolerConfigBuilder_.getMessageOrBuilder(); } else { return poolerConfig_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.getDefaultInstance() : poolerConfig_; } } /** *
       * Configuration of the connection pooler.
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig pooler_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfigOrBuilder> getPoolerConfigFieldBuilder() { if (poolerConfigBuilder_ == null) { poolerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfigOrBuilder>( getPoolerConfig(), getParentForChildren(), isClean()); poolerConfig_ = null; } return poolerConfigBuilder_; } private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_; /** *
       * Resources allocated to PostgreSQL hosts.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** *
       * Resources allocated to PostgreSQL hosts.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; * @return The resources. */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** *
       * Resources allocated to PostgreSQL hosts.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; */ public Builder setResources(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } return this; } /** *
       * Resources allocated to PostgreSQL hosts.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; */ public Builder setResources( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Resources allocated to PostgreSQL hosts.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; */ public Builder mergeResources(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** *
       * Resources allocated to PostgreSQL hosts.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** *
       * Resources allocated to PostgreSQL hosts.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** *
       * Resources allocated to PostgreSQL hosts.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } } /** *
       * Resources allocated to PostgreSQL hosts.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 5; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private com.google.protobuf.BoolValue autofailover_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> autofailoverBuilder_; /** *
       * Configuration setting which enables/disables autofailover in cluster.
       * 
* * .google.protobuf.BoolValue autofailover = 6; * @return Whether the autofailover field is set. */ public boolean hasAutofailover() { return autofailoverBuilder_ != null || autofailover_ != null; } /** *
       * Configuration setting which enables/disables autofailover in cluster.
       * 
* * .google.protobuf.BoolValue autofailover = 6; * @return The autofailover. */ public com.google.protobuf.BoolValue getAutofailover() { if (autofailoverBuilder_ == null) { return autofailover_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : autofailover_; } else { return autofailoverBuilder_.getMessage(); } } /** *
       * Configuration setting which enables/disables autofailover in cluster.
       * 
* * .google.protobuf.BoolValue autofailover = 6; */ public Builder setAutofailover(com.google.protobuf.BoolValue value) { if (autofailoverBuilder_ == null) { if (value == null) { throw new NullPointerException(); } autofailover_ = value; onChanged(); } else { autofailoverBuilder_.setMessage(value); } return this; } /** *
       * Configuration setting which enables/disables autofailover in cluster.
       * 
* * .google.protobuf.BoolValue autofailover = 6; */ public Builder setAutofailover( com.google.protobuf.BoolValue.Builder builderForValue) { if (autofailoverBuilder_ == null) { autofailover_ = builderForValue.build(); onChanged(); } else { autofailoverBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration setting which enables/disables autofailover in cluster.
       * 
* * .google.protobuf.BoolValue autofailover = 6; */ public Builder mergeAutofailover(com.google.protobuf.BoolValue value) { if (autofailoverBuilder_ == null) { if (autofailover_ != null) { autofailover_ = com.google.protobuf.BoolValue.newBuilder(autofailover_).mergeFrom(value).buildPartial(); } else { autofailover_ = value; } onChanged(); } else { autofailoverBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration setting which enables/disables autofailover in cluster.
       * 
* * .google.protobuf.BoolValue autofailover = 6; */ public Builder clearAutofailover() { if (autofailoverBuilder_ == null) { autofailover_ = null; onChanged(); } else { autofailover_ = null; autofailoverBuilder_ = null; } return this; } /** *
       * Configuration setting which enables/disables autofailover in cluster.
       * 
* * .google.protobuf.BoolValue autofailover = 6; */ public com.google.protobuf.BoolValue.Builder getAutofailoverBuilder() { onChanged(); return getAutofailoverFieldBuilder().getBuilder(); } /** *
       * Configuration setting which enables/disables autofailover in cluster.
       * 
* * .google.protobuf.BoolValue autofailover = 6; */ public com.google.protobuf.BoolValueOrBuilder getAutofailoverOrBuilder() { if (autofailoverBuilder_ != null) { return autofailoverBuilder_.getMessageOrBuilder(); } else { return autofailover_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : autofailover_; } } /** *
       * Configuration setting which enables/disables autofailover in cluster.
       * 
* * .google.protobuf.BoolValue autofailover = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getAutofailoverFieldBuilder() { if (autofailoverBuilder_ == null) { autofailoverBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getAutofailover(), getParentForChildren(), isClean()); autofailover_ = null; } return autofailoverBuilder_; } 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 = 7; * @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 = 7; * @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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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 = 7; */ 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_; } private com.google.protobuf.Int64Value backupRetainPeriodDays_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> backupRetainPeriodDaysBuilder_; /** *
       * Retention policy of automated backups.
       * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; * @return Whether the backupRetainPeriodDays field is set. */ public boolean hasBackupRetainPeriodDays() { return backupRetainPeriodDaysBuilder_ != null || backupRetainPeriodDays_ != null; } /** *
       * Retention policy of automated backups.
       * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; * @return The backupRetainPeriodDays. */ public com.google.protobuf.Int64Value getBackupRetainPeriodDays() { if (backupRetainPeriodDaysBuilder_ == null) { return backupRetainPeriodDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : backupRetainPeriodDays_; } else { return backupRetainPeriodDaysBuilder_.getMessage(); } } /** *
       * Retention policy of automated backups.
       * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; */ public Builder setBackupRetainPeriodDays(com.google.protobuf.Int64Value value) { if (backupRetainPeriodDaysBuilder_ == null) { if (value == null) { throw new NullPointerException(); } backupRetainPeriodDays_ = value; onChanged(); } else { backupRetainPeriodDaysBuilder_.setMessage(value); } return this; } /** *
       * Retention policy of automated backups.
       * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; */ public Builder setBackupRetainPeriodDays( com.google.protobuf.Int64Value.Builder builderForValue) { if (backupRetainPeriodDaysBuilder_ == null) { backupRetainPeriodDays_ = builderForValue.build(); onChanged(); } else { backupRetainPeriodDaysBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Retention policy of automated backups.
       * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; */ public Builder mergeBackupRetainPeriodDays(com.google.protobuf.Int64Value value) { if (backupRetainPeriodDaysBuilder_ == null) { if (backupRetainPeriodDays_ != null) { backupRetainPeriodDays_ = com.google.protobuf.Int64Value.newBuilder(backupRetainPeriodDays_).mergeFrom(value).buildPartial(); } else { backupRetainPeriodDays_ = value; } onChanged(); } else { backupRetainPeriodDaysBuilder_.mergeFrom(value); } return this; } /** *
       * Retention policy of automated backups.
       * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; */ public Builder clearBackupRetainPeriodDays() { if (backupRetainPeriodDaysBuilder_ == null) { backupRetainPeriodDays_ = null; onChanged(); } else { backupRetainPeriodDays_ = null; backupRetainPeriodDaysBuilder_ = null; } return this; } /** *
       * Retention policy of automated backups.
       * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; */ public com.google.protobuf.Int64Value.Builder getBackupRetainPeriodDaysBuilder() { onChanged(); return getBackupRetainPeriodDaysFieldBuilder().getBuilder(); } /** *
       * Retention policy of automated backups.
       * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; */ public com.google.protobuf.Int64ValueOrBuilder getBackupRetainPeriodDaysOrBuilder() { if (backupRetainPeriodDaysBuilder_ != null) { return backupRetainPeriodDaysBuilder_.getMessageOrBuilder(); } else { return backupRetainPeriodDays_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : backupRetainPeriodDays_; } } /** *
       * Retention policy of automated backups.
       * 
* * .google.protobuf.Int64Value backup_retain_period_days = 17 [(.yandex.cloud.value) = "7-60"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getBackupRetainPeriodDaysFieldBuilder() { if (backupRetainPeriodDaysBuilder_ == null) { backupRetainPeriodDaysBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getBackupRetainPeriodDays(), getParentForChildren(), isClean()); backupRetainPeriodDays_ = null; } return backupRetainPeriodDaysBuilder_; } private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access access_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.AccessOrBuilder> accessBuilder_; /** *
       * Access policy to DB
       * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; * @return Whether the access field is set. */ public boolean hasAccess() { return accessBuilder_ != null || access_ != null; } /** *
       * Access policy to DB
       * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; * @return The access. */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access getAccess() { if (accessBuilder_ == null) { return access_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.getDefaultInstance() : access_; } else { return accessBuilder_.getMessage(); } } /** *
       * Access policy to DB
       * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; */ public Builder setAccess(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access value) { if (accessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } access_ = value; onChanged(); } else { accessBuilder_.setMessage(value); } return this; } /** *
       * Access policy to DB
       * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; */ public Builder setAccess( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.Builder builderForValue) { if (accessBuilder_ == null) { access_ = builderForValue.build(); onChanged(); } else { accessBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Access policy to DB
       * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; */ public Builder mergeAccess(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access value) { if (accessBuilder_ == null) { if (access_ != null) { access_ = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.newBuilder(access_).mergeFrom(value).buildPartial(); } else { access_ = value; } onChanged(); } else { accessBuilder_.mergeFrom(value); } return this; } /** *
       * Access policy to DB
       * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; */ public Builder clearAccess() { if (accessBuilder_ == null) { access_ = null; onChanged(); } else { access_ = null; accessBuilder_ = null; } return this; } /** *
       * Access policy to DB
       * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.Builder getAccessBuilder() { onChanged(); return getAccessFieldBuilder().getBuilder(); } /** *
       * Access policy to DB
       * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.AccessOrBuilder getAccessOrBuilder() { if (accessBuilder_ != null) { return accessBuilder_.getMessageOrBuilder(); } else { return access_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.getDefaultInstance() : access_; } } /** *
       * Access policy to DB
       * 
* * .yandex.cloud.mdb.postgresql.v1.Access access = 9; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.AccessOrBuilder> getAccessFieldBuilder() { if (accessBuilder_ == null) { accessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.AccessOrBuilder>( getAccess(), getParentForChildren(), isClean()); access_ = null; } return accessBuilder_; } private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics performanceDiagnostics_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnosticsOrBuilder> performanceDiagnosticsBuilder_; /** *
       * Configuration of the performance diagnostics service.
       * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; * @return Whether the performanceDiagnostics field is set. */ public boolean hasPerformanceDiagnostics() { return performanceDiagnosticsBuilder_ != null || performanceDiagnostics_ != null; } /** *
       * Configuration of the performance diagnostics service.
       * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; * @return The performanceDiagnostics. */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics getPerformanceDiagnostics() { if (performanceDiagnosticsBuilder_ == null) { return performanceDiagnostics_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.getDefaultInstance() : performanceDiagnostics_; } else { return performanceDiagnosticsBuilder_.getMessage(); } } /** *
       * Configuration of the performance diagnostics service.
       * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; */ public Builder setPerformanceDiagnostics(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics value) { if (performanceDiagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } performanceDiagnostics_ = value; onChanged(); } else { performanceDiagnosticsBuilder_.setMessage(value); } return this; } /** *
       * Configuration of the performance diagnostics service.
       * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; */ public Builder setPerformanceDiagnostics( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.Builder builderForValue) { if (performanceDiagnosticsBuilder_ == null) { performanceDiagnostics_ = builderForValue.build(); onChanged(); } else { performanceDiagnosticsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration of the performance diagnostics service.
       * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; */ public Builder mergePerformanceDiagnostics(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics value) { if (performanceDiagnosticsBuilder_ == null) { if (performanceDiagnostics_ != null) { performanceDiagnostics_ = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.newBuilder(performanceDiagnostics_).mergeFrom(value).buildPartial(); } else { performanceDiagnostics_ = value; } onChanged(); } else { performanceDiagnosticsBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration of the performance diagnostics service.
       * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; */ public Builder clearPerformanceDiagnostics() { if (performanceDiagnosticsBuilder_ == null) { performanceDiagnostics_ = null; onChanged(); } else { performanceDiagnostics_ = null; performanceDiagnosticsBuilder_ = null; } return this; } /** *
       * Configuration of the performance diagnostics service.
       * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.Builder getPerformanceDiagnosticsBuilder() { onChanged(); return getPerformanceDiagnosticsFieldBuilder().getBuilder(); } /** *
       * Configuration of the performance diagnostics service.
       * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnosticsOrBuilder getPerformanceDiagnosticsOrBuilder() { if (performanceDiagnosticsBuilder_ != null) { return performanceDiagnosticsBuilder_.getMessageOrBuilder(); } else { return performanceDiagnostics_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.getDefaultInstance() : performanceDiagnostics_; } } /** *
       * Configuration of the performance diagnostics service.
       * 
* * .yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics performance_diagnostics = 12; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnosticsOrBuilder> getPerformanceDiagnosticsFieldBuilder() { if (performanceDiagnosticsBuilder_ == null) { performanceDiagnosticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnosticsOrBuilder>( getPerformanceDiagnostics(), getParentForChildren(), isClean()); performanceDiagnostics_ = null; } return performanceDiagnosticsBuilder_; } @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.postgresql.v1.ClusterConfig) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.ClusterConfig) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig(); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClusterConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClusterConfig(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConnectionPoolerConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Mode that the connection pooler is working in.
     * See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage).
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode pooling_mode = 1; * @return The enum numeric value on the wire for poolingMode. */ int getPoolingModeValue(); /** *
     * Mode that the connection pooler is working in.
     * See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage).
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode pooling_mode = 1; * @return The poolingMode. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode getPoolingMode(); /** *
     * Setting `server_reset_query_always` parameter in PgBouncer.
     * 
* * .google.protobuf.BoolValue pool_discard = 2; * @return Whether the poolDiscard field is set. */ boolean hasPoolDiscard(); /** *
     * Setting `server_reset_query_always` parameter in PgBouncer.
     * 
* * .google.protobuf.BoolValue pool_discard = 2; * @return The poolDiscard. */ com.google.protobuf.BoolValue getPoolDiscard(); /** *
     * Setting `server_reset_query_always` parameter in PgBouncer.
     * 
* * .google.protobuf.BoolValue pool_discard = 2; */ com.google.protobuf.BoolValueOrBuilder getPoolDiscardOrBuilder(); } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig} */ public static final class ConnectionPoolerConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig) ConnectionPoolerConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ConnectionPoolerConfig.newBuilder() to construct. private ConnectionPoolerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConnectionPoolerConfig() { poolingMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConnectionPoolerConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConnectionPoolerConfig( 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(); poolingMode_ = rawValue; break; } case 18: { com.google.protobuf.BoolValue.Builder subBuilder = null; if (poolDiscard_ != null) { subBuilder = poolDiscard_.toBuilder(); } poolDiscard_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(poolDiscard_); poolDiscard_ = 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.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode} */ public enum PoolingMode implements com.google.protobuf.ProtocolMessageEnum { /** * POOLING_MODE_UNSPECIFIED = 0; */ POOLING_MODE_UNSPECIFIED(0), /** *
       * Session pooling mode.
       * 
* * SESSION = 1; */ SESSION(1), /** *
       * Transaction pooling mode.
       * 
* * TRANSACTION = 2; */ TRANSACTION(2), /** *
       * Statement pooling mode.
       * 
* * STATEMENT = 3; */ STATEMENT(3), UNRECOGNIZED(-1), ; /** * POOLING_MODE_UNSPECIFIED = 0; */ public static final int POOLING_MODE_UNSPECIFIED_VALUE = 0; /** *
       * Session pooling mode.
       * 
* * SESSION = 1; */ public static final int SESSION_VALUE = 1; /** *
       * Transaction pooling mode.
       * 
* * TRANSACTION = 2; */ public static final int TRANSACTION_VALUE = 2; /** *
       * Statement pooling mode.
       * 
* * STATEMENT = 3; */ public static final int STATEMENT_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 PoolingMode 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 PoolingMode forNumber(int value) { switch (value) { case 0: return POOLING_MODE_UNSPECIFIED; case 1: return SESSION; case 2: return TRANSACTION; case 3: return STATEMENT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PoolingMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PoolingMode findValueByNumber(int number) { return PoolingMode.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.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.getDescriptor().getEnumTypes().get(0); } private static final PoolingMode[] VALUES = values(); public static PoolingMode 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 PoolingMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode) } public static final int POOLING_MODE_FIELD_NUMBER = 1; private int poolingMode_; /** *
     * Mode that the connection pooler is working in.
     * See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage).
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode pooling_mode = 1; * @return The enum numeric value on the wire for poolingMode. */ @java.lang.Override public int getPoolingModeValue() { return poolingMode_; } /** *
     * Mode that the connection pooler is working in.
     * See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage).
     * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode pooling_mode = 1; * @return The poolingMode. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode getPoolingMode() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode.valueOf(poolingMode_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode.UNRECOGNIZED : result; } public static final int POOL_DISCARD_FIELD_NUMBER = 2; private com.google.protobuf.BoolValue poolDiscard_; /** *
     * Setting `server_reset_query_always` parameter in PgBouncer.
     * 
* * .google.protobuf.BoolValue pool_discard = 2; * @return Whether the poolDiscard field is set. */ @java.lang.Override public boolean hasPoolDiscard() { return poolDiscard_ != null; } /** *
     * Setting `server_reset_query_always` parameter in PgBouncer.
     * 
* * .google.protobuf.BoolValue pool_discard = 2; * @return The poolDiscard. */ @java.lang.Override public com.google.protobuf.BoolValue getPoolDiscard() { return poolDiscard_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : poolDiscard_; } /** *
     * Setting `server_reset_query_always` parameter in PgBouncer.
     * 
* * .google.protobuf.BoolValue pool_discard = 2; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getPoolDiscardOrBuilder() { return getPoolDiscard(); } 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 (poolingMode_ != yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode.POOLING_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, poolingMode_); } if (poolDiscard_ != null) { output.writeMessage(2, getPoolDiscard()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (poolingMode_ != yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode.POOLING_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, poolingMode_); } if (poolDiscard_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPoolDiscard()); } 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.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig other = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig) obj; if (poolingMode_ != other.poolingMode_) return false; if (hasPoolDiscard() != other.hasPoolDiscard()) return false; if (hasPoolDiscard()) { if (!getPoolDiscard() .equals(other.getPoolDiscard())) 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) + POOLING_MODE_FIELD_NUMBER; hash = (53 * hash) + poolingMode_; if (hasPoolDiscard()) { hash = (37 * hash) + POOL_DISCARD_FIELD_NUMBER; hash = (53 * hash) + getPoolDiscard().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig 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.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig 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.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig 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.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig 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.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig 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.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig 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.postgresql.v1.ConnectionPoolerConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.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(); poolingMode_ = 0; if (poolDiscardBuilder_ == null) { poolDiscard_ = null; } else { poolDiscard_ = null; poolDiscardBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig result = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig(this); result.poolingMode_ = poolingMode_; if (poolDiscardBuilder_ == null) { result.poolDiscard_ = poolDiscard_; } else { result.poolDiscard_ = poolDiscardBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig other) { if (other == yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.getDefaultInstance()) return this; if (other.poolingMode_ != 0) { setPoolingModeValue(other.getPoolingModeValue()); } if (other.hasPoolDiscard()) { mergePoolDiscard(other.getPoolDiscard()); } 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.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int poolingMode_ = 0; /** *
       * Mode that the connection pooler is working in.
       * See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage).
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode pooling_mode = 1; * @return The enum numeric value on the wire for poolingMode. */ @java.lang.Override public int getPoolingModeValue() { return poolingMode_; } /** *
       * Mode that the connection pooler is working in.
       * See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage).
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode pooling_mode = 1; * @param value The enum numeric value on the wire for poolingMode to set. * @return This builder for chaining. */ public Builder setPoolingModeValue(int value) { poolingMode_ = value; onChanged(); return this; } /** *
       * Mode that the connection pooler is working in.
       * See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage).
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode pooling_mode = 1; * @return The poolingMode. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode getPoolingMode() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode.valueOf(poolingMode_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode.UNRECOGNIZED : result; } /** *
       * Mode that the connection pooler is working in.
       * See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage).
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode pooling_mode = 1; * @param value The poolingMode to set. * @return This builder for chaining. */ public Builder setPoolingMode(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig.PoolingMode value) { if (value == null) { throw new NullPointerException(); } poolingMode_ = value.getNumber(); onChanged(); return this; } /** *
       * Mode that the connection pooler is working in.
       * See descriptions of all modes in the [documentation for PgBouncer](https://pgbouncer.github.io/usage).
       * 
* * .yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig.PoolingMode pooling_mode = 1; * @return This builder for chaining. */ public Builder clearPoolingMode() { poolingMode_ = 0; onChanged(); return this; } private com.google.protobuf.BoolValue poolDiscard_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> poolDiscardBuilder_; /** *
       * Setting `server_reset_query_always` parameter in PgBouncer.
       * 
* * .google.protobuf.BoolValue pool_discard = 2; * @return Whether the poolDiscard field is set. */ public boolean hasPoolDiscard() { return poolDiscardBuilder_ != null || poolDiscard_ != null; } /** *
       * Setting `server_reset_query_always` parameter in PgBouncer.
       * 
* * .google.protobuf.BoolValue pool_discard = 2; * @return The poolDiscard. */ public com.google.protobuf.BoolValue getPoolDiscard() { if (poolDiscardBuilder_ == null) { return poolDiscard_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : poolDiscard_; } else { return poolDiscardBuilder_.getMessage(); } } /** *
       * Setting `server_reset_query_always` parameter in PgBouncer.
       * 
* * .google.protobuf.BoolValue pool_discard = 2; */ public Builder setPoolDiscard(com.google.protobuf.BoolValue value) { if (poolDiscardBuilder_ == null) { if (value == null) { throw new NullPointerException(); } poolDiscard_ = value; onChanged(); } else { poolDiscardBuilder_.setMessage(value); } return this; } /** *
       * Setting `server_reset_query_always` parameter in PgBouncer.
       * 
* * .google.protobuf.BoolValue pool_discard = 2; */ public Builder setPoolDiscard( com.google.protobuf.BoolValue.Builder builderForValue) { if (poolDiscardBuilder_ == null) { poolDiscard_ = builderForValue.build(); onChanged(); } else { poolDiscardBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Setting `server_reset_query_always` parameter in PgBouncer.
       * 
* * .google.protobuf.BoolValue pool_discard = 2; */ public Builder mergePoolDiscard(com.google.protobuf.BoolValue value) { if (poolDiscardBuilder_ == null) { if (poolDiscard_ != null) { poolDiscard_ = com.google.protobuf.BoolValue.newBuilder(poolDiscard_).mergeFrom(value).buildPartial(); } else { poolDiscard_ = value; } onChanged(); } else { poolDiscardBuilder_.mergeFrom(value); } return this; } /** *
       * Setting `server_reset_query_always` parameter in PgBouncer.
       * 
* * .google.protobuf.BoolValue pool_discard = 2; */ public Builder clearPoolDiscard() { if (poolDiscardBuilder_ == null) { poolDiscard_ = null; onChanged(); } else { poolDiscard_ = null; poolDiscardBuilder_ = null; } return this; } /** *
       * Setting `server_reset_query_always` parameter in PgBouncer.
       * 
* * .google.protobuf.BoolValue pool_discard = 2; */ public com.google.protobuf.BoolValue.Builder getPoolDiscardBuilder() { onChanged(); return getPoolDiscardFieldBuilder().getBuilder(); } /** *
       * Setting `server_reset_query_always` parameter in PgBouncer.
       * 
* * .google.protobuf.BoolValue pool_discard = 2; */ public com.google.protobuf.BoolValueOrBuilder getPoolDiscardOrBuilder() { if (poolDiscardBuilder_ != null) { return poolDiscardBuilder_.getMessageOrBuilder(); } else { return poolDiscard_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : poolDiscard_; } } /** *
       * Setting `server_reset_query_always` parameter in PgBouncer.
       * 
* * .google.protobuf.BoolValue pool_discard = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getPoolDiscardFieldBuilder() { if (poolDiscardBuilder_ == null) { poolDiscardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getPoolDiscard(), getParentForChildren(), isClean()); poolDiscard_ = null; } return poolDiscardBuilder_; } @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.postgresql.v1.ConnectionPoolerConfig) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.ConnectionPoolerConfig) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig(); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConnectionPoolerConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConnectionPoolerConfig(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.postgresql.v1.ClusterOuterClass.ConnectionPoolerConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.Host) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the PostgreSQL host. The host name is assigned by MDB at creation time, and cannot be changed.
     * 1-63 characters long.
     * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the PostgreSQL host. The host name is assigned by MDB at creation time, and cannot be changed.
     * 1-63 characters long.
     * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * ID of the PostgreSQL host. The ID is assigned by MDB at creation time.
     * 
* * string cluster_id = 2; * @return The clusterId. */ java.lang.String getClusterId(); /** *
     * ID of the PostgreSQL host. The ID is assigned by MDB at creation time.
     * 
* * string cluster_id = 2; * @return The bytes for clusterId. */ com.google.protobuf.ByteString getClusterIdBytes(); /** *
     * ID of the availability zone where the PostgreSQL host resides.
     * 
* * string zone_id = 3; * @return The zoneId. */ java.lang.String getZoneId(); /** *
     * ID of the availability zone where the PostgreSQL host resides.
     * 
* * string zone_id = 3; * @return The bytes for zoneId. */ com.google.protobuf.ByteString getZoneIdBytes(); /** *
     * Resources allocated to the PostgreSQL host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; * @return Whether the resources field is set. */ boolean hasResources(); /** *
     * Resources allocated to the PostgreSQL host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; * @return The resources. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources getResources(); /** *
     * Resources allocated to the PostgreSQL host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder(); /** *
     * Role of the host in the cluster.
     * 
* * .yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.Host.Role role = 5; * @return The role. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Role getRole(); /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Host.Health health = 6; * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Host.Health health = 6; * @return The health. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Health getHealth(); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ java.util.List getServicesList(); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service getServices(int index); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ int getServicesCount(); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ java.util.List getServicesOrBuilderList(); /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ yandex.cloud.api.mdb.postgresql.v1.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(); /** *
     * Name of the host to be used as the replication source for cascading replication.
     * 
* * string replication_source = 9; * @return The replicationSource. */ java.lang.String getReplicationSource(); /** *
     * Name of the host to be used as the replication source for cascading replication.
     * 
* * string replication_source = 9; * @return The bytes for replicationSource. */ com.google.protobuf.ByteString getReplicationSourceBytes(); /** *
     * Priority of the host as a replica. Higher value means higher priority.
     * The host with the highest priority is the synchronous replica. All others are asynchronous.
     * The synchronous replica replaces the master when needed.
     * When a replica becomes the master, its priority is ignored.
     * 
* * .google.protobuf.Int64Value priority = 10; * @return Whether the priority field is set. */ boolean hasPriority(); /** *
     * Priority of the host as a replica. Higher value means higher priority.
     * The host with the highest priority is the synchronous replica. All others are asynchronous.
     * The synchronous replica replaces the master when needed.
     * When a replica becomes the master, its priority is ignored.
     * 
* * .google.protobuf.Int64Value priority = 10; * @return The priority. */ com.google.protobuf.Int64Value getPriority(); /** *
     * Priority of the host as a replica. Higher value means higher priority.
     * The host with the highest priority is the synchronous replica. All others are asynchronous.
     * The synchronous replica replaces the master when needed.
     * When a replica becomes the master, its priority is ignored.
     * 
* * .google.protobuf.Int64Value priority = 10; */ com.google.protobuf.Int64ValueOrBuilder getPriorityOrBuilder(); /** *
     * Configuration of a PostgreSQL server for the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; * @return Whether the config field is set. */ boolean hasConfig(); /** *
     * Configuration of a PostgreSQL server for the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; * @return The config. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig getConfig(); /** *
     * Configuration of a PostgreSQL server for the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfigOrBuilder getConfigOrBuilder(); /** *
     * Flag showing public IP assignment status to this host.
     * 
* * bool assign_public_ip = 12; * @return The assignPublicIp. */ boolean getAssignPublicIp(); /** * .yandex.cloud.mdb.postgresql.v1.Host.ReplicaType replica_type = 13; * @return The enum numeric value on the wire for replicaType. */ int getReplicaTypeValue(); /** * .yandex.cloud.mdb.postgresql.v1.Host.ReplicaType replica_type = 13; * @return The replicaType. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType getReplicaType(); } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Host} */ public static final class Host extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.Host) HostOrBuilder { private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Host() { name_ = ""; clusterId_ = ""; zoneId_ = ""; role_ = 0; health_ = 0; services_ = java.util.Collections.emptyList(); subnetId_ = ""; replicationSource_ = ""; replicaType_ = 0; } @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.postgresql.v1.ClusterOuterClass.Resources.Builder subBuilder = null; if (resources_ != null) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service.parser(), extensionRegistry)); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); subnetId_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); replicationSource_ = s; break; } case 82: { com.google.protobuf.Int64Value.Builder subBuilder = null; if (priority_ != null) { subBuilder = priority_.toBuilder(); } priority_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(priority_); priority_ = subBuilder.buildPartial(); } break; } case 90: { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.Builder subBuilder = null; if (config_ != null) { subBuilder = config_.toBuilder(); } config_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(config_); config_ = subBuilder.buildPartial(); } break; } case 96: { assignPublicIp_ = input.readBool(); break; } case 104: { int rawValue = input.readEnum(); replicaType_ = 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_ & 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.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.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 PostgreSQL server in the cluster.
       * 
* * MASTER = 1; */ MASTER(1), /** *
       * Host is a replica (standby) PostgreSQL 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 PostgreSQL server in the cluster.
       * 
* * MASTER = 1; */ public static final int MASTER_VALUE = 1; /** *
       * Host is a replica (standby) PostgreSQL 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.postgresql.v1.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.postgresql.v1.Host.Role) } /** * Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.Host.ReplicaType} */ public enum ReplicaType implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Replica type is unknown (we have no data) or it's master
       * 
* * REPLICA_TYPE_UNKNOWN = 0; */ REPLICA_TYPE_UNKNOWN(0), /** * ASYNC = 1; */ ASYNC(1), /** * SYNC = 2; */ SYNC(2), /** * QUORUM = 3; */ QUORUM(3), UNRECOGNIZED(-1), ; /** *
       * Replica type is unknown (we have no data) or it's master
       * 
* * REPLICA_TYPE_UNKNOWN = 0; */ public static final int REPLICA_TYPE_UNKNOWN_VALUE = 0; /** * ASYNC = 1; */ public static final int ASYNC_VALUE = 1; /** * SYNC = 2; */ public static final int SYNC_VALUE = 2; /** * QUORUM = 3; */ public static final int QUORUM_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 ReplicaType 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 ReplicaType forNumber(int value) { switch (value) { case 0: return REPLICA_TYPE_UNKNOWN; case 1: return ASYNC; case 2: return SYNC; case 3: return QUORUM; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ReplicaType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ReplicaType findValueByNumber(int number) { return ReplicaType.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.postgresql.v1.ClusterOuterClass.Host.getDescriptor().getEnumTypes().get(1); } private static final ReplicaType[] VALUES = values(); public static ReplicaType 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 ReplicaType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.postgresql.v1.Host.ReplicaType) } /** * Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.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), /** *
       * The host is alive, but in read-only mode.
       * 
* * READONLY = 4; */ READONLY(4), 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; /** *
       * The host is alive, but in read-only mode.
       * 
* * READONLY = 4; */ public static final int READONLY_VALUE = 4; 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; case 4: return READONLY; 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.postgresql.v1.ClusterOuterClass.Host.getDescriptor().getEnumTypes().get(2); } 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.postgresql.v1.Host.Health) } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the PostgreSQL host. The host name is assigned by MDB at creation time, and cannot be changed.
     * 1-63 characters long.
     * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the PostgreSQL host. The host name is assigned by MDB at creation time, and cannot be changed.
     * 1-63 characters long.
     * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
     * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLUSTER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object clusterId_; /** *
     * ID of the PostgreSQL host. The ID is assigned by MDB 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 PostgreSQL host. The ID is assigned by MDB 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 PostgreSQL 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 PostgreSQL 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.postgresql.v1.ClusterOuterClass.Resources resources_; /** *
     * Resources allocated to the PostgreSQL host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** *
     * Resources allocated to the PostgreSQL host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; * @return The resources. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources getResources() { return resources_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } /** *
     * Resources allocated to the PostgreSQL host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.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.postgresql.v1.Host.Role role = 5; * @return The role. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Role getRole() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Role result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Role.valueOf(role_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Host.Health health = 6; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
     * Status code of the aggregated health of the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Host.Health health = 6; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Health result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Service services = 7; */ @java.lang.Override public java.util.List getServicesList() { return services_; } /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ @java.lang.Override public java.util.List getServicesOrBuilderList() { return services_; } /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ @java.lang.Override public int getServicesCount() { return services_.size(); } /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service getServices(int index) { return services_.get(index); } /** *
     * Services provided by the host.
     * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.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 REPLICATION_SOURCE_FIELD_NUMBER = 9; private volatile java.lang.Object replicationSource_; /** *
     * Name of the host to be used as the replication source for cascading replication.
     * 
* * string replication_source = 9; * @return The replicationSource. */ @java.lang.Override public java.lang.String getReplicationSource() { java.lang.Object ref = replicationSource_; 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(); replicationSource_ = s; return s; } } /** *
     * Name of the host to be used as the replication source for cascading replication.
     * 
* * string replication_source = 9; * @return The bytes for replicationSource. */ @java.lang.Override public com.google.protobuf.ByteString getReplicationSourceBytes() { java.lang.Object ref = replicationSource_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); replicationSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIORITY_FIELD_NUMBER = 10; private com.google.protobuf.Int64Value priority_; /** *
     * Priority of the host as a replica. Higher value means higher priority.
     * The host with the highest priority is the synchronous replica. All others are asynchronous.
     * The synchronous replica replaces the master when needed.
     * When a replica becomes the master, its priority is ignored.
     * 
* * .google.protobuf.Int64Value priority = 10; * @return Whether the priority field is set. */ @java.lang.Override public boolean hasPriority() { return priority_ != null; } /** *
     * Priority of the host as a replica. Higher value means higher priority.
     * The host with the highest priority is the synchronous replica. All others are asynchronous.
     * The synchronous replica replaces the master when needed.
     * When a replica becomes the master, its priority is ignored.
     * 
* * .google.protobuf.Int64Value priority = 10; * @return The priority. */ @java.lang.Override public com.google.protobuf.Int64Value getPriority() { return priority_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : priority_; } /** *
     * Priority of the host as a replica. Higher value means higher priority.
     * The host with the highest priority is the synchronous replica. All others are asynchronous.
     * The synchronous replica replaces the master when needed.
     * When a replica becomes the master, its priority is ignored.
     * 
* * .google.protobuf.Int64Value priority = 10; */ @java.lang.Override public com.google.protobuf.Int64ValueOrBuilder getPriorityOrBuilder() { return getPriority(); } public static final int CONFIG_FIELD_NUMBER = 11; private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig config_; /** *
     * Configuration of a PostgreSQL server for the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; * @return Whether the config field is set. */ @java.lang.Override public boolean hasConfig() { return config_ != null; } /** *
     * Configuration of a PostgreSQL server for the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; * @return The config. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig getConfig() { return config_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.getDefaultInstance() : config_; } /** *
     * Configuration of a PostgreSQL server for the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfigOrBuilder getConfigOrBuilder() { return getConfig(); } public static final int ASSIGN_PUBLIC_IP_FIELD_NUMBER = 12; private boolean assignPublicIp_; /** *
     * Flag showing public IP assignment status to this host.
     * 
* * bool assign_public_ip = 12; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } public static final int REPLICA_TYPE_FIELD_NUMBER = 13; private int replicaType_; /** * .yandex.cloud.mdb.postgresql.v1.Host.ReplicaType replica_type = 13; * @return The enum numeric value on the wire for replicaType. */ @java.lang.Override public int getReplicaTypeValue() { return replicaType_; } /** * .yandex.cloud.mdb.postgresql.v1.Host.ReplicaType replica_type = 13; * @return The replicaType. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType getReplicaType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType.valueOf(replicaType_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType.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(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.postgresql.v1.ClusterOuterClass.Host.Role.ROLE_UNKNOWN.getNumber()) { output.writeEnum(5, role_); } if (health_ != yandex.cloud.api.mdb.postgresql.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicationSource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, replicationSource_); } if (priority_ != null) { output.writeMessage(10, getPriority()); } if (config_ != null) { output.writeMessage(11, getConfig()); } if (assignPublicIp_ != false) { output.writeBool(12, assignPublicIp_); } if (replicaType_ != yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType.REPLICA_TYPE_UNKNOWN.getNumber()) { output.writeEnum(13, replicaType_); } 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.postgresql.v1.ClusterOuterClass.Host.Role.ROLE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, role_); } if (health_ != yandex.cloud.api.mdb.postgresql.v1.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicationSource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, replicationSource_); } if (priority_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getPriority()); } if (config_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getConfig()); } if (assignPublicIp_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, assignPublicIp_); } if (replicaType_ != yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType.REPLICA_TYPE_UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(13, replicaType_); } 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.postgresql.v1.ClusterOuterClass.Host)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host other = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host) obj; if (!getName() .equals(other.getName())) return false; if (!getClusterId() .equals(other.getClusterId())) return false; if (!getZoneId() .equals(other.getZoneId())) return false; if (hasResources() != other.hasResources()) return false; if (hasResources()) { if (!getResources() .equals(other.getResources())) return false; } if (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 (!getReplicationSource() .equals(other.getReplicationSource())) return false; if (hasPriority() != other.hasPriority()) return false; if (hasPriority()) { if (!getPriority() .equals(other.getPriority())) return false; } if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { if (!getConfig() .equals(other.getConfig())) return false; } if (getAssignPublicIp() != other.getAssignPublicIp()) return false; if (replicaType_ != other.replicaType_) 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) + REPLICATION_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getReplicationSource().hashCode(); if (hasPriority()) { hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority().hashCode(); } if (hasConfig()) { hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + ASSIGN_PUBLIC_IP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAssignPublicIp()); hash = (37 * hash) + REPLICA_TYPE_FIELD_NUMBER; hash = (53 * hash) + replicaType_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Host} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.Host) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { 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_ = ""; replicationSource_ = ""; if (priorityBuilder_ == null) { priority_ = null; } else { priority_ = null; priorityBuilder_ = null; } if (configBuilder_ == null) { config_ = null; } else { config_ = null; configBuilder_ = null; } assignPublicIp_ = false; replicaType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Host_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host result = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.clusterId_ = clusterId_; result.zoneId_ = zoneId_; if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.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.replicationSource_ = replicationSource_; if (priorityBuilder_ == null) { result.priority_ = priority_; } else { result.priority_ = priorityBuilder_.build(); } if (configBuilder_ == null) { result.config_ = config_; } else { result.config_ = configBuilder_.build(); } result.assignPublicIp_ = assignPublicIp_; result.replicaType_ = replicaType_; 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.postgresql.v1.ClusterOuterClass.Host) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host other) { if (other == yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getClusterId().isEmpty()) { clusterId_ = other.clusterId_; onChanged(); } if (!other.getZoneId().isEmpty()) { zoneId_ = other.zoneId_; onChanged(); } if (other.hasResources()) { mergeResources(other.getResources()); } if (other.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.getReplicationSource().isEmpty()) { replicationSource_ = other.replicationSource_; onChanged(); } if (other.hasPriority()) { mergePriority(other.getPriority()); } if (other.hasConfig()) { mergeConfig(other.getConfig()); } if (other.getAssignPublicIp() != false) { setAssignPublicIp(other.getAssignPublicIp()); } if (other.replicaType_ != 0) { setReplicaTypeValue(other.getReplicaTypeValue()); } 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.postgresql.v1.ClusterOuterClass.Host parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.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 PostgreSQL host. The host name is assigned by MDB at creation time, and cannot be changed.
       * 1-63 characters long.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the PostgreSQL host. The host name is assigned by MDB at creation time, and cannot be changed.
       * 1-63 characters long.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the PostgreSQL host. The host name is assigned by MDB at creation time, and cannot be changed.
       * 1-63 characters long.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the PostgreSQL host. The host name is assigned by MDB at creation time, and cannot be changed.
       * 1-63 characters long.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the PostgreSQL host. The host name is assigned by MDB at creation time, and cannot be changed.
       * 1-63 characters long.
       * The name is unique across all MDB hosts that exist on the platform, as it defines the FQDN of the host.
       * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object clusterId_ = ""; /** *
       * ID of the PostgreSQL host. The ID is assigned by MDB 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 PostgreSQL host. The ID is assigned by MDB 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 PostgreSQL host. The ID is assigned by MDB 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 PostgreSQL host. The ID is assigned by MDB at creation time.
       * 
* * string cluster_id = 2; * @return This builder for chaining. */ public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); return this; } /** *
       * ID of the PostgreSQL host. The ID is assigned by MDB 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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.postgresql.v1.ClusterOuterClass.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder> resourcesBuilder_; /** *
       * Resources allocated to the PostgreSQL host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** *
       * Resources allocated to the PostgreSQL host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; * @return The resources. */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** *
       * Resources allocated to the PostgreSQL host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; */ public Builder setResources(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } return this; } /** *
       * Resources allocated to the PostgreSQL host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; */ public Builder setResources( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Resources allocated to the PostgreSQL host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; */ public Builder mergeResources(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** *
       * Resources allocated to the PostgreSQL host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** *
       * Resources allocated to the PostgreSQL host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** *
       * Resources allocated to the PostgreSQL host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_; } } /** *
       * Resources allocated to the PostgreSQL host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Resources resources = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private int role_ = 0; /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.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.postgresql.v1.Host.Role role = 5; * @return The role. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Role getRole() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Role result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Role.valueOf(role_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Role.UNRECOGNIZED : result; } /** *
       * Role of the host in the cluster.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Host.Role role = 5; * @param value The role to set. * @return This builder for chaining. */ public Builder setRole(yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.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.postgresql.v1.Host.Health health = 6; * @return The enum numeric value on the wire for health. */ @java.lang.Override public int getHealthValue() { return health_; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Host.Health health = 6; * @param value The enum numeric value on the wire for health to set. * @return This builder for chaining. */ public Builder setHealthValue(int value) { health_ = value; onChanged(); return this; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Host.Health health = 6; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Health result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Health.UNRECOGNIZED : result; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Host.Health health = 6; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.Health value) { if (value == null) { throw new NullPointerException(); } health_ = value.getNumber(); onChanged(); return this; } /** *
       * Status code of the aggregated health of the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ServiceOrBuilder> servicesBuilder_; /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.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.postgresql.v1.Service services = 7; */ public yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Service services = 7; */ public Builder setServices( int index, yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Service services = 7; */ public Builder setServices( int index, yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Service services = 7; */ public Builder addServices(yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Service services = 7; */ public Builder addServices( int index, yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Service services = 7; */ public Builder addServices( yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.Service services = 7; */ public Builder addServices( int index, yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.Service services = 7; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Builder getServicesBuilder( int index) { return getServicesFieldBuilder().getBuilder(index); } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ public yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.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.postgresql.v1.Service services = 7; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Builder addServicesBuilder() { return getServicesFieldBuilder().addBuilder( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.getDefaultInstance()); } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Builder addServicesBuilder( int index) { return getServicesFieldBuilder().addBuilder( index, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.getDefaultInstance()); } /** *
       * Services provided by the host.
       * 
* * repeated .yandex.cloud.mdb.postgresql.v1.Service services = 7; */ public java.util.List getServicesBuilderList() { return getServicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ServiceOrBuilder> getServicesFieldBuilder() { if (servicesBuilder_ == null) { servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Builder, yandex.cloud.api.mdb.postgresql.v1.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 java.lang.Object replicationSource_ = ""; /** *
       * Name of the host to be used as the replication source for cascading replication.
       * 
* * string replication_source = 9; * @return The replicationSource. */ public java.lang.String getReplicationSource() { java.lang.Object ref = replicationSource_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replicationSource_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the host to be used as the replication source for cascading replication.
       * 
* * string replication_source = 9; * @return The bytes for replicationSource. */ public com.google.protobuf.ByteString getReplicationSourceBytes() { java.lang.Object ref = replicationSource_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); replicationSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the host to be used as the replication source for cascading replication.
       * 
* * string replication_source = 9; * @param value The replicationSource to set. * @return This builder for chaining. */ public Builder setReplicationSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } replicationSource_ = value; onChanged(); return this; } /** *
       * Name of the host to be used as the replication source for cascading replication.
       * 
* * string replication_source = 9; * @return This builder for chaining. */ public Builder clearReplicationSource() { replicationSource_ = getDefaultInstance().getReplicationSource(); onChanged(); return this; } /** *
       * Name of the host to be used as the replication source for cascading replication.
       * 
* * string replication_source = 9; * @param value The bytes for replicationSource to set. * @return This builder for chaining. */ public Builder setReplicationSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); replicationSource_ = value; onChanged(); return this; } private com.google.protobuf.Int64Value priority_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> priorityBuilder_; /** *
       * Priority of the host as a replica. Higher value means higher priority.
       * The host with the highest priority is the synchronous replica. All others are asynchronous.
       * The synchronous replica replaces the master when needed.
       * When a replica becomes the master, its priority is ignored.
       * 
* * .google.protobuf.Int64Value priority = 10; * @return Whether the priority field is set. */ public boolean hasPriority() { return priorityBuilder_ != null || priority_ != null; } /** *
       * Priority of the host as a replica. Higher value means higher priority.
       * The host with the highest priority is the synchronous replica. All others are asynchronous.
       * The synchronous replica replaces the master when needed.
       * When a replica becomes the master, its priority is ignored.
       * 
* * .google.protobuf.Int64Value priority = 10; * @return The priority. */ public com.google.protobuf.Int64Value getPriority() { if (priorityBuilder_ == null) { return priority_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : priority_; } else { return priorityBuilder_.getMessage(); } } /** *
       * Priority of the host as a replica. Higher value means higher priority.
       * The host with the highest priority is the synchronous replica. All others are asynchronous.
       * The synchronous replica replaces the master when needed.
       * When a replica becomes the master, its priority is ignored.
       * 
* * .google.protobuf.Int64Value priority = 10; */ public Builder setPriority(com.google.protobuf.Int64Value value) { if (priorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } priority_ = value; onChanged(); } else { priorityBuilder_.setMessage(value); } return this; } /** *
       * Priority of the host as a replica. Higher value means higher priority.
       * The host with the highest priority is the synchronous replica. All others are asynchronous.
       * The synchronous replica replaces the master when needed.
       * When a replica becomes the master, its priority is ignored.
       * 
* * .google.protobuf.Int64Value priority = 10; */ public Builder setPriority( com.google.protobuf.Int64Value.Builder builderForValue) { if (priorityBuilder_ == null) { priority_ = builderForValue.build(); onChanged(); } else { priorityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Priority of the host as a replica. Higher value means higher priority.
       * The host with the highest priority is the synchronous replica. All others are asynchronous.
       * The synchronous replica replaces the master when needed.
       * When a replica becomes the master, its priority is ignored.
       * 
* * .google.protobuf.Int64Value priority = 10; */ public Builder mergePriority(com.google.protobuf.Int64Value value) { if (priorityBuilder_ == null) { if (priority_ != null) { priority_ = com.google.protobuf.Int64Value.newBuilder(priority_).mergeFrom(value).buildPartial(); } else { priority_ = value; } onChanged(); } else { priorityBuilder_.mergeFrom(value); } return this; } /** *
       * Priority of the host as a replica. Higher value means higher priority.
       * The host with the highest priority is the synchronous replica. All others are asynchronous.
       * The synchronous replica replaces the master when needed.
       * When a replica becomes the master, its priority is ignored.
       * 
* * .google.protobuf.Int64Value priority = 10; */ public Builder clearPriority() { if (priorityBuilder_ == null) { priority_ = null; onChanged(); } else { priority_ = null; priorityBuilder_ = null; } return this; } /** *
       * Priority of the host as a replica. Higher value means higher priority.
       * The host with the highest priority is the synchronous replica. All others are asynchronous.
       * The synchronous replica replaces the master when needed.
       * When a replica becomes the master, its priority is ignored.
       * 
* * .google.protobuf.Int64Value priority = 10; */ public com.google.protobuf.Int64Value.Builder getPriorityBuilder() { onChanged(); return getPriorityFieldBuilder().getBuilder(); } /** *
       * Priority of the host as a replica. Higher value means higher priority.
       * The host with the highest priority is the synchronous replica. All others are asynchronous.
       * The synchronous replica replaces the master when needed.
       * When a replica becomes the master, its priority is ignored.
       * 
* * .google.protobuf.Int64Value priority = 10; */ public com.google.protobuf.Int64ValueOrBuilder getPriorityOrBuilder() { if (priorityBuilder_ != null) { return priorityBuilder_.getMessageOrBuilder(); } else { return priority_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : priority_; } } /** *
       * Priority of the host as a replica. Higher value means higher priority.
       * The host with the highest priority is the synchronous replica. All others are asynchronous.
       * The synchronous replica replaces the master when needed.
       * When a replica becomes the master, its priority is ignored.
       * 
* * .google.protobuf.Int64Value priority = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> getPriorityFieldBuilder() { if (priorityBuilder_ == null) { priorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>( getPriority(), getParentForChildren(), isClean()); priority_ = null; } return priorityBuilder_; } private yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig config_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfigOrBuilder> configBuilder_; /** *
       * Configuration of a PostgreSQL server for the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** *
       * Configuration of a PostgreSQL server for the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; * @return The config. */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig getConfig() { if (configBuilder_ == null) { return config_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** *
       * Configuration of a PostgreSQL server for the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; */ public Builder setConfig(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } config_ = value; onChanged(); } else { configBuilder_.setMessage(value); } return this; } /** *
       * Configuration of a PostgreSQL server for the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; */ public Builder setConfig( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Configuration of a PostgreSQL server for the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; */ public Builder mergeConfig(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } onChanged(); } else { configBuilder_.mergeFrom(value); } return this; } /** *
       * Configuration of a PostgreSQL server for the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; */ public Builder clearConfig() { if (configBuilder_ == null) { config_ = null; onChanged(); } else { config_ = null; configBuilder_ = null; } return this; } /** *
       * Configuration of a PostgreSQL server for the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.Builder getConfigBuilder() { onChanged(); return getConfigFieldBuilder().getBuilder(); } /** *
       * Configuration of a PostgreSQL server for the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; */ public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { return config_ == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.getDefaultInstance() : config_; } } /** *
       * Configuration of a PostgreSQL server for the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.HostConfig config = 11; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.Builder, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfigOrBuilder>( getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } private boolean assignPublicIp_ ; /** *
       * Flag showing public IP assignment status to this host.
       * 
* * bool assign_public_ip = 12; * @return The assignPublicIp. */ @java.lang.Override public boolean getAssignPublicIp() { return assignPublicIp_; } /** *
       * Flag showing public IP assignment status to this host.
       * 
* * bool assign_public_ip = 12; * @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 = 12; * @return This builder for chaining. */ public Builder clearAssignPublicIp() { assignPublicIp_ = false; onChanged(); return this; } private int replicaType_ = 0; /** * .yandex.cloud.mdb.postgresql.v1.Host.ReplicaType replica_type = 13; * @return The enum numeric value on the wire for replicaType. */ @java.lang.Override public int getReplicaTypeValue() { return replicaType_; } /** * .yandex.cloud.mdb.postgresql.v1.Host.ReplicaType replica_type = 13; * @param value The enum numeric value on the wire for replicaType to set. * @return This builder for chaining. */ public Builder setReplicaTypeValue(int value) { replicaType_ = value; onChanged(); return this; } /** * .yandex.cloud.mdb.postgresql.v1.Host.ReplicaType replica_type = 13; * @return The replicaType. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType getReplicaType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType.valueOf(replicaType_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType.UNRECOGNIZED : result; } /** * .yandex.cloud.mdb.postgresql.v1.Host.ReplicaType replica_type = 13; * @param value The replicaType to set. * @return This builder for chaining. */ public Builder setReplicaType(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host.ReplicaType value) { if (value == null) { throw new NullPointerException(); } replicaType_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.mdb.postgresql.v1.Host.ReplicaType replica_type = 13; * @return This builder for chaining. */ public Builder clearReplicaType() { replicaType_ = 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.postgresql.v1.Host) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.Host) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host(); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Host parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Host(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HostConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.HostConfig) com.google.protobuf.MessageOrBuilder { /** *
     * Configuration for a host with PostgreSQL 9.6 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; * @return Whether the postgresqlConfig96 field is set. */ boolean hasPostgresqlConfig96(); /** *
     * Configuration for a host with PostgreSQL 9.6 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; * @return The postgresqlConfig96. */ yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6 getPostgresqlConfig96(); /** *
     * Configuration for a host with PostgreSQL 9.6 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6OrBuilder getPostgresqlConfig96OrBuilder(); /** *
     * Configuration for a host with PostgreSQL 10 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; * @return Whether the postgresqlConfig101c field is set. */ boolean hasPostgresqlConfig101C(); /** *
     * Configuration for a host with PostgreSQL 10 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; * @return The postgresqlConfig101c. */ yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C getPostgresqlConfig101C(); /** *
     * Configuration for a host with PostgreSQL 10 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1COrBuilder getPostgresqlConfig101COrBuilder(); /** *
     * Configuration for a host with PostgreSQL 10 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; * @return Whether the postgresqlConfig10 field is set. */ boolean hasPostgresqlConfig10(); /** *
     * Configuration for a host with PostgreSQL 10 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; * @return The postgresqlConfig10. */ yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 getPostgresqlConfig10(); /** *
     * Configuration for a host with PostgreSQL 10 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10OrBuilder getPostgresqlConfig10OrBuilder(); /** *
     * Configuration for a host with PostgreSQL 11 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; * @return Whether the postgresqlConfig11 field is set. */ boolean hasPostgresqlConfig11(); /** *
     * Configuration for a host with PostgreSQL 11 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; * @return The postgresqlConfig11. */ yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11 getPostgresqlConfig11(); /** *
     * Configuration for a host with PostgreSQL 11 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11OrBuilder getPostgresqlConfig11OrBuilder(); /** *
     * Configuration for a host with PostgreSQL 11 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; * @return Whether the postgresqlConfig111c field is set. */ boolean hasPostgresqlConfig111C(); /** *
     * Configuration for a host with PostgreSQL 11 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; * @return The postgresqlConfig111c. */ yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C getPostgresqlConfig111C(); /** *
     * Configuration for a host with PostgreSQL 11 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1COrBuilder getPostgresqlConfig111COrBuilder(); /** *
     * Configuration for a host with PostgreSQL 12 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; * @return Whether the postgresqlConfig12 field is set. */ boolean hasPostgresqlConfig12(); /** *
     * Configuration for a host with PostgreSQL 12 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; * @return The postgresqlConfig12. */ yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12 getPostgresqlConfig12(); /** *
     * Configuration for a host with PostgreSQL 12 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12OrBuilder getPostgresqlConfig12OrBuilder(); /** *
     * Configuration for a host with PostgreSQL 12 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; * @return Whether the postgresqlConfig121c field is set. */ boolean hasPostgresqlConfig121C(); /** *
     * Configuration for a host with PostgreSQL 12 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; * @return The postgresqlConfig121c. */ yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C getPostgresqlConfig121C(); /** *
     * Configuration for a host with PostgreSQL 12 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1COrBuilder getPostgresqlConfig121COrBuilder(); /** *
     * Configuration for a host with PostgreSQL 13 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; * @return Whether the postgresqlConfig13 field is set. */ boolean hasPostgresqlConfig13(); /** *
     * Configuration for a host with PostgreSQL 13 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; * @return The postgresqlConfig13. */ yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13 getPostgresqlConfig13(); /** *
     * Configuration for a host with PostgreSQL 13 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13OrBuilder getPostgresqlConfig13OrBuilder(); /** *
     * Configuration for a host with PostgreSQL 13 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; * @return Whether the postgresqlConfig131c field is set. */ boolean hasPostgresqlConfig131C(); /** *
     * Configuration for a host with PostgreSQL 13 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; * @return The postgresqlConfig131c. */ yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C getPostgresqlConfig131C(); /** *
     * Configuration for a host with PostgreSQL 13 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1COrBuilder getPostgresqlConfig131COrBuilder(); /** *
     * Configuration for a host with PostgreSQL 14 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; * @return Whether the postgresqlConfig14 field is set. */ boolean hasPostgresqlConfig14(); /** *
     * Configuration for a host with PostgreSQL 14 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; * @return The postgresqlConfig14. */ yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14 getPostgresqlConfig14(); /** *
     * Configuration for a host with PostgreSQL 14 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14OrBuilder getPostgresqlConfig14OrBuilder(); /** *
     * Configuration for a host with PostgreSQL 14 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; * @return Whether the postgresqlConfig141c field is set. */ boolean hasPostgresqlConfig141C(); /** *
     * Configuration for a host with PostgreSQL 14 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; * @return The postgresqlConfig141c. */ yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C getPostgresqlConfig141C(); /** *
     * Configuration for a host with PostgreSQL 14 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1COrBuilder getPostgresqlConfig141COrBuilder(); /** *
     * Configuration for a host with PostgreSQL 15 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; * @return Whether the postgresqlConfig15 field is set. */ boolean hasPostgresqlConfig15(); /** *
     * Configuration for a host with PostgreSQL 15 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; * @return The postgresqlConfig15. */ yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15 getPostgresqlConfig15(); /** *
     * Configuration for a host with PostgreSQL 15 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15OrBuilder getPostgresqlConfig15OrBuilder(); /** *
     * Configuration for a host with PostgreSQL 15 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; * @return Whether the postgresqlConfig151c field is set. */ boolean hasPostgresqlConfig151C(); /** *
     * Configuration for a host with PostgreSQL 15 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; * @return The postgresqlConfig151c. */ yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C getPostgresqlConfig151C(); /** *
     * Configuration for a host with PostgreSQL 15 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; */ yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1COrBuilder getPostgresqlConfig151COrBuilder(); public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.PostgresqlConfigCase getPostgresqlConfigCase(); } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.HostConfig} */ public static final class HostConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.HostConfig) HostConfigOrBuilder { private static final long serialVersionUID = 0L; // Use HostConfig.newBuilder() to construct. private HostConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HostConfig() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HostConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HostConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.Builder subBuilder = null; if (postgresqlConfigCase_ == 1) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 1; break; } case 18: { yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.Builder subBuilder = null; if (postgresqlConfigCase_ == 2) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 2; break; } case 26: { yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.Builder subBuilder = null; if (postgresqlConfigCase_ == 3) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 3; break; } case 34: { yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 4) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 4; break; } case 42: { yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.Builder subBuilder = null; if (postgresqlConfigCase_ == 5) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 5; break; } case 50: { yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 6) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 6; break; } case 58: { yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 7) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 7; break; } case 66: { yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.Builder subBuilder = null; if (postgresqlConfigCase_ == 8) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 8; break; } case 74: { yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.Builder subBuilder = null; if (postgresqlConfigCase_ == 9) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 9; break; } case 82: { yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 10) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 10; break; } case 90: { yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 11) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 11; break; } case 98: { yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.Builder subBuilder = null; if (postgresqlConfigCase_ == 12) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 12; break; } case 106: { yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.Builder subBuilder = null; if (postgresqlConfigCase_ == 13) { subBuilder = ((yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_).toBuilder(); } postgresqlConfig_ = input.readMessage(yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_); postgresqlConfig_ = subBuilder.buildPartial(); } postgresqlConfigCase_ = 13; 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.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.Builder.class); } private int postgresqlConfigCase_ = 0; private java.lang.Object postgresqlConfig_; public enum PostgresqlConfigCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { POSTGRESQL_CONFIG_9_6(1), POSTGRESQL_CONFIG_10_1C(4), POSTGRESQL_CONFIG_10(2), POSTGRESQL_CONFIG_11(3), POSTGRESQL_CONFIG_11_1C(6), POSTGRESQL_CONFIG_12(5), POSTGRESQL_CONFIG_12_1C(7), POSTGRESQL_CONFIG_13(8), POSTGRESQL_CONFIG_13_1C(10), POSTGRESQL_CONFIG_14(9), POSTGRESQL_CONFIG_14_1C(11), POSTGRESQL_CONFIG_15(12), POSTGRESQL_CONFIG_15_1C(13), POSTGRESQLCONFIG_NOT_SET(0); private final int value; private PostgresqlConfigCase(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 PostgresqlConfigCase valueOf(int value) { return forNumber(value); } public static PostgresqlConfigCase forNumber(int value) { switch (value) { case 1: return POSTGRESQL_CONFIG_9_6; case 4: return POSTGRESQL_CONFIG_10_1C; case 2: return POSTGRESQL_CONFIG_10; case 3: return POSTGRESQL_CONFIG_11; case 6: return POSTGRESQL_CONFIG_11_1C; case 5: return POSTGRESQL_CONFIG_12; case 7: return POSTGRESQL_CONFIG_12_1C; case 8: return POSTGRESQL_CONFIG_13; case 10: return POSTGRESQL_CONFIG_13_1C; case 9: return POSTGRESQL_CONFIG_14; case 11: return POSTGRESQL_CONFIG_14_1C; case 12: return POSTGRESQL_CONFIG_15; case 13: return POSTGRESQL_CONFIG_15_1C; case 0: return POSTGRESQLCONFIG_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PostgresqlConfigCase getPostgresqlConfigCase() { return PostgresqlConfigCase.forNumber( postgresqlConfigCase_); } public static final int POSTGRESQL_CONFIG_9_6_FIELD_NUMBER = 1; /** *
     * Configuration for a host with PostgreSQL 9.6 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; * @return Whether the postgresqlConfig96 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig96() { return postgresqlConfigCase_ == 1; } /** *
     * Configuration for a host with PostgreSQL 9.6 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; * @return The postgresqlConfig96. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6 getPostgresqlConfig96() { if (postgresqlConfigCase_ == 1) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 9.6 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6OrBuilder getPostgresqlConfig96OrBuilder() { if (postgresqlConfigCase_ == 1) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_10_1C_FIELD_NUMBER = 4; /** *
     * Configuration for a host with PostgreSQL 10 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; * @return Whether the postgresqlConfig101c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig101C() { return postgresqlConfigCase_ == 4; } /** *
     * Configuration for a host with PostgreSQL 10 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; * @return The postgresqlConfig101c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C getPostgresqlConfig101C() { if (postgresqlConfigCase_ == 4) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 10 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1COrBuilder getPostgresqlConfig101COrBuilder() { if (postgresqlConfigCase_ == 4) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_10_FIELD_NUMBER = 2; /** *
     * Configuration for a host with PostgreSQL 10 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; * @return Whether the postgresqlConfig10 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig10() { return postgresqlConfigCase_ == 2; } /** *
     * Configuration for a host with PostgreSQL 10 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; * @return The postgresqlConfig10. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 getPostgresqlConfig10() { if (postgresqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 10 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10OrBuilder getPostgresqlConfig10OrBuilder() { if (postgresqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_11_FIELD_NUMBER = 3; /** *
     * Configuration for a host with PostgreSQL 11 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; * @return Whether the postgresqlConfig11 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig11() { return postgresqlConfigCase_ == 3; } /** *
     * Configuration for a host with PostgreSQL 11 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; * @return The postgresqlConfig11. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11 getPostgresqlConfig11() { if (postgresqlConfigCase_ == 3) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 11 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11OrBuilder getPostgresqlConfig11OrBuilder() { if (postgresqlConfigCase_ == 3) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_11_1C_FIELD_NUMBER = 6; /** *
     * Configuration for a host with PostgreSQL 11 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; * @return Whether the postgresqlConfig111c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig111C() { return postgresqlConfigCase_ == 6; } /** *
     * Configuration for a host with PostgreSQL 11 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; * @return The postgresqlConfig111c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C getPostgresqlConfig111C() { if (postgresqlConfigCase_ == 6) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 11 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1COrBuilder getPostgresqlConfig111COrBuilder() { if (postgresqlConfigCase_ == 6) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_12_FIELD_NUMBER = 5; /** *
     * Configuration for a host with PostgreSQL 12 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; * @return Whether the postgresqlConfig12 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig12() { return postgresqlConfigCase_ == 5; } /** *
     * Configuration for a host with PostgreSQL 12 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; * @return The postgresqlConfig12. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12 getPostgresqlConfig12() { if (postgresqlConfigCase_ == 5) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 12 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12OrBuilder getPostgresqlConfig12OrBuilder() { if (postgresqlConfigCase_ == 5) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_12_1C_FIELD_NUMBER = 7; /** *
     * Configuration for a host with PostgreSQL 12 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; * @return Whether the postgresqlConfig121c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig121C() { return postgresqlConfigCase_ == 7; } /** *
     * Configuration for a host with PostgreSQL 12 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; * @return The postgresqlConfig121c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C getPostgresqlConfig121C() { if (postgresqlConfigCase_ == 7) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 12 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1COrBuilder getPostgresqlConfig121COrBuilder() { if (postgresqlConfigCase_ == 7) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_13_FIELD_NUMBER = 8; /** *
     * Configuration for a host with PostgreSQL 13 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; * @return Whether the postgresqlConfig13 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig13() { return postgresqlConfigCase_ == 8; } /** *
     * Configuration for a host with PostgreSQL 13 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; * @return The postgresqlConfig13. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13 getPostgresqlConfig13() { if (postgresqlConfigCase_ == 8) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 13 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13OrBuilder getPostgresqlConfig13OrBuilder() { if (postgresqlConfigCase_ == 8) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_13_1C_FIELD_NUMBER = 10; /** *
     * Configuration for a host with PostgreSQL 13 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; * @return Whether the postgresqlConfig131c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig131C() { return postgresqlConfigCase_ == 10; } /** *
     * Configuration for a host with PostgreSQL 13 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; * @return The postgresqlConfig131c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C getPostgresqlConfig131C() { if (postgresqlConfigCase_ == 10) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 13 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1COrBuilder getPostgresqlConfig131COrBuilder() { if (postgresqlConfigCase_ == 10) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_14_FIELD_NUMBER = 9; /** *
     * Configuration for a host with PostgreSQL 14 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; * @return Whether the postgresqlConfig14 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig14() { return postgresqlConfigCase_ == 9; } /** *
     * Configuration for a host with PostgreSQL 14 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; * @return The postgresqlConfig14. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14 getPostgresqlConfig14() { if (postgresqlConfigCase_ == 9) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 14 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14OrBuilder getPostgresqlConfig14OrBuilder() { if (postgresqlConfigCase_ == 9) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_14_1C_FIELD_NUMBER = 11; /** *
     * Configuration for a host with PostgreSQL 14 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; * @return Whether the postgresqlConfig141c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig141C() { return postgresqlConfigCase_ == 11; } /** *
     * Configuration for a host with PostgreSQL 14 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; * @return The postgresqlConfig141c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C getPostgresqlConfig141C() { if (postgresqlConfigCase_ == 11) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 14 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1COrBuilder getPostgresqlConfig141COrBuilder() { if (postgresqlConfigCase_ == 11) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_15_FIELD_NUMBER = 12; /** *
     * Configuration for a host with PostgreSQL 15 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; * @return Whether the postgresqlConfig15 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig15() { return postgresqlConfigCase_ == 12; } /** *
     * Configuration for a host with PostgreSQL 15 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; * @return The postgresqlConfig15. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15 getPostgresqlConfig15() { if (postgresqlConfigCase_ == 12) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 15 server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15OrBuilder getPostgresqlConfig15OrBuilder() { if (postgresqlConfigCase_ == 12) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.getDefaultInstance(); } public static final int POSTGRESQL_CONFIG_15_1C_FIELD_NUMBER = 13; /** *
     * Configuration for a host with PostgreSQL 15 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; * @return Whether the postgresqlConfig151c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig151C() { return postgresqlConfigCase_ == 13; } /** *
     * Configuration for a host with PostgreSQL 15 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; * @return The postgresqlConfig151c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C getPostgresqlConfig151C() { if (postgresqlConfigCase_ == 13) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.getDefaultInstance(); } /** *
     * Configuration for a host with PostgreSQL 15 1C server deployed.
     * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1COrBuilder getPostgresqlConfig151COrBuilder() { if (postgresqlConfigCase_ == 13) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (postgresqlConfigCase_ == 1) { output.writeMessage(1, (yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_); } if (postgresqlConfigCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_); } if (postgresqlConfigCase_ == 3) { output.writeMessage(3, (yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_); } if (postgresqlConfigCase_ == 4) { output.writeMessage(4, (yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 5) { output.writeMessage(5, (yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_); } if (postgresqlConfigCase_ == 6) { output.writeMessage(6, (yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 7) { output.writeMessage(7, (yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 8) { output.writeMessage(8, (yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_); } if (postgresqlConfigCase_ == 9) { output.writeMessage(9, (yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_); } if (postgresqlConfigCase_ == 10) { output.writeMessage(10, (yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 11) { output.writeMessage(11, (yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 12) { output.writeMessage(12, (yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_); } if (postgresqlConfigCase_ == 13) { output.writeMessage(13, (yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (postgresqlConfigCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_); } if (postgresqlConfigCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_); } if (postgresqlConfigCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_); } if (postgresqlConfigCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_); } if (postgresqlConfigCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_); } if (postgresqlConfigCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_); } if (postgresqlConfigCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_); } if (postgresqlConfigCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_); } if (postgresqlConfigCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_); } 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.postgresql.v1.ClusterOuterClass.HostConfig)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig other = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig) obj; if (!getPostgresqlConfigCase().equals(other.getPostgresqlConfigCase())) return false; switch (postgresqlConfigCase_) { case 1: if (!getPostgresqlConfig96() .equals(other.getPostgresqlConfig96())) return false; break; case 4: if (!getPostgresqlConfig101C() .equals(other.getPostgresqlConfig101C())) return false; break; case 2: if (!getPostgresqlConfig10() .equals(other.getPostgresqlConfig10())) return false; break; case 3: if (!getPostgresqlConfig11() .equals(other.getPostgresqlConfig11())) return false; break; case 6: if (!getPostgresqlConfig111C() .equals(other.getPostgresqlConfig111C())) return false; break; case 5: if (!getPostgresqlConfig12() .equals(other.getPostgresqlConfig12())) return false; break; case 7: if (!getPostgresqlConfig121C() .equals(other.getPostgresqlConfig121C())) return false; break; case 8: if (!getPostgresqlConfig13() .equals(other.getPostgresqlConfig13())) return false; break; case 10: if (!getPostgresqlConfig131C() .equals(other.getPostgresqlConfig131C())) return false; break; case 9: if (!getPostgresqlConfig14() .equals(other.getPostgresqlConfig14())) return false; break; case 11: if (!getPostgresqlConfig141C() .equals(other.getPostgresqlConfig141C())) return false; break; case 12: if (!getPostgresqlConfig15() .equals(other.getPostgresqlConfig15())) return false; break; case 13: if (!getPostgresqlConfig151C() .equals(other.getPostgresqlConfig151C())) 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(); switch (postgresqlConfigCase_) { case 1: hash = (37 * hash) + POSTGRESQL_CONFIG_9_6_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig96().hashCode(); break; case 4: hash = (37 * hash) + POSTGRESQL_CONFIG_10_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig101C().hashCode(); break; case 2: hash = (37 * hash) + POSTGRESQL_CONFIG_10_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig10().hashCode(); break; case 3: hash = (37 * hash) + POSTGRESQL_CONFIG_11_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig11().hashCode(); break; case 6: hash = (37 * hash) + POSTGRESQL_CONFIG_11_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig111C().hashCode(); break; case 5: hash = (37 * hash) + POSTGRESQL_CONFIG_12_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig12().hashCode(); break; case 7: hash = (37 * hash) + POSTGRESQL_CONFIG_12_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig121C().hashCode(); break; case 8: hash = (37 * hash) + POSTGRESQL_CONFIG_13_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig13().hashCode(); break; case 10: hash = (37 * hash) + POSTGRESQL_CONFIG_13_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig131C().hashCode(); break; case 9: hash = (37 * hash) + POSTGRESQL_CONFIG_14_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig14().hashCode(); break; case 11: hash = (37 * hash) + POSTGRESQL_CONFIG_14_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig141C().hashCode(); break; case 12: hash = (37 * hash) + POSTGRESQL_CONFIG_15_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig15().hashCode(); break; case 13: hash = (37 * hash) + POSTGRESQL_CONFIG_15_1C_FIELD_NUMBER; hash = (53 * hash) + getPostgresqlConfig151C().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig 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.postgresql.v1.ClusterOuterClass.HostConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig 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.postgresql.v1.ClusterOuterClass.HostConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig 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.postgresql.v1.ClusterOuterClass.HostConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig 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.postgresql.v1.ClusterOuterClass.HostConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig 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.postgresql.v1.ClusterOuterClass.HostConfig 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.postgresql.v1.HostConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.HostConfig) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.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(); postgresqlConfigCase_ = 0; postgresqlConfig_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig result = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig(this); if (postgresqlConfigCase_ == 1) { if (postgresqlConfig96Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig96Builder_.build(); } } if (postgresqlConfigCase_ == 4) { if (postgresqlConfig101CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig101CBuilder_.build(); } } if (postgresqlConfigCase_ == 2) { if (postgresqlConfig10Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig10Builder_.build(); } } if (postgresqlConfigCase_ == 3) { if (postgresqlConfig11Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig11Builder_.build(); } } if (postgresqlConfigCase_ == 6) { if (postgresqlConfig111CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig111CBuilder_.build(); } } if (postgresqlConfigCase_ == 5) { if (postgresqlConfig12Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig12Builder_.build(); } } if (postgresqlConfigCase_ == 7) { if (postgresqlConfig121CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig121CBuilder_.build(); } } if (postgresqlConfigCase_ == 8) { if (postgresqlConfig13Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig13Builder_.build(); } } if (postgresqlConfigCase_ == 10) { if (postgresqlConfig131CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig131CBuilder_.build(); } } if (postgresqlConfigCase_ == 9) { if (postgresqlConfig14Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig14Builder_.build(); } } if (postgresqlConfigCase_ == 11) { if (postgresqlConfig141CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig141CBuilder_.build(); } } if (postgresqlConfigCase_ == 12) { if (postgresqlConfig15Builder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig15Builder_.build(); } } if (postgresqlConfigCase_ == 13) { if (postgresqlConfig151CBuilder_ == null) { result.postgresqlConfig_ = postgresqlConfig_; } else { result.postgresqlConfig_ = postgresqlConfig151CBuilder_.build(); } } result.postgresqlConfigCase_ = postgresqlConfigCase_; 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.postgresql.v1.ClusterOuterClass.HostConfig) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig other) { if (other == yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig.getDefaultInstance()) return this; switch (other.getPostgresqlConfigCase()) { case POSTGRESQL_CONFIG_9_6: { mergePostgresqlConfig96(other.getPostgresqlConfig96()); break; } case POSTGRESQL_CONFIG_10_1C: { mergePostgresqlConfig101C(other.getPostgresqlConfig101C()); break; } case POSTGRESQL_CONFIG_10: { mergePostgresqlConfig10(other.getPostgresqlConfig10()); break; } case POSTGRESQL_CONFIG_11: { mergePostgresqlConfig11(other.getPostgresqlConfig11()); break; } case POSTGRESQL_CONFIG_11_1C: { mergePostgresqlConfig111C(other.getPostgresqlConfig111C()); break; } case POSTGRESQL_CONFIG_12: { mergePostgresqlConfig12(other.getPostgresqlConfig12()); break; } case POSTGRESQL_CONFIG_12_1C: { mergePostgresqlConfig121C(other.getPostgresqlConfig121C()); break; } case POSTGRESQL_CONFIG_13: { mergePostgresqlConfig13(other.getPostgresqlConfig13()); break; } case POSTGRESQL_CONFIG_13_1C: { mergePostgresqlConfig131C(other.getPostgresqlConfig131C()); break; } case POSTGRESQL_CONFIG_14: { mergePostgresqlConfig14(other.getPostgresqlConfig14()); break; } case POSTGRESQL_CONFIG_14_1C: { mergePostgresqlConfig141C(other.getPostgresqlConfig141C()); break; } case POSTGRESQL_CONFIG_15: { mergePostgresqlConfig15(other.getPostgresqlConfig15()); break; } case POSTGRESQL_CONFIG_15_1C: { mergePostgresqlConfig151C(other.getPostgresqlConfig151C()); break; } case POSTGRESQLCONFIG_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.postgresql.v1.ClusterOuterClass.HostConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int postgresqlConfigCase_ = 0; private java.lang.Object postgresqlConfig_; public PostgresqlConfigCase getPostgresqlConfigCase() { return PostgresqlConfigCase.forNumber( postgresqlConfigCase_); } public Builder clearPostgresqlConfig() { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6, yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6OrBuilder> postgresqlConfig96Builder_; /** *
       * Configuration for a host with PostgreSQL 9.6 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; * @return Whether the postgresqlConfig96 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig96() { return postgresqlConfigCase_ == 1; } /** *
       * Configuration for a host with PostgreSQL 9.6 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; * @return The postgresqlConfig96. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6 getPostgresqlConfig96() { if (postgresqlConfig96Builder_ == null) { if (postgresqlConfigCase_ == 1) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 1) { return postgresqlConfig96Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 9.6 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; */ public Builder setPostgresqlConfig96(yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6 value) { if (postgresqlConfig96Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig96Builder_.setMessage(value); } postgresqlConfigCase_ = 1; return this; } /** *
       * Configuration for a host with PostgreSQL 9.6 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; */ public Builder setPostgresqlConfig96( yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.Builder builderForValue) { if (postgresqlConfig96Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig96Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 1; return this; } /** *
       * Configuration for a host with PostgreSQL 9.6 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; */ public Builder mergePostgresqlConfig96(yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6 value) { if (postgresqlConfig96Builder_ == null) { if (postgresqlConfigCase_ == 1 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 1) { postgresqlConfig96Builder_.mergeFrom(value); } postgresqlConfig96Builder_.setMessage(value); } postgresqlConfigCase_ = 1; return this; } /** *
       * Configuration for a host with PostgreSQL 9.6 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; */ public Builder clearPostgresqlConfig96() { if (postgresqlConfig96Builder_ == null) { if (postgresqlConfigCase_ == 1) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 1) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig96Builder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 9.6 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.Builder getPostgresqlConfig96Builder() { return getPostgresqlConfig96FieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 9.6 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6OrBuilder getPostgresqlConfig96OrBuilder() { if ((postgresqlConfigCase_ == 1) && (postgresqlConfig96Builder_ != null)) { return postgresqlConfig96Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 1) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 9.6 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6 postgresql_config_9_6 = 1 [json_name = "postgresqlHostConfig_9_6"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6, yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6OrBuilder> getPostgresqlConfig96FieldBuilder() { if (postgresqlConfig96Builder_ == null) { if (!(postgresqlConfigCase_ == 1)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.getDefaultInstance(); } postgresqlConfig96Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6, yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host96.PostgresqlHostConfig9_6) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 1; onChanged();; return postgresqlConfig96Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1COrBuilder> postgresqlConfig101CBuilder_; /** *
       * Configuration for a host with PostgreSQL 10 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; * @return Whether the postgresqlConfig101c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig101C() { return postgresqlConfigCase_ == 4; } /** *
       * Configuration for a host with PostgreSQL 10 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; * @return The postgresqlConfig101c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C getPostgresqlConfig101C() { if (postgresqlConfig101CBuilder_ == null) { if (postgresqlConfigCase_ == 4) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 4) { return postgresqlConfig101CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 10 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; */ public Builder setPostgresqlConfig101C(yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C value) { if (postgresqlConfig101CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig101CBuilder_.setMessage(value); } postgresqlConfigCase_ = 4; return this; } /** *
       * Configuration for a host with PostgreSQL 10 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; */ public Builder setPostgresqlConfig101C( yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.Builder builderForValue) { if (postgresqlConfig101CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig101CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 4; return this; } /** *
       * Configuration for a host with PostgreSQL 10 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; */ public Builder mergePostgresqlConfig101C(yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C value) { if (postgresqlConfig101CBuilder_ == null) { if (postgresqlConfigCase_ == 4 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 4) { postgresqlConfig101CBuilder_.mergeFrom(value); } postgresqlConfig101CBuilder_.setMessage(value); } postgresqlConfigCase_ = 4; return this; } /** *
       * Configuration for a host with PostgreSQL 10 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; */ public Builder clearPostgresqlConfig101C() { if (postgresqlConfig101CBuilder_ == null) { if (postgresqlConfigCase_ == 4) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 4) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig101CBuilder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 10 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.Builder getPostgresqlConfig101CBuilder() { return getPostgresqlConfig101CFieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 10 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1COrBuilder getPostgresqlConfig101COrBuilder() { if ((postgresqlConfigCase_ == 4) && (postgresqlConfig101CBuilder_ != null)) { return postgresqlConfig101CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 4) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 10 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C postgresql_config_10_1c = 4 [json_name = "postgresqlHostConfig_10_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1COrBuilder> getPostgresqlConfig101CFieldBuilder() { if (postgresqlConfig101CBuilder_ == null) { if (!(postgresqlConfigCase_ == 4)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.getDefaultInstance(); } postgresqlConfig101CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host101C.PostgresqlHostConfig10_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 4; onChanged();; return postgresqlConfig101CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10, yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10OrBuilder> postgresqlConfig10Builder_; /** *
       * Configuration for a host with PostgreSQL 10 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; * @return Whether the postgresqlConfig10 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig10() { return postgresqlConfigCase_ == 2; } /** *
       * Configuration for a host with PostgreSQL 10 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; * @return The postgresqlConfig10. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 getPostgresqlConfig10() { if (postgresqlConfig10Builder_ == null) { if (postgresqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 2) { return postgresqlConfig10Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 10 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; */ public Builder setPostgresqlConfig10(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 value) { if (postgresqlConfig10Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig10Builder_.setMessage(value); } postgresqlConfigCase_ = 2; return this; } /** *
       * Configuration for a host with PostgreSQL 10 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; */ public Builder setPostgresqlConfig10( yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.Builder builderForValue) { if (postgresqlConfig10Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig10Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 2; return this; } /** *
       * Configuration for a host with PostgreSQL 10 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; */ public Builder mergePostgresqlConfig10(yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10 value) { if (postgresqlConfig10Builder_ == null) { if (postgresqlConfigCase_ == 2 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 2) { postgresqlConfig10Builder_.mergeFrom(value); } postgresqlConfig10Builder_.setMessage(value); } postgresqlConfigCase_ = 2; return this; } /** *
       * Configuration for a host with PostgreSQL 10 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; */ public Builder clearPostgresqlConfig10() { if (postgresqlConfig10Builder_ == null) { if (postgresqlConfigCase_ == 2) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 2) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig10Builder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 10 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.Builder getPostgresqlConfig10Builder() { return getPostgresqlConfig10FieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 10 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10OrBuilder getPostgresqlConfig10OrBuilder() { if ((postgresqlConfigCase_ == 2) && (postgresqlConfig10Builder_ != null)) { return postgresqlConfig10Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 2) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 10 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10 postgresql_config_10 = 2 [json_name = "postgresqlHostConfig_10"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10, yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10OrBuilder> getPostgresqlConfig10FieldBuilder() { if (postgresqlConfig10Builder_ == null) { if (!(postgresqlConfigCase_ == 2)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.getDefaultInstance(); } postgresqlConfig10Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10, yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host10.PostgresqlHostConfig10) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 2; onChanged();; return postgresqlConfig10Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11, yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11OrBuilder> postgresqlConfig11Builder_; /** *
       * Configuration for a host with PostgreSQL 11 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; * @return Whether the postgresqlConfig11 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig11() { return postgresqlConfigCase_ == 3; } /** *
       * Configuration for a host with PostgreSQL 11 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; * @return The postgresqlConfig11. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11 getPostgresqlConfig11() { if (postgresqlConfig11Builder_ == null) { if (postgresqlConfigCase_ == 3) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 3) { return postgresqlConfig11Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 11 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; */ public Builder setPostgresqlConfig11(yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11 value) { if (postgresqlConfig11Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig11Builder_.setMessage(value); } postgresqlConfigCase_ = 3; return this; } /** *
       * Configuration for a host with PostgreSQL 11 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; */ public Builder setPostgresqlConfig11( yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.Builder builderForValue) { if (postgresqlConfig11Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig11Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 3; return this; } /** *
       * Configuration for a host with PostgreSQL 11 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; */ public Builder mergePostgresqlConfig11(yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11 value) { if (postgresqlConfig11Builder_ == null) { if (postgresqlConfigCase_ == 3 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 3) { postgresqlConfig11Builder_.mergeFrom(value); } postgresqlConfig11Builder_.setMessage(value); } postgresqlConfigCase_ = 3; return this; } /** *
       * Configuration for a host with PostgreSQL 11 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; */ public Builder clearPostgresqlConfig11() { if (postgresqlConfig11Builder_ == null) { if (postgresqlConfigCase_ == 3) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 3) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig11Builder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 11 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.Builder getPostgresqlConfig11Builder() { return getPostgresqlConfig11FieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 11 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11OrBuilder getPostgresqlConfig11OrBuilder() { if ((postgresqlConfigCase_ == 3) && (postgresqlConfig11Builder_ != null)) { return postgresqlConfig11Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 3) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 11 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11 postgresql_config_11 = 3 [json_name = "postgresqlHostConfig_11"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11, yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11OrBuilder> getPostgresqlConfig11FieldBuilder() { if (postgresqlConfig11Builder_ == null) { if (!(postgresqlConfigCase_ == 3)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.getDefaultInstance(); } postgresqlConfig11Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11, yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host11.PostgresqlHostConfig11) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 3; onChanged();; return postgresqlConfig11Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1COrBuilder> postgresqlConfig111CBuilder_; /** *
       * Configuration for a host with PostgreSQL 11 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; * @return Whether the postgresqlConfig111c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig111C() { return postgresqlConfigCase_ == 6; } /** *
       * Configuration for a host with PostgreSQL 11 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; * @return The postgresqlConfig111c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C getPostgresqlConfig111C() { if (postgresqlConfig111CBuilder_ == null) { if (postgresqlConfigCase_ == 6) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 6) { return postgresqlConfig111CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 11 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; */ public Builder setPostgresqlConfig111C(yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C value) { if (postgresqlConfig111CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig111CBuilder_.setMessage(value); } postgresqlConfigCase_ = 6; return this; } /** *
       * Configuration for a host with PostgreSQL 11 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; */ public Builder setPostgresqlConfig111C( yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.Builder builderForValue) { if (postgresqlConfig111CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig111CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 6; return this; } /** *
       * Configuration for a host with PostgreSQL 11 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; */ public Builder mergePostgresqlConfig111C(yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C value) { if (postgresqlConfig111CBuilder_ == null) { if (postgresqlConfigCase_ == 6 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 6) { postgresqlConfig111CBuilder_.mergeFrom(value); } postgresqlConfig111CBuilder_.setMessage(value); } postgresqlConfigCase_ = 6; return this; } /** *
       * Configuration for a host with PostgreSQL 11 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; */ public Builder clearPostgresqlConfig111C() { if (postgresqlConfig111CBuilder_ == null) { if (postgresqlConfigCase_ == 6) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 6) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig111CBuilder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 11 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.Builder getPostgresqlConfig111CBuilder() { return getPostgresqlConfig111CFieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 11 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1COrBuilder getPostgresqlConfig111COrBuilder() { if ((postgresqlConfigCase_ == 6) && (postgresqlConfig111CBuilder_ != null)) { return postgresqlConfig111CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 6) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 11 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C postgresql_config_11_1c = 6 [json_name = "postgresqlHostConfig_11_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1COrBuilder> getPostgresqlConfig111CFieldBuilder() { if (postgresqlConfig111CBuilder_ == null) { if (!(postgresqlConfigCase_ == 6)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.getDefaultInstance(); } postgresqlConfig111CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host111C.PostgresqlHostConfig11_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 6; onChanged();; return postgresqlConfig111CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12, yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12OrBuilder> postgresqlConfig12Builder_; /** *
       * Configuration for a host with PostgreSQL 12 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; * @return Whether the postgresqlConfig12 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig12() { return postgresqlConfigCase_ == 5; } /** *
       * Configuration for a host with PostgreSQL 12 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; * @return The postgresqlConfig12. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12 getPostgresqlConfig12() { if (postgresqlConfig12Builder_ == null) { if (postgresqlConfigCase_ == 5) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 5) { return postgresqlConfig12Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 12 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; */ public Builder setPostgresqlConfig12(yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12 value) { if (postgresqlConfig12Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig12Builder_.setMessage(value); } postgresqlConfigCase_ = 5; return this; } /** *
       * Configuration for a host with PostgreSQL 12 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; */ public Builder setPostgresqlConfig12( yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.Builder builderForValue) { if (postgresqlConfig12Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig12Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 5; return this; } /** *
       * Configuration for a host with PostgreSQL 12 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; */ public Builder mergePostgresqlConfig12(yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12 value) { if (postgresqlConfig12Builder_ == null) { if (postgresqlConfigCase_ == 5 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 5) { postgresqlConfig12Builder_.mergeFrom(value); } postgresqlConfig12Builder_.setMessage(value); } postgresqlConfigCase_ = 5; return this; } /** *
       * Configuration for a host with PostgreSQL 12 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; */ public Builder clearPostgresqlConfig12() { if (postgresqlConfig12Builder_ == null) { if (postgresqlConfigCase_ == 5) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 5) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig12Builder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 12 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.Builder getPostgresqlConfig12Builder() { return getPostgresqlConfig12FieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 12 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12OrBuilder getPostgresqlConfig12OrBuilder() { if ((postgresqlConfigCase_ == 5) && (postgresqlConfig12Builder_ != null)) { return postgresqlConfig12Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 5) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 12 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12 postgresql_config_12 = 5 [json_name = "postgresqlHostConfig_12"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12, yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12OrBuilder> getPostgresqlConfig12FieldBuilder() { if (postgresqlConfig12Builder_ == null) { if (!(postgresqlConfigCase_ == 5)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.getDefaultInstance(); } postgresqlConfig12Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12, yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host12.PostgresqlHostConfig12) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 5; onChanged();; return postgresqlConfig12Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1COrBuilder> postgresqlConfig121CBuilder_; /** *
       * Configuration for a host with PostgreSQL 12 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; * @return Whether the postgresqlConfig121c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig121C() { return postgresqlConfigCase_ == 7; } /** *
       * Configuration for a host with PostgreSQL 12 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; * @return The postgresqlConfig121c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C getPostgresqlConfig121C() { if (postgresqlConfig121CBuilder_ == null) { if (postgresqlConfigCase_ == 7) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 7) { return postgresqlConfig121CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 12 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; */ public Builder setPostgresqlConfig121C(yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C value) { if (postgresqlConfig121CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig121CBuilder_.setMessage(value); } postgresqlConfigCase_ = 7; return this; } /** *
       * Configuration for a host with PostgreSQL 12 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; */ public Builder setPostgresqlConfig121C( yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.Builder builderForValue) { if (postgresqlConfig121CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig121CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 7; return this; } /** *
       * Configuration for a host with PostgreSQL 12 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; */ public Builder mergePostgresqlConfig121C(yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C value) { if (postgresqlConfig121CBuilder_ == null) { if (postgresqlConfigCase_ == 7 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 7) { postgresqlConfig121CBuilder_.mergeFrom(value); } postgresqlConfig121CBuilder_.setMessage(value); } postgresqlConfigCase_ = 7; return this; } /** *
       * Configuration for a host with PostgreSQL 12 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; */ public Builder clearPostgresqlConfig121C() { if (postgresqlConfig121CBuilder_ == null) { if (postgresqlConfigCase_ == 7) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 7) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig121CBuilder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 12 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.Builder getPostgresqlConfig121CBuilder() { return getPostgresqlConfig121CFieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 12 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1COrBuilder getPostgresqlConfig121COrBuilder() { if ((postgresqlConfigCase_ == 7) && (postgresqlConfig121CBuilder_ != null)) { return postgresqlConfig121CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 7) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 12 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C postgresql_config_12_1c = 7 [json_name = "postgresqlHostConfig_12_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1COrBuilder> getPostgresqlConfig121CFieldBuilder() { if (postgresqlConfig121CBuilder_ == null) { if (!(postgresqlConfigCase_ == 7)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.getDefaultInstance(); } postgresqlConfig121CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host121C.PostgresqlHostConfig12_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 7; onChanged();; return postgresqlConfig121CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13, yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13OrBuilder> postgresqlConfig13Builder_; /** *
       * Configuration for a host with PostgreSQL 13 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; * @return Whether the postgresqlConfig13 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig13() { return postgresqlConfigCase_ == 8; } /** *
       * Configuration for a host with PostgreSQL 13 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; * @return The postgresqlConfig13. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13 getPostgresqlConfig13() { if (postgresqlConfig13Builder_ == null) { if (postgresqlConfigCase_ == 8) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 8) { return postgresqlConfig13Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 13 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; */ public Builder setPostgresqlConfig13(yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13 value) { if (postgresqlConfig13Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig13Builder_.setMessage(value); } postgresqlConfigCase_ = 8; return this; } /** *
       * Configuration for a host with PostgreSQL 13 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; */ public Builder setPostgresqlConfig13( yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.Builder builderForValue) { if (postgresqlConfig13Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig13Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 8; return this; } /** *
       * Configuration for a host with PostgreSQL 13 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; */ public Builder mergePostgresqlConfig13(yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13 value) { if (postgresqlConfig13Builder_ == null) { if (postgresqlConfigCase_ == 8 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 8) { postgresqlConfig13Builder_.mergeFrom(value); } postgresqlConfig13Builder_.setMessage(value); } postgresqlConfigCase_ = 8; return this; } /** *
       * Configuration for a host with PostgreSQL 13 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; */ public Builder clearPostgresqlConfig13() { if (postgresqlConfig13Builder_ == null) { if (postgresqlConfigCase_ == 8) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 8) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig13Builder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 13 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.Builder getPostgresqlConfig13Builder() { return getPostgresqlConfig13FieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 13 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13OrBuilder getPostgresqlConfig13OrBuilder() { if ((postgresqlConfigCase_ == 8) && (postgresqlConfig13Builder_ != null)) { return postgresqlConfig13Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 8) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 13 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13 postgresql_config_13 = 8 [json_name = "postgresqlHostConfig_13"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13, yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13OrBuilder> getPostgresqlConfig13FieldBuilder() { if (postgresqlConfig13Builder_ == null) { if (!(postgresqlConfigCase_ == 8)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.getDefaultInstance(); } postgresqlConfig13Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13, yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host13.PostgresqlHostConfig13) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 8; onChanged();; return postgresqlConfig13Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1COrBuilder> postgresqlConfig131CBuilder_; /** *
       * Configuration for a host with PostgreSQL 13 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; * @return Whether the postgresqlConfig131c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig131C() { return postgresqlConfigCase_ == 10; } /** *
       * Configuration for a host with PostgreSQL 13 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; * @return The postgresqlConfig131c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C getPostgresqlConfig131C() { if (postgresqlConfig131CBuilder_ == null) { if (postgresqlConfigCase_ == 10) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 10) { return postgresqlConfig131CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 13 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; */ public Builder setPostgresqlConfig131C(yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C value) { if (postgresqlConfig131CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig131CBuilder_.setMessage(value); } postgresqlConfigCase_ = 10; return this; } /** *
       * Configuration for a host with PostgreSQL 13 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; */ public Builder setPostgresqlConfig131C( yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.Builder builderForValue) { if (postgresqlConfig131CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig131CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 10; return this; } /** *
       * Configuration for a host with PostgreSQL 13 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; */ public Builder mergePostgresqlConfig131C(yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C value) { if (postgresqlConfig131CBuilder_ == null) { if (postgresqlConfigCase_ == 10 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 10) { postgresqlConfig131CBuilder_.mergeFrom(value); } postgresqlConfig131CBuilder_.setMessage(value); } postgresqlConfigCase_ = 10; return this; } /** *
       * Configuration for a host with PostgreSQL 13 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; */ public Builder clearPostgresqlConfig131C() { if (postgresqlConfig131CBuilder_ == null) { if (postgresqlConfigCase_ == 10) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 10) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig131CBuilder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 13 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.Builder getPostgresqlConfig131CBuilder() { return getPostgresqlConfig131CFieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 13 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1COrBuilder getPostgresqlConfig131COrBuilder() { if ((postgresqlConfigCase_ == 10) && (postgresqlConfig131CBuilder_ != null)) { return postgresqlConfig131CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 10) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 13 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C postgresql_config_13_1c = 10 [json_name = "postgresqlHostConfig_13_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1COrBuilder> getPostgresqlConfig131CFieldBuilder() { if (postgresqlConfig131CBuilder_ == null) { if (!(postgresqlConfigCase_ == 10)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.getDefaultInstance(); } postgresqlConfig131CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host131C.PostgresqlHostConfig13_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 10; onChanged();; return postgresqlConfig131CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14, yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14OrBuilder> postgresqlConfig14Builder_; /** *
       * Configuration for a host with PostgreSQL 14 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; * @return Whether the postgresqlConfig14 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig14() { return postgresqlConfigCase_ == 9; } /** *
       * Configuration for a host with PostgreSQL 14 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; * @return The postgresqlConfig14. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14 getPostgresqlConfig14() { if (postgresqlConfig14Builder_ == null) { if (postgresqlConfigCase_ == 9) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 9) { return postgresqlConfig14Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 14 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; */ public Builder setPostgresqlConfig14(yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14 value) { if (postgresqlConfig14Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig14Builder_.setMessage(value); } postgresqlConfigCase_ = 9; return this; } /** *
       * Configuration for a host with PostgreSQL 14 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; */ public Builder setPostgresqlConfig14( yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.Builder builderForValue) { if (postgresqlConfig14Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig14Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 9; return this; } /** *
       * Configuration for a host with PostgreSQL 14 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; */ public Builder mergePostgresqlConfig14(yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14 value) { if (postgresqlConfig14Builder_ == null) { if (postgresqlConfigCase_ == 9 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 9) { postgresqlConfig14Builder_.mergeFrom(value); } postgresqlConfig14Builder_.setMessage(value); } postgresqlConfigCase_ = 9; return this; } /** *
       * Configuration for a host with PostgreSQL 14 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; */ public Builder clearPostgresqlConfig14() { if (postgresqlConfig14Builder_ == null) { if (postgresqlConfigCase_ == 9) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 9) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig14Builder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 14 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.Builder getPostgresqlConfig14Builder() { return getPostgresqlConfig14FieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 14 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14OrBuilder getPostgresqlConfig14OrBuilder() { if ((postgresqlConfigCase_ == 9) && (postgresqlConfig14Builder_ != null)) { return postgresqlConfig14Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 9) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 14 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14 postgresql_config_14 = 9 [json_name = "postgresqlHostConfig_14"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14, yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14OrBuilder> getPostgresqlConfig14FieldBuilder() { if (postgresqlConfig14Builder_ == null) { if (!(postgresqlConfigCase_ == 9)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.getDefaultInstance(); } postgresqlConfig14Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14, yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host14.PostgresqlHostConfig14) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 9; onChanged();; return postgresqlConfig14Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1COrBuilder> postgresqlConfig141CBuilder_; /** *
       * Configuration for a host with PostgreSQL 14 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; * @return Whether the postgresqlConfig141c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig141C() { return postgresqlConfigCase_ == 11; } /** *
       * Configuration for a host with PostgreSQL 14 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; * @return The postgresqlConfig141c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C getPostgresqlConfig141C() { if (postgresqlConfig141CBuilder_ == null) { if (postgresqlConfigCase_ == 11) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 11) { return postgresqlConfig141CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 14 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; */ public Builder setPostgresqlConfig141C(yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C value) { if (postgresqlConfig141CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig141CBuilder_.setMessage(value); } postgresqlConfigCase_ = 11; return this; } /** *
       * Configuration for a host with PostgreSQL 14 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; */ public Builder setPostgresqlConfig141C( yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.Builder builderForValue) { if (postgresqlConfig141CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig141CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 11; return this; } /** *
       * Configuration for a host with PostgreSQL 14 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; */ public Builder mergePostgresqlConfig141C(yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C value) { if (postgresqlConfig141CBuilder_ == null) { if (postgresqlConfigCase_ == 11 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 11) { postgresqlConfig141CBuilder_.mergeFrom(value); } postgresqlConfig141CBuilder_.setMessage(value); } postgresqlConfigCase_ = 11; return this; } /** *
       * Configuration for a host with PostgreSQL 14 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; */ public Builder clearPostgresqlConfig141C() { if (postgresqlConfig141CBuilder_ == null) { if (postgresqlConfigCase_ == 11) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 11) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig141CBuilder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 14 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.Builder getPostgresqlConfig141CBuilder() { return getPostgresqlConfig141CFieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 14 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1COrBuilder getPostgresqlConfig141COrBuilder() { if ((postgresqlConfigCase_ == 11) && (postgresqlConfig141CBuilder_ != null)) { return postgresqlConfig141CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 11) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 14 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C postgresql_config_14_1c = 11 [json_name = "postgresqlHostConfig_14_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1COrBuilder> getPostgresqlConfig141CFieldBuilder() { if (postgresqlConfig141CBuilder_ == null) { if (!(postgresqlConfigCase_ == 11)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.getDefaultInstance(); } postgresqlConfig141CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host141C.PostgresqlHostConfig14_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 11; onChanged();; return postgresqlConfig141CBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15, yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15OrBuilder> postgresqlConfig15Builder_; /** *
       * Configuration for a host with PostgreSQL 15 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; * @return Whether the postgresqlConfig15 field is set. */ @java.lang.Override public boolean hasPostgresqlConfig15() { return postgresqlConfigCase_ == 12; } /** *
       * Configuration for a host with PostgreSQL 15 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; * @return The postgresqlConfig15. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15 getPostgresqlConfig15() { if (postgresqlConfig15Builder_ == null) { if (postgresqlConfigCase_ == 12) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 12) { return postgresqlConfig15Builder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 15 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; */ public Builder setPostgresqlConfig15(yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15 value) { if (postgresqlConfig15Builder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig15Builder_.setMessage(value); } postgresqlConfigCase_ = 12; return this; } /** *
       * Configuration for a host with PostgreSQL 15 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; */ public Builder setPostgresqlConfig15( yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.Builder builderForValue) { if (postgresqlConfig15Builder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig15Builder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 12; return this; } /** *
       * Configuration for a host with PostgreSQL 15 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; */ public Builder mergePostgresqlConfig15(yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15 value) { if (postgresqlConfig15Builder_ == null) { if (postgresqlConfigCase_ == 12 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 12) { postgresqlConfig15Builder_.mergeFrom(value); } postgresqlConfig15Builder_.setMessage(value); } postgresqlConfigCase_ = 12; return this; } /** *
       * Configuration for a host with PostgreSQL 15 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; */ public Builder clearPostgresqlConfig15() { if (postgresqlConfig15Builder_ == null) { if (postgresqlConfigCase_ == 12) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 12) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig15Builder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 15 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.Builder getPostgresqlConfig15Builder() { return getPostgresqlConfig15FieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 15 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15OrBuilder getPostgresqlConfig15OrBuilder() { if ((postgresqlConfigCase_ == 12) && (postgresqlConfig15Builder_ != null)) { return postgresqlConfig15Builder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 12) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 15 server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15 postgresql_config_15 = 12 [json_name = "postgresqlHostConfig_15"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15, yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15OrBuilder> getPostgresqlConfig15FieldBuilder() { if (postgresqlConfig15Builder_ == null) { if (!(postgresqlConfigCase_ == 12)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.getDefaultInstance(); } postgresqlConfig15Builder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15, yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15OrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host15.PostgresqlHostConfig15) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 12; onChanged();; return postgresqlConfig15Builder_; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1COrBuilder> postgresqlConfig151CBuilder_; /** *
       * Configuration for a host with PostgreSQL 15 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; * @return Whether the postgresqlConfig151c field is set. */ @java.lang.Override public boolean hasPostgresqlConfig151C() { return postgresqlConfigCase_ == 13; } /** *
       * Configuration for a host with PostgreSQL 15 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; * @return The postgresqlConfig151c. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C getPostgresqlConfig151C() { if (postgresqlConfig151CBuilder_ == null) { if (postgresqlConfigCase_ == 13) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.getDefaultInstance(); } else { if (postgresqlConfigCase_ == 13) { return postgresqlConfig151CBuilder_.getMessage(); } return yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 15 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; */ public Builder setPostgresqlConfig151C(yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C value) { if (postgresqlConfig151CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } postgresqlConfig_ = value; onChanged(); } else { postgresqlConfig151CBuilder_.setMessage(value); } postgresqlConfigCase_ = 13; return this; } /** *
       * Configuration for a host with PostgreSQL 15 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; */ public Builder setPostgresqlConfig151C( yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.Builder builderForValue) { if (postgresqlConfig151CBuilder_ == null) { postgresqlConfig_ = builderForValue.build(); onChanged(); } else { postgresqlConfig151CBuilder_.setMessage(builderForValue.build()); } postgresqlConfigCase_ = 13; return this; } /** *
       * Configuration for a host with PostgreSQL 15 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; */ public Builder mergePostgresqlConfig151C(yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C value) { if (postgresqlConfig151CBuilder_ == null) { if (postgresqlConfigCase_ == 13 && postgresqlConfig_ != yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.getDefaultInstance()) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.newBuilder((yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_) .mergeFrom(value).buildPartial(); } else { postgresqlConfig_ = value; } onChanged(); } else { if (postgresqlConfigCase_ == 13) { postgresqlConfig151CBuilder_.mergeFrom(value); } postgresqlConfig151CBuilder_.setMessage(value); } postgresqlConfigCase_ = 13; return this; } /** *
       * Configuration for a host with PostgreSQL 15 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; */ public Builder clearPostgresqlConfig151C() { if (postgresqlConfig151CBuilder_ == null) { if (postgresqlConfigCase_ == 13) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; onChanged(); } } else { if (postgresqlConfigCase_ == 13) { postgresqlConfigCase_ = 0; postgresqlConfig_ = null; } postgresqlConfig151CBuilder_.clear(); } return this; } /** *
       * Configuration for a host with PostgreSQL 15 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; */ public yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.Builder getPostgresqlConfig151CBuilder() { return getPostgresqlConfig151CFieldBuilder().getBuilder(); } /** *
       * Configuration for a host with PostgreSQL 15 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1COrBuilder getPostgresqlConfig151COrBuilder() { if ((postgresqlConfigCase_ == 13) && (postgresqlConfig151CBuilder_ != null)) { return postgresqlConfig151CBuilder_.getMessageOrBuilder(); } else { if (postgresqlConfigCase_ == 13) { return (yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_; } return yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.getDefaultInstance(); } } /** *
       * Configuration for a host with PostgreSQL 15 1C server deployed.
       * 
* * .yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C postgresql_config_15_1c = 13 [json_name = "postgresqlHostConfig_15_1c"]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1COrBuilder> getPostgresqlConfig151CFieldBuilder() { if (postgresqlConfig151CBuilder_ == null) { if (!(postgresqlConfigCase_ == 13)) { postgresqlConfig_ = yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.getDefaultInstance(); } postgresqlConfig151CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C, yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C.Builder, yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1COrBuilder>( (yandex.cloud.api.mdb.postgresql.v1.config.Host151C.PostgresqlHostConfig15_1C) postgresqlConfig_, getParentForChildren(), isClean()); postgresqlConfig_ = null; } postgresqlConfigCase_ = 13; onChanged();; return postgresqlConfig151CBuilder_; } @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.postgresql.v1.HostConfig) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.HostConfig) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig(); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.HostConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HostConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HostConfig(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.postgresql.v1.ClusterOuterClass.HostConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.Service) com.google.protobuf.MessageOrBuilder { /** *
     * Type of the service provided by the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.Service.Type type = 1; * @return The type. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Type getType(); /** *
     * Status code of server availability.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Service.Health health = 2; * @return The enum numeric value on the wire for health. */ int getHealthValue(); /** *
     * Status code of server availability.
     * 
* * .yandex.cloud.mdb.postgresql.v1.Service.Health health = 2; * @return The health. */ yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Health getHealth(); } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Service} */ public static final class Service extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Builder.class); } /** * Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.Service.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** *
       * The host is a PostgreSQL server.
       * 
* * POSTGRESQL = 1; */ POSTGRESQL(1), /** *
       * The host is a PgBouncer server.
       * 
* * POOLER = 2; */ POOLER(2), UNRECOGNIZED(-1), ; /** * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** *
       * The host is a PostgreSQL server.
       * 
* * POSTGRESQL = 1; */ public static final int POSTGRESQL_VALUE = 1; /** *
       * The host is a PgBouncer server.
       * 
* * POOLER = 2; */ public static final int POOLER_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Type forNumber(int value) { switch (value) { case 0: return TYPE_UNSPECIFIED; case 1: return POSTGRESQL; case 2: return POOLER; 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.postgresql.v1.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.postgresql.v1.Service.Type) } /** * Protobuf enum {@code yandex.cloud.mdb.postgresql.v1.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), /** *
       * The server is in read-only mode.
       * 
* * READONLY = 3; */ READONLY(3), 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; /** *
       * The server is in read-only mode.
       * 
* * READONLY = 3; */ public static final int READONLY_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 READONLY; 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.postgresql.v1.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.postgresql.v1.Service.Health) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** *
     * Type of the service provided by the host.
     * 
* * .yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.Service.Type type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Type result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Type.valueOf(type_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Type.UNRECOGNIZED : result; } public static final int HEALTH_FIELD_NUMBER = 2; private int health_; /** *
     * Status code of server availability.
     * 
* * .yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.Service.Health health = 2; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Health result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (health_ != yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (health_ != yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service other = (yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.Service} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.Service) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ServiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Service_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Service_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Service_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service result = new yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service other) { if (other == yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.Service.Type type = 1; * @return The type. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Type getType() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Type result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Type.valueOf(type_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Type.UNRECOGNIZED : result; } /** *
       * Type of the service provided by the host.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Service.Type type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.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.postgresql.v1.Service.Health health = 2; * @return The health. */ @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Health getHealth() { @SuppressWarnings("deprecation") yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Health result = yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Health.valueOf(health_); return result == null ? yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Health.UNRECOGNIZED : result; } /** *
       * Status code of server availability.
       * 
* * .yandex.cloud.mdb.postgresql.v1.Service.Health health = 2; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service.Health value) { if (value == null) { throw new NullPointerException(); } health_ = value.getNumber(); onChanged(); return this; } /** *
       * Status code of server availability.
       * 
* * .yandex.cloud.mdb.postgresql.v1.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.postgresql.v1.Service) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.Service) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Service(); } public static yandex.cloud.api.mdb.postgresql.v1.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.postgresql.v1.ClusterOuterClass.Service getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.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-postgresql/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-postgresql/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, in bytes.
     * 
* * int64 disk_size = 2; * @return The diskSize. */ long getDiskSize(); /** *
     * Type of the storage environment for the host.
     * Possible values:
     * * network-hdd - network HDD drive,
     * * 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-hdd - network HDD drive,
     * * 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.postgresql.v1.Resources} */ public static final class Resources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.Resources) ResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use Resources.newBuilder() to construct. private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Resources() { resourcePresetId_ = ""; diskTypeId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Resources(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Resources( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); resourcePresetId_ = s; break; } case 16: { diskSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); diskTypeId_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder.class); } public static final int RESOURCE_PRESET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object resourcePresetId_; /** *
     * ID of the preset for computational resources available to a host (CPU, memory etc.).
     * All available presets are listed in the [documentation](/docs/managed-postgresql/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-postgresql/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, in bytes.
     * 
* * int64 disk_size = 2; * @return The diskSize. */ @java.lang.Override public long getDiskSize() { return diskSize_; } public static final int DISK_TYPE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object diskTypeId_; /** *
     * Type of the storage environment for the host.
     * Possible values:
     * * network-hdd - network HDD drive,
     * * 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-hdd - network HDD drive,
     * * 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.postgresql.v1.ClusterOuterClass.Resources)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources other = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources) obj; if (!getResourcePresetId() .equals(other.getResourcePresetId())) return false; if (getDiskSize() != other.getDiskSize()) return false; if (!getDiskTypeId() .equals(other.getDiskTypeId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RESOURCE_PRESET_ID_FIELD_NUMBER; hash = (53 * hash) + getResourcePresetId().hashCode(); hash = (37 * hash) + DISK_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDiskSize()); hash = (37 * hash) + DISK_TYPE_ID_FIELD_NUMBER; hash = (53 * hash) + getDiskTypeId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Resources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.Resources) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.ResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); resourcePresetId_ = ""; diskSize_ = 0L; diskTypeId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Resources_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources result = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources(this); result.resourcePresetId_ = resourcePresetId_; result.diskSize_ = diskSize_; result.diskTypeId_ = diskTypeId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources other) { if (other == yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources.getDefaultInstance()) return this; if (!other.getResourcePresetId().isEmpty()) { resourcePresetId_ = other.resourcePresetId_; onChanged(); } if (other.getDiskSize() != 0L) { setDiskSize(other.getDiskSize()); } if (!other.getDiskTypeId().isEmpty()) { diskTypeId_ = other.diskTypeId_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object resourcePresetId_ = ""; /** *
       * ID of the preset for computational resources available to a host (CPU, memory etc.).
       * All available presets are listed in the [documentation](/docs/managed-postgresql/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-postgresql/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-postgresql/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-postgresql/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-postgresql/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, in bytes.
       * 
* * int64 disk_size = 2; * @return The diskSize. */ @java.lang.Override public long getDiskSize() { return diskSize_; } /** *
       * Volume of the storage available to a host, in bytes.
       * 
* * int64 disk_size = 2; * @param value The diskSize to set. * @return This builder for chaining. */ public Builder setDiskSize(long value) { diskSize_ = value; onChanged(); return this; } /** *
       * Volume of the storage available to a host, in bytes.
       * 
* * int64 disk_size = 2; * @return This builder for chaining. */ public Builder clearDiskSize() { diskSize_ = 0L; onChanged(); return this; } private java.lang.Object diskTypeId_ = ""; /** *
       * Type of the storage environment for the host.
       * Possible values:
       * * network-hdd - network HDD drive,
       * * 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-hdd - network HDD drive,
       * * 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-hdd - network HDD drive,
       * * 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-hdd - network HDD drive,
       * * 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-hdd - network HDD drive,
       * * 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.postgresql.v1.Resources) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.Resources) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources(); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Resources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Resources(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Resources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AccessOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.Access) com.google.protobuf.MessageOrBuilder { /** *
     * Allow access for DataLens
     * 
* * bool data_lens = 1; * @return The dataLens. */ boolean getDataLens(); /** *
     * Allow SQL queries to the cluster databases from the management console.
     * See [SQL queries in the management console](/docs/managed-postgresql/operations/web-sql-query) for more details.
     * 
* * bool web_sql = 2; * @return The webSql. */ boolean getWebSql(); /** *
     * Allow access for Serverless
     * 
* * bool serverless = 3; * @return The serverless. */ boolean getServerless(); /** *
     * Allow access for DataTransfer.
     * 
* * bool data_transfer = 4; * @return The dataTransfer. */ boolean getDataTransfer(); } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Access} */ public static final class Access extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.Access) AccessOrBuilder { private static final long serialVersionUID = 0L; // Use Access.newBuilder() to construct. private Access(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Access() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Access(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Access( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { dataLens_ = input.readBool(); break; } case 16: { webSql_ = input.readBool(); break; } case 24: { serverless_ = input.readBool(); break; } case 32: { dataTransfer_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.Builder.class); } public static final int DATA_LENS_FIELD_NUMBER = 1; private boolean dataLens_; /** *
     * Allow access for DataLens
     * 
* * bool data_lens = 1; * @return The dataLens. */ @java.lang.Override public boolean getDataLens() { return dataLens_; } public static final int WEB_SQL_FIELD_NUMBER = 2; private boolean webSql_; /** *
     * Allow SQL queries to the cluster databases from the management console.
     * See [SQL queries in the management console](/docs/managed-postgresql/operations/web-sql-query) for more details.
     * 
* * bool web_sql = 2; * @return The webSql. */ @java.lang.Override public boolean getWebSql() { return webSql_; } public static final int SERVERLESS_FIELD_NUMBER = 3; private boolean serverless_; /** *
     * Allow access for Serverless
     * 
* * bool serverless = 3; * @return The serverless. */ @java.lang.Override public boolean getServerless() { return serverless_; } public static final int DATA_TRANSFER_FIELD_NUMBER = 4; private boolean dataTransfer_; /** *
     * Allow access for DataTransfer.
     * 
* * bool data_transfer = 4; * @return The dataTransfer. */ @java.lang.Override public boolean getDataTransfer() { return dataTransfer_; } 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 (dataLens_ != false) { output.writeBool(1, dataLens_); } if (webSql_ != false) { output.writeBool(2, webSql_); } if (serverless_ != false) { output.writeBool(3, serverless_); } if (dataTransfer_ != false) { output.writeBool(4, dataTransfer_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (dataLens_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, dataLens_); } if (webSql_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, webSql_); } if (serverless_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, serverless_); } if (dataTransfer_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, dataTransfer_); } 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.postgresql.v1.ClusterOuterClass.Access)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access other = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access) obj; if (getDataLens() != other.getDataLens()) return false; if (getWebSql() != other.getWebSql()) return false; if (getServerless() != other.getServerless()) return false; if (getDataTransfer() != other.getDataTransfer()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DATA_LENS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDataLens()); hash = (37 * hash) + WEB_SQL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getWebSql()); hash = (37 * hash) + SERVERLESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getServerless()); hash = (37 * hash) + DATA_TRANSFER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDataTransfer()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.Access} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.Access) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.AccessOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Access_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Access_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); dataLens_ = false; webSql_ = false; serverless_ = false; dataTransfer_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_Access_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access result = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access(this); result.dataLens_ = dataLens_; result.webSql_ = webSql_; result.serverless_ = serverless_; result.dataTransfer_ = dataTransfer_; 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.postgresql.v1.ClusterOuterClass.Access) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access other) { if (other == yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access.getDefaultInstance()) return this; if (other.getDataLens() != false) { setDataLens(other.getDataLens()); } if (other.getWebSql() != false) { setWebSql(other.getWebSql()); } if (other.getServerless() != false) { setServerless(other.getServerless()); } if (other.getDataTransfer() != false) { setDataTransfer(other.getDataTransfer()); } 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.postgresql.v1.ClusterOuterClass.Access parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean dataLens_ ; /** *
       * Allow access for DataLens
       * 
* * bool data_lens = 1; * @return The dataLens. */ @java.lang.Override public boolean getDataLens() { return dataLens_; } /** *
       * Allow access for DataLens
       * 
* * bool data_lens = 1; * @param value The dataLens to set. * @return This builder for chaining. */ public Builder setDataLens(boolean value) { dataLens_ = value; onChanged(); return this; } /** *
       * Allow access for DataLens
       * 
* * bool data_lens = 1; * @return This builder for chaining. */ public Builder clearDataLens() { dataLens_ = false; onChanged(); return this; } private boolean webSql_ ; /** *
       * Allow SQL queries to the cluster databases from the management console.
       * See [SQL queries in the management console](/docs/managed-postgresql/operations/web-sql-query) for more details.
       * 
* * bool web_sql = 2; * @return The webSql. */ @java.lang.Override public boolean getWebSql() { return webSql_; } /** *
       * Allow SQL queries to the cluster databases from the management console.
       * See [SQL queries in the management console](/docs/managed-postgresql/operations/web-sql-query) for more details.
       * 
* * bool web_sql = 2; * @param value The webSql to set. * @return This builder for chaining. */ public Builder setWebSql(boolean value) { webSql_ = value; onChanged(); return this; } /** *
       * Allow SQL queries to the cluster databases from the management console.
       * See [SQL queries in the management console](/docs/managed-postgresql/operations/web-sql-query) for more details.
       * 
* * bool web_sql = 2; * @return This builder for chaining. */ public Builder clearWebSql() { webSql_ = false; onChanged(); return this; } private boolean serverless_ ; /** *
       * Allow access for Serverless
       * 
* * bool serverless = 3; * @return The serverless. */ @java.lang.Override public boolean getServerless() { return serverless_; } /** *
       * Allow access for Serverless
       * 
* * bool serverless = 3; * @param value The serverless to set. * @return This builder for chaining. */ public Builder setServerless(boolean value) { serverless_ = value; onChanged(); return this; } /** *
       * Allow access for Serverless
       * 
* * bool serverless = 3; * @return This builder for chaining. */ public Builder clearServerless() { serverless_ = false; onChanged(); return this; } private boolean dataTransfer_ ; /** *
       * Allow access for DataTransfer.
       * 
* * bool data_transfer = 4; * @return The dataTransfer. */ @java.lang.Override public boolean getDataTransfer() { return dataTransfer_; } /** *
       * Allow access for DataTransfer.
       * 
* * bool data_transfer = 4; * @param value The dataTransfer to set. * @return This builder for chaining. */ public Builder setDataTransfer(boolean value) { dataTransfer_ = value; onChanged(); return this; } /** *
       * Allow access for DataTransfer.
       * 
* * bool data_transfer = 4; * @return This builder for chaining. */ public Builder clearDataTransfer() { dataTransfer_ = 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.postgresql.v1.Access) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.Access) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access(); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Access parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Access(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.Access getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PerformanceDiagnosticsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics) com.google.protobuf.MessageOrBuilder { /** *
     * Configuration setting which enables/disables performance diagnostics service in cluster.
     * 
* * bool enabled = 1; * @return The enabled. */ boolean getEnabled(); /** *
     * Interval (in seconds) for pg_stat_activity sampling
     * 
* * int64 sessions_sampling_interval = 2 [(.yandex.cloud.value) = "1-86400"]; * @return The sessionsSamplingInterval. */ long getSessionsSamplingInterval(); /** *
     * Interval (in seconds) for pg_stat_statements sampling
     * 
* * int64 statements_sampling_interval = 3 [(.yandex.cloud.value) = "1-86400"]; * @return The statementsSamplingInterval. */ long getStatementsSamplingInterval(); } /** * Protobuf type {@code yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics} */ public static final class PerformanceDiagnostics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics) PerformanceDiagnosticsOrBuilder { private static final long serialVersionUID = 0L; // Use PerformanceDiagnostics.newBuilder() to construct. private PerformanceDiagnostics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PerformanceDiagnostics() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PerformanceDiagnostics(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PerformanceDiagnostics( 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: { enabled_ = input.readBool(); break; } case 16: { sessionsSamplingInterval_ = input.readInt64(); break; } case 24: { statementsSamplingInterval_ = input.readInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** *
     * Configuration setting which enables/disables performance diagnostics service in cluster.
     * 
* * bool enabled = 1; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } public static final int SESSIONS_SAMPLING_INTERVAL_FIELD_NUMBER = 2; private long sessionsSamplingInterval_; /** *
     * Interval (in seconds) for pg_stat_activity sampling
     * 
* * int64 sessions_sampling_interval = 2 [(.yandex.cloud.value) = "1-86400"]; * @return The sessionsSamplingInterval. */ @java.lang.Override public long getSessionsSamplingInterval() { return sessionsSamplingInterval_; } public static final int STATEMENTS_SAMPLING_INTERVAL_FIELD_NUMBER = 3; private long statementsSamplingInterval_; /** *
     * Interval (in seconds) for pg_stat_statements sampling
     * 
* * int64 statements_sampling_interval = 3 [(.yandex.cloud.value) = "1-86400"]; * @return The statementsSamplingInterval. */ @java.lang.Override public long getStatementsSamplingInterval() { return statementsSamplingInterval_; } 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 (enabled_ != false) { output.writeBool(1, enabled_); } if (sessionsSamplingInterval_ != 0L) { output.writeInt64(2, sessionsSamplingInterval_); } if (statementsSamplingInterval_ != 0L) { output.writeInt64(3, statementsSamplingInterval_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, enabled_); } if (sessionsSamplingInterval_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, sessionsSamplingInterval_); } if (statementsSamplingInterval_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, statementsSamplingInterval_); } 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.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics)) { return super.equals(obj); } yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics other = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics) obj; if (getEnabled() != other.getEnabled()) return false; if (getSessionsSamplingInterval() != other.getSessionsSamplingInterval()) return false; if (getStatementsSamplingInterval() != other.getStatementsSamplingInterval()) 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) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); hash = (37 * hash) + SESSIONS_SAMPLING_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSessionsSamplingInterval()); hash = (37 * hash) + STATEMENTS_SAMPLING_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStatementsSamplingInterval()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics 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.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics 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.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics 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.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics 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.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics 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.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics 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.postgresql.v1.PerformanceDiagnostics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics) yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnosticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.class, yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.Builder.class); } // Construct using yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.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(); enabled_ = false; sessionsSamplingInterval_ = 0L; statementsSamplingInterval_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics getDefaultInstanceForType() { return yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics build() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics buildPartial() { yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics result = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics(this); result.enabled_ = enabled_; result.sessionsSamplingInterval_ = sessionsSamplingInterval_; result.statementsSamplingInterval_ = statementsSamplingInterval_; 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.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics) { return mergeFrom((yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics other) { if (other == yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } if (other.getSessionsSamplingInterval() != 0L) { setSessionsSamplingInterval(other.getSessionsSamplingInterval()); } if (other.getStatementsSamplingInterval() != 0L) { setStatementsSamplingInterval(other.getStatementsSamplingInterval()); } 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.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean enabled_ ; /** *
       * Configuration setting which enables/disables performance diagnostics service in cluster.
       * 
* * bool enabled = 1; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** *
       * Configuration setting which enables/disables performance diagnostics service in cluster.
       * 
* * bool enabled = 1; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { enabled_ = value; onChanged(); return this; } /** *
       * Configuration setting which enables/disables performance diagnostics service in cluster.
       * 
* * bool enabled = 1; * @return This builder for chaining. */ public Builder clearEnabled() { enabled_ = false; onChanged(); return this; } private long sessionsSamplingInterval_ ; /** *
       * Interval (in seconds) for pg_stat_activity sampling
       * 
* * int64 sessions_sampling_interval = 2 [(.yandex.cloud.value) = "1-86400"]; * @return The sessionsSamplingInterval. */ @java.lang.Override public long getSessionsSamplingInterval() { return sessionsSamplingInterval_; } /** *
       * Interval (in seconds) for pg_stat_activity sampling
       * 
* * int64 sessions_sampling_interval = 2 [(.yandex.cloud.value) = "1-86400"]; * @param value The sessionsSamplingInterval to set. * @return This builder for chaining. */ public Builder setSessionsSamplingInterval(long value) { sessionsSamplingInterval_ = value; onChanged(); return this; } /** *
       * Interval (in seconds) for pg_stat_activity sampling
       * 
* * int64 sessions_sampling_interval = 2 [(.yandex.cloud.value) = "1-86400"]; * @return This builder for chaining. */ public Builder clearSessionsSamplingInterval() { sessionsSamplingInterval_ = 0L; onChanged(); return this; } private long statementsSamplingInterval_ ; /** *
       * Interval (in seconds) for pg_stat_statements sampling
       * 
* * int64 statements_sampling_interval = 3 [(.yandex.cloud.value) = "1-86400"]; * @return The statementsSamplingInterval. */ @java.lang.Override public long getStatementsSamplingInterval() { return statementsSamplingInterval_; } /** *
       * Interval (in seconds) for pg_stat_statements sampling
       * 
* * int64 statements_sampling_interval = 3 [(.yandex.cloud.value) = "1-86400"]; * @param value The statementsSamplingInterval to set. * @return This builder for chaining. */ public Builder setStatementsSamplingInterval(long value) { statementsSamplingInterval_ = value; onChanged(); return this; } /** *
       * Interval (in seconds) for pg_stat_statements sampling
       * 
* * int64 statements_sampling_interval = 3 [(.yandex.cloud.value) = "1-86400"]; * @return This builder for chaining. */ public Builder clearStatementsSamplingInterval() { statementsSamplingInterval_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.postgresql.v1.PerformanceDiagnostics) private static final yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics(); } public static yandex.cloud.api.mdb.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PerformanceDiagnostics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PerformanceDiagnostics(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.postgresql.v1.ClusterOuterClass.PerformanceDiagnostics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_Host_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_Host_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_Service_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_Service_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_Resources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_Resources_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_Access_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_Access_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_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/postgresql/v1/cluster" + ".proto\022\036yandex.cloud.mdb.postgresql.v1\032\037" + "google/protobuf/timestamp.proto\032\036google/" + "protobuf/wrappers.proto\032\033google/type/tim" + "eofday.proto\032\035yandex/cloud/validation.pr" + "oto\0329yandex/cloud/mdb/postgresql/v1/conf" + "ig/postgresql9_6.proto\0328yandex/cloud/mdb" + "/postgresql/v1/config/postgresql10.proto" + "\032;yandex/cloud/mdb/postgresql/v1/config/" + "postgresql10_1c.proto\0328yandex/cloud/mdb/" + "postgresql/v1/config/postgresql11.proto\032" + ";yandex/cloud/mdb/postgresql/v1/config/p" + "ostgresql11_1c.proto\0328yandex/cloud/mdb/p" + "ostgresql/v1/config/postgresql12.proto\032;" + "yandex/cloud/mdb/postgresql/v1/config/po" + "stgresql12_1c.proto\0328yandex/cloud/mdb/po" + "stgresql/v1/config/postgresql13.proto\032;y" + "andex/cloud/mdb/postgresql/v1/config/pos" + "tgresql13_1c.proto\0328yandex/cloud/mdb/pos" + "tgresql/v1/config/postgresql14.proto\032;ya" + "ndex/cloud/mdb/postgresql/v1/config/post" + "gresql14_1c.proto\0328yandex/cloud/mdb/post" + "gresql/v1/config/postgresql15.proto\032;yan" + "dex/cloud/mdb/postgresql/v1/config/postg" + "resql15_1c.proto\0323yandex/cloud/mdb/postg" + "resql/v1/config/host9_6.proto\0322yandex/cl" + "oud/mdb/postgresql/v1/config/host10.prot" + "o\0325yandex/cloud/mdb/postgresql/v1/config" + "/host10_1c.proto\0322yandex/cloud/mdb/postg" + "resql/v1/config/host11.proto\0325yandex/clo" + "ud/mdb/postgresql/v1/config/host11_1c.pr" + "oto\0322yandex/cloud/mdb/postgresql/v1/conf" + "ig/host12.proto\0325yandex/cloud/mdb/postgr" + "esql/v1/config/host12_1c.proto\0322yandex/c" + "loud/mdb/postgresql/v1/config/host13.pro" + "to\0325yandex/cloud/mdb/postgresql/v1/confi" + "g/host13_1c.proto\0322yandex/cloud/mdb/post" + "gresql/v1/config/host14.proto\0325yandex/cl" + "oud/mdb/postgresql/v1/config/host14_1c.p" + "roto\0322yandex/cloud/mdb/postgresql/v1/con" + "fig/host15.proto\0325yandex/cloud/mdb/postg" + "resql/v1/config/host15_1c.proto\0320yandex/" + "cloud/mdb/postgresql/v1/maintenance.prot" + "o\"\304\010\n\007Cluster\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002" + " \001(\t\022.\n\ncreated_at\030\003 \001(\0132\032.google.protob" + "uf.Timestamp\022\014\n\004name\030\004 \001(\t\022\023\n\013descriptio" + "n\030\005 \001(\t\022C\n\006labels\030\006 \003(\01323.yandex.cloud.m" + "db.postgresql.v1.Cluster.LabelsEntry\022H\n\013" + "environment\030\007 \001(\01623.yandex.cloud.mdb.pos" + "tgresql.v1.Cluster.Environment\022>\n\nmonito" + "ring\030\010 \003(\0132*.yandex.cloud.mdb.postgresql" + ".v1.Monitoring\022=\n\006config\030\t \001(\0132-.yandex." + "cloud.mdb.postgresql.v1.ClusterConfig\022\022\n" + "\nnetwork_id\030\n \001(\t\022>\n\006health\030\013 \001(\0162..yand" + "ex.cloud.mdb.postgresql.v1.Cluster.Healt" + "h\022>\n\006status\030\014 \001(\0162..yandex.cloud.mdb.pos" + "tgresql.v1.Cluster.Status\022M\n\022maintenance" + "_window\030\r \001(\01321.yandex.cloud.mdb.postgre" + "sql.v1.MaintenanceWindow\022O\n\021planned_oper" + "ation\030\016 \001(\01324.yandex.cloud.mdb.postgresq" + "l.v1.MaintenanceOperation\022\032\n\022security_gr" + "oup_ids\030\017 \003(\t\022\033\n\023deletion_protection\030\020 \001" + "(\010\022\026\n\016host_group_ids\030\021 \003(\t\032-\n\013LabelsEntr" + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"I\n\013Env" + "ironment\022\033\n\027ENVIRONMENT_UNSPECIFIED\020\000\022\016\n" + "\nPRODUCTION\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\010DEGRADED\020\003\"y\n\006Status\022\022\n\016STATUS_UNKNOW" + "N\020\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020" + "\003\022\014\n\010UPDATING\020\004\022\014\n\010STOPPING\020\005\022\013\n\007STOPPED" + "\020\006\022\014\n\010STARTING\020\007\"=\n\nMonitoring\022\014\n\004name\030\001" + " \001(\t\022\023\n\013description\030\002 \001(\t\022\014\n\004link\030\003 \001(\t\"" + "\224\020\n\rClusterConfig\022\017\n\007version\030\001 \001(\t\022t\n\025po" + "stgresql_config_9_6\030\002 \001(\0132=.yandex.cloud" + ".mdb.postgresql.v1.config.PostgresqlConf" + "igSet9_6H\000R\024postgresqlConfig_9_6\022z\n\027post" + "gresql_config_10_1c\030\n \001(\0132?.yandex.cloud" + ".mdb.postgresql.v1.config.PostgresqlConf" + "igSet10_1CH\000R\026postgresqlConfig_10_1c\022q\n\024" + "postgresql_config_10\030\003 \001(\0132<.yandex.clou" + "d.mdb.postgresql.v1.config.PostgresqlCon" + "figSet10H\000R\023postgresqlConfig_10\022q\n\024postg" + "resql_config_11\030\010 \001(\0132<.yandex.cloud.mdb" + ".postgresql.v1.config.PostgresqlConfigSe" + "t11H\000R\023postgresqlConfig_11\022z\n\027postgresql" + "_config_11_1c\030\r \001(\0132?.yandex.cloud.mdb.p" + "ostgresql.v1.config.PostgresqlConfigSet1" + "1_1CH\000R\026postgresqlConfig_11_1c\022q\n\024postgr" + "esql_config_12\030\013 \001(\0132<.yandex.cloud.mdb." + "postgresql.v1.config.PostgresqlConfigSet" + "12H\000R\023postgresqlConfig_12\022z\n\027postgresql_" + "config_12_1c\030\016 \001(\0132?.yandex.cloud.mdb.po" + "stgresql.v1.config.PostgresqlConfigSet12" + "_1CH\000R\026postgresqlConfig_12_1c\022q\n\024postgre" + "sql_config_13\030\017 \001(\0132<.yandex.cloud.mdb.p" + "ostgresql.v1.config.PostgresqlConfigSet1" + "3H\000R\023postgresqlConfig_13\022z\n\027postgresql_c" + "onfig_13_1c\030\022 \001(\0132?.yandex.cloud.mdb.pos" + "tgresql.v1.config.PostgresqlConfigSet13_" + "1CH\000R\026postgresqlConfig_13_1c\022q\n\024postgres" + "ql_config_14\030\020 \001(\0132<.yandex.cloud.mdb.po" + "stgresql.v1.config.PostgresqlConfigSet14" + "H\000R\023postgresqlConfig_14\022z\n\027postgresql_co" + "nfig_14_1c\030\023 \001(\0132?.yandex.cloud.mdb.post" + "gresql.v1.config.PostgresqlConfigSet14_1" + "CH\000R\026postgresqlConfig_14_1c\022q\n\024postgresq" + "l_config_15\030\025 \001(\0132<.yandex.cloud.mdb.pos" + "tgresql.v1.config.PostgresqlConfigSet15H" + "\000R\023postgresqlConfig_15\022z\n\027postgresql_con" + "fig_15_1c\030\026 \001(\0132?.yandex.cloud.mdb.postg" + "resql.v1.config.PostgresqlConfigSet15_1C" + "H\000R\026postgresqlConfig_15_1c\022M\n\rpooler_con" + "fig\030\004 \001(\01326.yandex.cloud.mdb.postgresql." + "v1.ConnectionPoolerConfig\022<\n\tresources\030\005" + " \001(\0132).yandex.cloud.mdb.postgresql.v1.Re" + "sources\0220\n\014autofailover\030\006 \001(\0132\032.google.p" + "rotobuf.BoolValue\0223\n\023backup_window_start" + "\030\007 \001(\0132\026.google.type.TimeOfDay\022H\n\031backup" + "_retain_period_days\030\021 \001(\0132\033.google.proto" + "buf.Int64ValueB\010\372\3071\0047-60\0226\n\006access\030\t \001(\013" + "2&.yandex.cloud.mdb.postgresql.v1.Access" + "\022W\n\027performance_diagnostics\030\014 \001(\01326.yand" + "ex.cloud.mdb.postgresql.v1.PerformanceDi" + "agnosticsB\023\n\021postgresql_config\"\376\001\n\026Conne" + "ctionPoolerConfig\022X\n\014pooling_mode\030\001 \001(\0162" + "B.yandex.cloud.mdb.postgresql.v1.Connect" + "ionPoolerConfig.PoolingMode\0220\n\014pool_disc" + "ard\030\002 \001(\0132\032.google.protobuf.BoolValue\"X\n" + "\013PoolingMode\022\034\n\030POOLING_MODE_UNSPECIFIED" + "\020\000\022\013\n\007SESSION\020\001\022\017\n\013TRANSACTION\020\002\022\r\n\tSTAT" + "EMENT\020\003\"\360\005\n\004Host\022\014\n\004name\030\001 \001(\t\022\022\n\ncluste" + "r_id\030\002 \001(\t\022\017\n\007zone_id\030\003 \001(\t\022<\n\tresources" + "\030\004 \001(\0132).yandex.cloud.mdb.postgresql.v1." + "Resources\0227\n\004role\030\005 \001(\0162).yandex.cloud.m" + "db.postgresql.v1.Host.Role\022;\n\006health\030\006 \001" + "(\0162+.yandex.cloud.mdb.postgresql.v1.Host" + ".Health\0229\n\010services\030\007 \003(\0132\'.yandex.cloud" + ".mdb.postgresql.v1.Service\022\021\n\tsubnet_id\030" + "\010 \001(\t\022\032\n\022replication_source\030\t \001(\t\022-\n\010pri" + "ority\030\n \001(\0132\033.google.protobuf.Int64Value" + "\022:\n\006config\030\013 \001(\0132*.yandex.cloud.mdb.post" + "gresql.v1.HostConfig\022\030\n\020assign_public_ip" + "\030\014 \001(\010\022F\n\014replica_type\030\r \001(\01620.yandex.cl" + "oud.mdb.postgresql.v1.Host.ReplicaType\"1" + "\n\004Role\022\020\n\014ROLE_UNKNOWN\020\000\022\n\n\006MASTER\020\001\022\013\n\007" + "REPLICA\020\002\"H\n\013ReplicaType\022\030\n\024REPLICA_TYPE" + "_UNKNOWN\020\000\022\t\n\005ASYNC\020\001\022\010\n\004SYNC\020\002\022\n\n\006QUORU" + "M\020\003\"M\n\006Health\022\022\n\016HEALTH_UNKNOWN\020\000\022\t\n\005ALI" + "VE\020\001\022\010\n\004DEAD\020\002\022\014\n\010DEGRADED\020\003\022\014\n\010READONLY" + "\020\004\"\362\014\n\nHostConfig\022y\n\025postgresql_config_9" + "_6\030\001 \001(\0132>.yandex.cloud.mdb.postgresql.v" + "1.config.PostgresqlHostConfig9_6H\000R\030post" + "gresqlHostConfig_9_6\022\177\n\027postgresql_confi" + "g_10_1c\030\004 \001(\[email protected]" + "sql.v1.config.PostgresqlHostConfig10_1CH" + "\000R\032postgresqlHostConfig_10_1c\022v\n\024postgre" + "sql_config_10\030\002 \001(\0132=.yandex.cloud.mdb.p" + "ostgresql.v1.config.PostgresqlHostConfig" + "10H\000R\027postgresqlHostConfig_10\022v\n\024postgre" + "sql_config_11\030\003 \001(\0132=.yandex.cloud.mdb.p" + "ostgresql.v1.config.PostgresqlHostConfig" + "11H\000R\027postgresqlHostConfig_11\022\177\n\027postgre" + "sql_config_11_1c\030\006 \001(\[email protected]" + "b.postgresql.v1.config.PostgresqlHostCon" + "fig11_1CH\000R\032postgresqlHostConfig_11_1c\022v" + "\n\024postgresql_config_12\030\005 \001(\0132=.yandex.cl" + "oud.mdb.postgresql.v1.config.PostgresqlH" + "ostConfig12H\000R\027postgresqlHostConfig_12\022\177" + "\n\027postgresql_config_12_1c\030\007 \001(\[email protected]" + ".cloud.mdb.postgresql.v1.config.Postgres" + "qlHostConfig12_1CH\000R\032postgresqlHostConfi" + "g_12_1c\022v\n\024postgresql_config_13\030\010 \001(\0132=." + "yandex.cloud.mdb.postgresql.v1.config.Po" + "stgresqlHostConfig13H\000R\027postgresqlHostCo" + "nfig_13\022\177\n\027postgresql_config_13_1c\030\n \001(\013" + "[email protected]" + ".PostgresqlHostConfig13_1CH\000R\032postgresql" + "HostConfig_13_1c\022v\n\024postgresql_config_14" + "\030\t \001(\0132=.yandex.cloud.mdb.postgresql.v1." + "config.PostgresqlHostConfig14H\000R\027postgre" + "sqlHostConfig_14\022\177\n\027postgresql_config_14" + "_1c\030\013 \001(\[email protected]." + "v1.config.PostgresqlHostConfig14_1CH\000R\032p" + "ostgresqlHostConfig_14_1c\022v\n\024postgresql_" + "config_15\030\014 \001(\0132=.yandex.cloud.mdb.postg" + "resql.v1.config.PostgresqlHostConfig15H\000" + "R\027postgresqlHostConfig_15\022\177\n\027postgresql_" + "config_15_1c\030\r \001(\[email protected]" + "stgresql.v1.config.PostgresqlHostConfig1" + "5_1CH\000R\032postgresqlHostConfig_15_1cB\023\n\021po" + "stgresql_config\"\200\002\n\007Service\022:\n\004type\030\001 \001(" + "\0162,.yandex.cloud.mdb.postgresql.v1.Servi" + "ce.Type\022>\n\006health\030\002 \001(\0162..yandex.cloud.m" + "db.postgresql.v1.Service.Health\"8\n\004Type\022" + "\024\n\020TYPE_UNSPECIFIED\020\000\022\016\n\nPOSTGRESQL\020\001\022\n\n" + "\006POOLER\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\010READONLY\020\003\"P\n\tRe" + "sources\022\032\n\022resource_preset_id\030\001 \001(\t\022\021\n\td" + "isk_size\030\002 \001(\003\022\024\n\014disk_type_id\030\003 \001(\t\"W\n\006" + "Access\022\021\n\tdata_lens\030\001 \001(\010\022\017\n\007web_sql\030\002 \001" + "(\010\022\022\n\nserverless\030\003 \001(\010\022\025\n\rdata_transfer\030" + "\004 \001(\010\"\215\001\n\026PerformanceDiagnostics\022\017\n\007enab" + "led\030\001 \001(\010\022/\n\032sessions_sampling_interval\030" + "\002 \001(\003B\013\372\3071\0071-86400\0221\n\034statements_samplin" + "g_interval\030\003 \001(\003B\013\372\3071\0071-86400Bs\n\"yandex." + "cloud.api.mdb.postgresql.v1ZMgithub.com/" + "yandex-cloud/go-genproto/yandex/cloud/md" + "b/postgresql/v1;postgresqlb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), com.google.type.TimeOfDayProto.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host96.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host10.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host101C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host11.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host111C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host12.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host121C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host13.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host131C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host14.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host141C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host15.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.config.Host151C.getDescriptor(), yandex.cloud.api.mdb.postgresql.v1.Maintenance.getDescriptor(), }); internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Environment", "Monitoring", "Config", "NetworkId", "Health", "Status", "MaintenanceWindow", "PlannedOperation", "SecurityGroupIds", "DeletionProtection", "HostGroupIds", }); internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_LabelsEntry_descriptor = internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_Cluster_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_Monitoring_descriptor, new java.lang.String[] { "Name", "Description", "Link", }); internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_ClusterConfig_descriptor, new java.lang.String[] { "Version", "PostgresqlConfig96", "PostgresqlConfig101C", "PostgresqlConfig10", "PostgresqlConfig11", "PostgresqlConfig111C", "PostgresqlConfig12", "PostgresqlConfig121C", "PostgresqlConfig13", "PostgresqlConfig131C", "PostgresqlConfig14", "PostgresqlConfig141C", "PostgresqlConfig15", "PostgresqlConfig151C", "PoolerConfig", "Resources", "Autofailover", "BackupWindowStart", "BackupRetainPeriodDays", "Access", "PerformanceDiagnostics", "PostgresqlConfig", }); internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_ConnectionPoolerConfig_descriptor, new java.lang.String[] { "PoolingMode", "PoolDiscard", }); internal_static_yandex_cloud_mdb_postgresql_v1_Host_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_mdb_postgresql_v1_Host_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_Host_descriptor, new java.lang.String[] { "Name", "ClusterId", "ZoneId", "Resources", "Role", "Health", "Services", "SubnetId", "ReplicationSource", "Priority", "Config", "AssignPublicIp", "ReplicaType", }); internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_HostConfig_descriptor, new java.lang.String[] { "PostgresqlConfig96", "PostgresqlConfig101C", "PostgresqlConfig10", "PostgresqlConfig11", "PostgresqlConfig111C", "PostgresqlConfig12", "PostgresqlConfig121C", "PostgresqlConfig13", "PostgresqlConfig131C", "PostgresqlConfig14", "PostgresqlConfig141C", "PostgresqlConfig15", "PostgresqlConfig151C", "PostgresqlConfig", }); internal_static_yandex_cloud_mdb_postgresql_v1_Service_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_mdb_postgresql_v1_Service_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_Service_descriptor, new java.lang.String[] { "Type", "Health", }); internal_static_yandex_cloud_mdb_postgresql_v1_Resources_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_mdb_postgresql_v1_Resources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_Resources_descriptor, new java.lang.String[] { "ResourcePresetId", "DiskSize", "DiskTypeId", }); internal_static_yandex_cloud_mdb_postgresql_v1_Access_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_mdb_postgresql_v1_Access_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_Access_descriptor, new java.lang.String[] { "DataLens", "WebSql", "Serverless", "DataTransfer", }); internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_postgresql_v1_PerformanceDiagnostics_descriptor, new java.lang.String[] { "Enabled", "SessionsSamplingInterval", "StatementsSamplingInterval", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); com.google.type.TimeOfDayProto.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql96.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql10.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql101C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql11.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql111C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql12.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql121C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql13.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql131C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql14.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql141C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql15.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Postgresql151C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host96.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host10.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host101C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host11.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host111C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host12.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host121C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host13.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host131C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host14.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host141C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host15.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.config.Host151C.getDescriptor(); yandex.cloud.api.mdb.postgresql.v1.Maintenance.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy