yandex.cloud.api.mdb.sqlserver.v1.PSC Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/sqlserver/v1/cluster.proto
package yandex.cloud.api.mdb.sqlserver.v1;
public final class PSC {
private PSC() {}
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.sqlserver.v1.Cluster)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the SQL Server cluster.
* This ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* ID of the SQL Server cluster.
* This ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* ID of the folder the SQL Server cluster belongs to.
*
*
* string folder_id = 2;
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder the SQL Server cluster belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
boolean hasCreatedAt();
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
com.google.protobuf.Timestamp getCreatedAt();
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder();
/**
*
* Name of the SQL Server cluster.
* The name must be unique within the folder, comply with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and be 1-63 characters long.
*
*
* string name = 4;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the SQL Server cluster.
* The name must be unique within the folder, comply with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and be 1-63 characters long.
*
*
* string name = 4;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the SQL Server cluster.
* Must be 0-256 characters long.
*
*
* string description = 5;
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the SQL Server cluster.
* Must be 0-256 characters long.
*
*
* string description = 5;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Custom labels for the SQL Server cluster as `key:value` pairs.
* Maximum 64 per resource.
*
*
* map<string, string> labels = 6;
*/
int getLabelsCount();
/**
*
* Custom labels for the SQL Server 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 SQL Server cluster as `key:value` pairs.
* Maximum 64 per resource.
*
*
* map<string, string> labels = 6;
*/
java.util.Map
getLabelsMap();
/**
*
* Custom labels for the SQL Server 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 SQL Server 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 SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @return The enum numeric value on the wire for environment.
*/
int getEnvironmentValue();
/**
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @return The environment.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment getEnvironment();
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
java.util.List
getMonitoringList();
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring getMonitoring(int index);
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
int getMonitoringCount();
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
java.util.List extends yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder>
getMonitoringOrBuilderList();
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder getMonitoringOrBuilder(
int index);
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
* @return Whether the config field is set.
*/
boolean hasConfig();
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
* @return The config.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig getConfig();
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Cluster.Health health = 11;
* @return The enum numeric value on the wire for health.
*/
int getHealthValue();
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Health health = 11;
* @return The health.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health getHealth();
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.v1.Cluster.Status status = 12;
* @return The status.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status getStatus();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index);
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 14;
* @return The deletionProtection.
*/
boolean getDeletionProtection();
/**
*
*SQL Server Collation.
*
*
* string sqlcollation = 15;
* @return The sqlcollation.
*/
java.lang.String getSqlcollation();
/**
*
*SQL Server Collation.
*
*
* string sqlcollation = 15;
* @return The bytes for sqlcollation.
*/
com.google.protobuf.ByteString
getSqlcollationBytes();
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 16;
* @return A list containing the hostGroupIds.
*/
java.util.List
getHostGroupIdsList();
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 16;
* @return The count of hostGroupIds.
*/
int getHostGroupIdsCount();
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 16;
* @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 = 16;
* @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);
/**
*
* ID of the service account which is used for access to Object Storage.
*
*
* string service_account_id = 17;
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
*
* ID of the service account which is used for access to Object Storage.
*
*
* string service_account_id = 17;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
}
/**
*
* An SQL Server cluster.
* For more information, see the [Concepts](/docs/managed-sqlserver/concepts) section of the documentation.
*
*
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.Cluster}
*/
public static final class Cluster extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.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;
sqlcollation_ = "";
hostGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
serviceAccountId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Cluster();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Cluster(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
folderId_ = s;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (createdAt_ != null) {
subBuilder = createdAt_.toBuilder();
}
createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(createdAt_);
createdAt_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 56: {
int rawValue = input.readEnum();
environment_ = rawValue;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
monitoring_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
monitoring_.add(
input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.parser(), extensionRegistry));
break;
}
case 74: {
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.Builder subBuilder = null;
if (config_ != null) {
subBuilder = config_.toBuilder();
}
config_ = input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(config_);
config_ = subBuilder.buildPartial();
}
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
networkId_ = s;
break;
}
case 88: {
int rawValue = input.readEnum();
health_ = rawValue;
break;
}
case 96: {
int rawValue = input.readEnum();
status_ = rawValue;
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
securityGroupIds_.add(s);
break;
}
case 112: {
deletionProtection_ = input.readBool();
break;
}
case 122: {
java.lang.String s = input.readStringRequireUtf8();
sqlcollation_ = s;
break;
}
case 130: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
hostGroupIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
hostGroupIds_.add(s);
break;
}
case 138: {
java.lang.String s = input.readStringRequireUtf8();
serviceAccountId_ = 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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.sqlserver.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.sqlserver.v1.PSC.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.sqlserver.v1.Cluster.Environment)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.sqlserver.v1.Cluster.Health}
*/
public enum Health
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* State of the cluster is unknown ([Host.health] of all hosts in the cluster is `UNKNOWN`).
*
*
* HEALTH_UNKNOWN = 0;
*/
HEALTH_UNKNOWN(0),
/**
*
* Cluster is alive and works well ([Host.health] of all hosts in the cluster is `ALIVE`).
*
*
* ALIVE = 1;
*/
ALIVE(1),
/**
*
* Cluster is inoperable ([Host.health] of all hosts in the cluster is `DEAD`).
*
*
* DEAD = 2;
*/
DEAD(2),
/**
*
* Cluster is in degraded state ([Host.health] of at least one of the hosts in the cluster is not `ALIVE`).
*
*
* DEGRADED = 3;
*/
DEGRADED(3),
UNRECOGNIZED(-1),
;
/**
*
* State of the cluster is unknown ([Host.health] of all hosts in the cluster is `UNKNOWN`).
*
*
* HEALTH_UNKNOWN = 0;
*/
public static final int HEALTH_UNKNOWN_VALUE = 0;
/**
*
* Cluster is alive and works well ([Host.health] of all hosts in the cluster is `ALIVE`).
*
*
* ALIVE = 1;
*/
public static final int ALIVE_VALUE = 1;
/**
*
* Cluster is inoperable ([Host.health] of all hosts in the cluster is `DEAD`).
*
*
* DEAD = 2;
*/
public static final int DEAD_VALUE = 2;
/**
*
* Cluster is in degraded state ([Host.health] of at least one of the hosts 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.sqlserver.v1.PSC.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.sqlserver.v1.Cluster.Health)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.sqlserver.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.sqlserver.v1.PSC.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.sqlserver.v1.Cluster.Status)
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* ID of the SQL Server cluster.
* This ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
*
* ID of the SQL Server cluster.
* This ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FOLDER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder the SQL Server 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 the SQL Server cluster belongs to.
*
*
* string folder_id = 2;
* @return The bytes for folderId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CREATED_AT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp createdAt_;
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
@java.lang.Override
public boolean hasCreatedAt() {
return createdAt_ != null;
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreatedAt() {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
return getCreatedAt();
}
public static final int NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object name_;
/**
*
* Name of the SQL Server cluster.
* The name must be unique within the folder, comply with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and be 1-63 characters long.
*
*
* string name = 4;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the SQL Server cluster.
* The name must be unique within the folder, comply with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and be 1-63 characters long.
*
*
* string name = 4;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 5;
private volatile java.lang.Object description_;
/**
*
* Description of the SQL Server cluster.
* Must be 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 SQL Server cluster.
* Must be 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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.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 SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @return The environment.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.UNRECOGNIZED : result;
}
public static final int MONITORING_FIELD_NUMBER = 8;
private java.util.List monitoring_;
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public java.util.List getMonitoringList() {
return monitoring_;
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder>
getMonitoringOrBuilderList() {
return monitoring_;
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public int getMonitoringCount() {
return monitoring_.size();
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring getMonitoring(int index) {
return monitoring_.get(index);
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder getMonitoringOrBuilder(
int index) {
return monitoring_.get(index);
}
public static final int CONFIG_FIELD_NUMBER = 9;
private yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig config_;
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
* @return Whether the config field is set.
*/
@java.lang.Override
public boolean hasConfig() {
return config_ != null;
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
* @return The config.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig getConfig() {
return config_ == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.getDefaultInstance() : config_;
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.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.sqlserver.v1.Cluster.Health health = 11;
* @return The health.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health.UNRECOGNIZED : result;
}
public static final int STATUS_FIELD_NUMBER = 12;
private int status_;
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.v1.Cluster.Status status = 12;
* @return The status.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status.valueOf(status_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status.UNRECOGNIZED : result;
}
public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 13;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
public static final int DELETION_PROTECTION_FIELD_NUMBER = 14;
private boolean deletionProtection_;
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 14;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
public static final int SQLCOLLATION_FIELD_NUMBER = 15;
private volatile java.lang.Object sqlcollation_;
/**
*
*SQL Server Collation.
*
*
* string sqlcollation = 15;
* @return The sqlcollation.
*/
@java.lang.Override
public java.lang.String getSqlcollation() {
java.lang.Object ref = sqlcollation_;
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();
sqlcollation_ = s;
return s;
}
}
/**
*
*SQL Server Collation.
*
*
* string sqlcollation = 15;
* @return The bytes for sqlcollation.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSqlcollationBytes() {
java.lang.Object ref = sqlcollation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sqlcollation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOST_GROUP_IDS_FIELD_NUMBER = 16;
private com.google.protobuf.LazyStringList hostGroupIds_;
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 16;
* @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 = 16;
* @return The count of hostGroupIds.
*/
public int getHostGroupIdsCount() {
return hostGroupIds_.size();
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 16;
* @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 = 16;
* @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);
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 17;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account which is used for access to Object Storage.
*
*
* string service_account_id = 17;
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
}
}
/**
*
* ID of the service account which is used for access to Object Storage.
*
*
* string service_account_id = 17;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Cluster.Health.HEALTH_UNKNOWN.getNumber()) {
output.writeEnum(11, health_);
}
if (status_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status.STATUS_UNKNOWN.getNumber()) {
output.writeEnum(12, status_);
}
for (int i = 0; i < securityGroupIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, securityGroupIds_.getRaw(i));
}
if (deletionProtection_ != false) {
output.writeBool(14, deletionProtection_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlcollation_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, sqlcollation_);
}
for (int i = 0; i < hostGroupIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, hostGroupIds_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, serviceAccountId_);
}
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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Cluster.Health.HEALTH_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, health_);
}
if (status_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status.STATUS_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, status_);
}
{
int dataSize = 0;
for (int i = 0; i < securityGroupIds_.size(); i++) {
dataSize += computeStringSizeNoTag(securityGroupIds_.getRaw(i));
}
size += dataSize;
size += 1 * getSecurityGroupIdsList().size();
}
if (deletionProtection_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(14, deletionProtection_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sqlcollation_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, sqlcollation_);
}
{
int dataSize = 0;
for (int i = 0; i < hostGroupIds_.size(); i++) {
dataSize += computeStringSizeNoTag(hostGroupIds_.getRaw(i));
}
size += dataSize;
size += 2 * getHostGroupIdsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, serviceAccountId_);
}
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.sqlserver.v1.PSC.Cluster)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster other = (yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster) obj;
if (!getId()
.equals(other.getId())) return false;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (hasCreatedAt() != other.hasCreatedAt()) return false;
if (hasCreatedAt()) {
if (!getCreatedAt()
.equals(other.getCreatedAt())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (environment_ != other.environment_) return false;
if (!getMonitoringList()
.equals(other.getMonitoringList())) return false;
if (hasConfig() != other.hasConfig()) return false;
if (hasConfig()) {
if (!getConfig()
.equals(other.getConfig())) return false;
}
if (!getNetworkId()
.equals(other.getNetworkId())) return false;
if (health_ != other.health_) return false;
if (status_ != other.status_) return false;
if (!getSecurityGroupIdsList()
.equals(other.getSecurityGroupIdsList())) return false;
if (getDeletionProtection()
!= other.getDeletionProtection()) return false;
if (!getSqlcollation()
.equals(other.getSqlcollation())) return false;
if (!getHostGroupIdsList()
.equals(other.getHostGroupIdsList())) return false;
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getFolderId().hashCode();
if (hasCreatedAt()) {
hash = (37 * hash) + CREATED_AT_FIELD_NUMBER;
hash = (53 * hash) + getCreatedAt().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER;
hash = (53 * hash) + environment_;
if (getMonitoringCount() > 0) {
hash = (37 * hash) + MONITORING_FIELD_NUMBER;
hash = (53 * hash) + getMonitoringList().hashCode();
}
if (hasConfig()) {
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConfig().hashCode();
}
hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER;
hash = (53 * hash) + getNetworkId().hashCode();
hash = (37 * hash) + HEALTH_FIELD_NUMBER;
hash = (53 * hash) + health_;
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
if (getSecurityGroupIdsCount() > 0) {
hash = (37 * hash) + SECURITY_GROUP_IDS_FIELD_NUMBER;
hash = (53 * hash) + getSecurityGroupIdsList().hashCode();
}
hash = (37 * hash) + DELETION_PROTECTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDeletionProtection());
hash = (37 * hash) + SQLCOLLATION_FIELD_NUMBER;
hash = (53 * hash) + getSqlcollation().hashCode();
if (getHostGroupIdsCount() > 0) {
hash = (37 * hash) + HOST_GROUP_IDS_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupIdsList().hashCode();
}
hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Cluster parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Cluster parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Cluster parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Cluster parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Cluster prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* An SQL Server cluster.
* For more information, see the [Concepts](/docs/managed-sqlserver/concepts) section of the documentation.
*
*
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.Cluster}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.Cluster)
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMonitoringFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
folderId_ = "";
if (createdAtBuilder_ == null) {
createdAt_ = null;
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
environment_ = 0;
if (monitoringBuilder_ == null) {
monitoring_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
monitoringBuilder_.clear();
}
if (configBuilder_ == null) {
config_ = null;
} else {
config_ = null;
configBuilder_ = null;
}
networkId_ = "";
health_ = 0;
status_ = 0;
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
deletionProtection_ = false;
sqlcollation_ = "";
hostGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
serviceAccountId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster build() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster result = new yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.folderId_ = folderId_;
if (createdAtBuilder_ == null) {
result.createdAt_ = createdAt_;
} else {
result.createdAt_ = createdAtBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.environment_ = environment_;
if (monitoringBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
monitoring_ = java.util.Collections.unmodifiableList(monitoring_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.monitoring_ = monitoring_;
} else {
result.monitoring_ = monitoringBuilder_.build();
}
if (configBuilder_ == null) {
result.config_ = config_;
} else {
result.config_ = configBuilder_.build();
}
result.networkId_ = networkId_;
result.health_ = health_;
result.status_ = status_;
if (((bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = securityGroupIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.securityGroupIds_ = securityGroupIds_;
result.deletionProtection_ = deletionProtection_;
result.sqlcollation_ = sqlcollation_;
if (((bitField0_ & 0x00000008) != 0)) {
hostGroupIds_ = hostGroupIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.hostGroupIds_ = hostGroupIds_;
result.serviceAccountId_ = serviceAccountId_;
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.sqlserver.v1.PSC.Cluster) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (other.hasCreatedAt()) {
mergeCreatedAt(other.getCreatedAt());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (other.environment_ != 0) {
setEnvironmentValue(other.getEnvironmentValue());
}
if (monitoringBuilder_ == null) {
if (!other.monitoring_.isEmpty()) {
if (monitoring_.isEmpty()) {
monitoring_ = other.monitoring_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMonitoringIsMutable();
monitoring_.addAll(other.monitoring_);
}
onChanged();
}
} else {
if (!other.monitoring_.isEmpty()) {
if (monitoringBuilder_.isEmpty()) {
monitoringBuilder_.dispose();
monitoringBuilder_ = null;
monitoring_ = other.monitoring_;
bitField0_ = (bitField0_ & ~0x00000002);
monitoringBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMonitoringFieldBuilder() : null;
} else {
monitoringBuilder_.addAllMessages(other.monitoring_);
}
}
}
if (other.hasConfig()) {
mergeConfig(other.getConfig());
}
if (!other.getNetworkId().isEmpty()) {
networkId_ = other.networkId_;
onChanged();
}
if (other.health_ != 0) {
setHealthValue(other.getHealthValue());
}
if (other.status_ != 0) {
setStatusValue(other.getStatusValue());
}
if (!other.securityGroupIds_.isEmpty()) {
if (securityGroupIds_.isEmpty()) {
securityGroupIds_ = other.securityGroupIds_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.addAll(other.securityGroupIds_);
}
onChanged();
}
if (other.getDeletionProtection() != false) {
setDeletionProtection(other.getDeletionProtection());
}
if (!other.getSqlcollation().isEmpty()) {
sqlcollation_ = other.sqlcollation_;
onChanged();
}
if (!other.hostGroupIds_.isEmpty()) {
if (hostGroupIds_.isEmpty()) {
hostGroupIds_ = other.hostGroupIds_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureHostGroupIdsIsMutable();
hostGroupIds_.addAll(other.hostGroupIds_);
}
onChanged();
}
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
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.sqlserver.v1.PSC.Cluster parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server cluster.
* This ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the SQL Server cluster.
* This ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the SQL Server cluster.
* This ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
* ID of the SQL Server cluster.
* This ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* ID of the SQL Server cluster.
* This ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder the SQL Server 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 the SQL Server 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 the SQL Server 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 the SQL Server 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 the SQL Server cluster belongs to.
*
*
* string folder_id = 2;
* @param value The bytes for folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
folderId_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createdAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_;
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return Whether the createdAt field is set.
*/
public boolean hasCreatedAt() {
return createdAtBuilder_ != null || createdAt_ != null;
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
* @return The createdAt.
*/
public com.google.protobuf.Timestamp getCreatedAt() {
if (createdAtBuilder_ == null) {
return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
} else {
return createdAtBuilder_.getMessage();
}
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createdAt_ = value;
onChanged();
} else {
createdAtBuilder_.setMessage(value);
}
return this;
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder setCreatedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (createdAtBuilder_ == null) {
createdAt_ = builderForValue.build();
onChanged();
} else {
createdAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) {
if (createdAtBuilder_ == null) {
if (createdAt_ != null) {
createdAt_ =
com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial();
} else {
createdAt_ = value;
}
onChanged();
} else {
createdAtBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public Builder clearCreatedAt() {
if (createdAtBuilder_ == null) {
createdAt_ = null;
onChanged();
} else {
createdAt_ = null;
createdAtBuilder_ = null;
}
return this;
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() {
onChanged();
return getCreatedAtFieldBuilder().getBuilder();
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() {
if (createdAtBuilder_ != null) {
return createdAtBuilder_.getMessageOrBuilder();
} else {
return createdAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;
}
}
/**
*
* Time when SQL Server cluster was created.
*
*
* .google.protobuf.Timestamp created_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreatedAtFieldBuilder() {
if (createdAtBuilder_ == null) {
createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreatedAt(),
getParentForChildren(),
isClean());
createdAt_ = null;
}
return createdAtBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* Name of the SQL Server cluster.
* The name must be unique within the folder, comply with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and be 1-63 characters long.
*
*
* string name = 4;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the SQL Server cluster.
* The name must be unique within the folder, comply with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and be 1-63 characters long.
*
*
* string name = 4;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the SQL Server cluster.
* The name must be unique within the folder, comply with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and be 1-63 characters long.
*
*
* string name = 4;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the SQL Server cluster.
* The name must be unique within the folder, comply with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and be 1-63 characters long.
*
*
* string name = 4;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the SQL Server cluster.
* The name must be unique within the folder, comply with [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt) and be 1-63 characters long.
*
*
* string name = 4;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the SQL Server cluster.
* Must be 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 SQL Server cluster.
* Must be 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 SQL Server cluster.
* Must be 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 SQL Server cluster.
* Must be 0-256 characters long.
*
*
* string description = 5;
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the SQL Server cluster.
* Must be 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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.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 SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.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 SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @return The environment.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment.UNRECOGNIZED : result;
}
/**
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Environment environment = 7;
* @param value The environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironment(yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Environment value) {
if (value == null) {
throw new NullPointerException();
}
environment_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Deployment environment of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.v1.PSC.Monitoring, yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder> monitoringBuilder_;
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public int getMonitoringCount() {
if (monitoringBuilder_ == null) {
return monitoring_.size();
} else {
return monitoringBuilder_.getCount();
}
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring getMonitoring(int index) {
if (monitoringBuilder_ == null) {
return monitoring_.get(index);
} else {
return monitoringBuilder_.getMessage(index);
}
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public Builder setMonitoring(
int index, yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public Builder setMonitoring(
int index, yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public Builder addMonitoring(yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public Builder addMonitoring(
int index, yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public Builder addMonitoring(
yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public Builder addMonitoring(
int index, yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public Builder addAllMonitoring(
java.lang.Iterable extends yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring> 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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.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 SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.Builder getMonitoringBuilder(
int index) {
return getMonitoringFieldBuilder().getBuilder(index);
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder getMonitoringOrBuilder(
int index) {
if (monitoringBuilder_ == null) {
return monitoring_.get(index); } else {
return monitoringBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public java.util.List extends yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder>
getMonitoringOrBuilderList() {
if (monitoringBuilder_ != null) {
return monitoringBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(monitoring_);
}
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.Builder addMonitoringBuilder() {
return getMonitoringFieldBuilder().addBuilder(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.getDefaultInstance());
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.Builder addMonitoringBuilder(
int index) {
return getMonitoringFieldBuilder().addBuilder(
index, yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.getDefaultInstance());
}
/**
*
* Description of monitoring systems relevant to the SQL Server cluster.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Monitoring monitoring = 8;
*/
public java.util.List
getMonitoringBuilderList() {
return getMonitoringFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring, yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder>
getMonitoringFieldBuilder() {
if (monitoringBuilder_ == null) {
monitoringBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring, yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder>(
monitoring_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
monitoring_ = null;
}
return monitoringBuilder_;
}
private yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig config_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig, yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfigOrBuilder> configBuilder_;
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
* @return Whether the config field is set.
*/
public boolean hasConfig() {
return configBuilder_ != null || config_ != null;
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
* @return The config.
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig getConfig() {
if (configBuilder_ == null) {
return config_ == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.getDefaultInstance() : config_;
} else {
return configBuilder_.getMessage();
}
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
*/
public Builder setConfig(yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
config_ = value;
onChanged();
} else {
configBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
*/
public Builder setConfig(
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.Builder builderForValue) {
if (configBuilder_ == null) {
config_ = builderForValue.build();
onChanged();
} else {
configBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
*/
public Builder mergeConfig(yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig value) {
if (configBuilder_ == null) {
if (config_ != null) {
config_ =
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.newBuilder(config_).mergeFrom(value).buildPartial();
} else {
config_ = value;
}
onChanged();
} else {
configBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
*/
public Builder clearConfig() {
if (configBuilder_ == null) {
config_ = null;
onChanged();
} else {
config_ = null;
configBuilder_ = null;
}
return this;
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.Builder getConfigBuilder() {
onChanged();
return getConfigFieldBuilder().getBuilder();
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfigOrBuilder getConfigOrBuilder() {
if (configBuilder_ != null) {
return configBuilder_.getMessageOrBuilder();
} else {
return config_ == null ?
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.getDefaultInstance() : config_;
}
}
/**
*
* Configuration of the SQL Server cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig config = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig, yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfigOrBuilder>
getConfigFieldBuilder() {
if (configBuilder_ == null) {
configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig, yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.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.sqlserver.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.sqlserver.v1.Cluster.Health health = 11;
* @return The health.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health.UNRECOGNIZED : result;
}
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Health health = 11;
* @param value The health to set.
* @return This builder for chaining.
*/
public Builder setHealth(yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Health value) {
if (value == null) {
throw new NullPointerException();
}
health_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Aggregated cluster health.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.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.sqlserver.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.sqlserver.v1.Cluster.Status status = 12;
* @return The status.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status getStatus() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status.valueOf(status_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status.UNRECOGNIZED : result;
}
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Status status = 12;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster.Status value) {
if (value == null) {
throw new NullPointerException();
}
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Current state of the cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Cluster.Status status = 12;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSecurityGroupIdsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
bitField0_ |= 0x00000004;
}
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param index The index to set the value at.
* @param value The securityGroupIds to set.
* @return This builder for chaining.
*/
public Builder setSecurityGroupIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.set(index, value);
onChanged();
return this;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param value The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param values The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addAllSecurityGroupIds(
java.lang.Iterable values) {
ensureSecurityGroupIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, securityGroupIds_);
onChanged();
return this;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @return This builder for chaining.
*/
public Builder clearSecurityGroupIds() {
securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 13;
* @param value The bytes of the securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
private boolean deletionProtection_ ;
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 14;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 14;
* @param value The deletionProtection to set.
* @return This builder for chaining.
*/
public Builder setDeletionProtection(boolean value) {
deletionProtection_ = value;
onChanged();
return this;
}
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 14;
* @return This builder for chaining.
*/
public Builder clearDeletionProtection() {
deletionProtection_ = false;
onChanged();
return this;
}
private java.lang.Object sqlcollation_ = "";
/**
*
*SQL Server Collation.
*
*
* string sqlcollation = 15;
* @return The sqlcollation.
*/
public java.lang.String getSqlcollation() {
java.lang.Object ref = sqlcollation_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
sqlcollation_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*SQL Server Collation.
*
*
* string sqlcollation = 15;
* @return The bytes for sqlcollation.
*/
public com.google.protobuf.ByteString
getSqlcollationBytes() {
java.lang.Object ref = sqlcollation_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sqlcollation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*SQL Server Collation.
*
*
* string sqlcollation = 15;
* @param value The sqlcollation to set.
* @return This builder for chaining.
*/
public Builder setSqlcollation(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
sqlcollation_ = value;
onChanged();
return this;
}
/**
*
*SQL Server Collation.
*
*
* string sqlcollation = 15;
* @return This builder for chaining.
*/
public Builder clearSqlcollation() {
sqlcollation_ = getDefaultInstance().getSqlcollation();
onChanged();
return this;
}
/**
*
*SQL Server Collation.
*
*
* string sqlcollation = 15;
* @param value The bytes for sqlcollation to set.
* @return This builder for chaining.
*/
public Builder setSqlcollationBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
sqlcollation_ = value;
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 = 16;
* @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 = 16;
* @return The count of hostGroupIds.
*/
public int getHostGroupIdsCount() {
return hostGroupIds_.size();
}
/**
*
* Host groups hosting VMs of the cluster.
*
*
* repeated string host_group_ids = 16;
* @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 = 16;
* @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 = 16;
* @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 = 16;
* @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 = 16;
* @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 = 16;
* @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 = 16;
* @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;
}
private java.lang.Object serviceAccountId_ = "";
/**
*
* ID of the service account which is used for access to Object Storage.
*
*
* string service_account_id = 17;
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the service account which is used for access to Object Storage.
*
*
* string service_account_id = 17;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account which is used for access to Object Storage.
*
*
* string service_account_id = 17;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account which is used for access to Object Storage.
*
*
* string service_account_id = 17;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account which is used for access to Object Storage.
*
*
* string service_account_id = 17;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
@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.sqlserver.v1.Cluster)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.Cluster)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSC.Cluster();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Cluster getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MonitoringOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.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 SQL Server cluster.
*
*
* string link = 3;
* @return The link.
*/
java.lang.String getLink();
/**
*
* Link to the monitoring system charts for the SQL Server cluster.
*
*
* string link = 3;
* @return The bytes for link.
*/
com.google.protobuf.ByteString
getLinkBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.Monitoring}
*/
public static final class Monitoring extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server 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 SQL Server 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.sqlserver.v1.PSC.Monitoring)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring other = (yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Monitoring parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Monitoring parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Monitoring parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Monitoring parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Monitoring parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Monitoring prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.Monitoring}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.Monitoring)
yandex.cloud.api.mdb.sqlserver.v1.PSC.MonitoringOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring build() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring result = new yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Monitoring) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Monitoring parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server 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.sqlserver.v1.Monitoring)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.Monitoring)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSC.Monitoring();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Monitoring getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClusterConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.ClusterConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* Version of the SQL Server.
*
*
* string version = 1;
* @return The version.
*/
java.lang.String getVersion();
/**
*
* Version of the SQL Server.
*
*
* string version = 1;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
* @return Whether the sqlserverConfig2016sp2std field is set.
*/
boolean hasSqlserverConfig2016Sp2Std();
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
* @return The sqlserverConfig2016sp2std.
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std getSqlserverConfig2016Sp2Std();
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2stdOrBuilder getSqlserverConfig2016Sp2StdOrBuilder();
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
* @return Whether the sqlserverConfig2016sp2ent field is set.
*/
boolean hasSqlserverConfig2016Sp2Ent();
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
* @return The sqlserverConfig2016sp2ent.
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent getSqlserverConfig2016Sp2Ent();
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2entOrBuilder getSqlserverConfig2016Sp2EntOrBuilder();
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
* @return Whether the sqlserverConfig2017std field is set.
*/
boolean hasSqlserverConfig2017Std();
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
* @return The sqlserverConfig2017std.
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std getSqlserverConfig2017Std();
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017stdOrBuilder getSqlserverConfig2017StdOrBuilder();
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
* @return Whether the sqlserverConfig2017ent field is set.
*/
boolean hasSqlserverConfig2017Ent();
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
* @return The sqlserverConfig2017ent.
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent getSqlserverConfig2017Ent();
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017entOrBuilder getSqlserverConfig2017EntOrBuilder();
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
* @return Whether the sqlserverConfig2019std field is set.
*/
boolean hasSqlserverConfig2019Std();
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
* @return The sqlserverConfig2019std.
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std getSqlserverConfig2019Std();
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019stdOrBuilder getSqlserverConfig2019StdOrBuilder();
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
* @return Whether the sqlserverConfig2019ent field is set.
*/
boolean hasSqlserverConfig2019Ent();
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
* @return The sqlserverConfig2019ent.
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent getSqlserverConfig2019Ent();
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
*/
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019entOrBuilder getSqlserverConfig2019EntOrBuilder();
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
* @return The resources.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources getResources();
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder getResourcesOrBuilder();
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
* @return Whether the backupWindowStart field is set.
*/
boolean hasBackupWindowStart();
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
* @return The backupWindowStart.
*/
com.google.type.TimeOfDay getBackupWindowStart();
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
*/
com.google.type.TimeOfDayOrBuilder getBackupWindowStartOrBuilder();
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
* @return Whether the access field is set.
*/
boolean hasAccess();
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
* @return The access.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access getAccess();
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.AccessOrBuilder getAccessOrBuilder();
/**
*
* Secondary replicas connection mode
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections secondary_connections = 7;
* @return The enum numeric value on the wire for secondaryConnections.
*/
int getSecondaryConnectionsValue();
/**
*
* Secondary replicas connection mode
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections secondary_connections = 7;
* @return The secondaryConnections.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections getSecondaryConnections();
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SqlserverConfigCase getSqlserverConfigCase();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.ClusterConfig}
*/
public static final class ClusterConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.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_ = "";
secondaryConnections_ = 0;
}
@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.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.Builder subBuilder = null;
if (sqlserverConfigCase_ == 2) {
subBuilder = ((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_).toBuilder();
}
sqlserverConfig_ =
input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_);
sqlserverConfig_ = subBuilder.buildPartial();
}
sqlserverConfigCase_ = 2;
break;
}
case 26: {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder subBuilder = null;
if (resources_ != null) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.google.type.TimeOfDay.Builder subBuilder = null;
if (backupWindowStart_ != null) {
subBuilder = backupWindowStart_.toBuilder();
}
backupWindowStart_ = input.readMessage(com.google.type.TimeOfDay.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backupWindowStart_);
backupWindowStart_ = subBuilder.buildPartial();
}
break;
}
case 42: {
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.Builder subBuilder = null;
if (sqlserverConfigCase_ == 5) {
subBuilder = ((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_).toBuilder();
}
sqlserverConfig_ =
input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_);
sqlserverConfig_ = subBuilder.buildPartial();
}
sqlserverConfigCase_ = 5;
break;
}
case 50: {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.Builder subBuilder = null;
if (access_ != null) {
subBuilder = access_.toBuilder();
}
access_ = input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(access_);
access_ = subBuilder.buildPartial();
}
break;
}
case 56: {
int rawValue = input.readEnum();
secondaryConnections_ = rawValue;
break;
}
case 66: {
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.Builder subBuilder = null;
if (sqlserverConfigCase_ == 8) {
subBuilder = ((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_).toBuilder();
}
sqlserverConfig_ =
input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_);
sqlserverConfig_ = subBuilder.buildPartial();
}
sqlserverConfigCase_ = 8;
break;
}
case 74: {
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.Builder subBuilder = null;
if (sqlserverConfigCase_ == 9) {
subBuilder = ((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_).toBuilder();
}
sqlserverConfig_ =
input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_);
sqlserverConfig_ = subBuilder.buildPartial();
}
sqlserverConfigCase_ = 9;
break;
}
case 82: {
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.Builder subBuilder = null;
if (sqlserverConfigCase_ == 10) {
subBuilder = ((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_).toBuilder();
}
sqlserverConfig_ =
input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_);
sqlserverConfig_ = subBuilder.buildPartial();
}
sqlserverConfigCase_ = 10;
break;
}
case 90: {
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.Builder subBuilder = null;
if (sqlserverConfigCase_ == 11) {
subBuilder = ((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_).toBuilder();
}
sqlserverConfig_ =
input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_);
sqlserverConfig_ = subBuilder.buildPartial();
}
sqlserverConfigCase_ = 11;
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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections}
*/
public enum SecondaryConnections
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SECONDARY_CONNECTIONS_UNSPECIFIED = 0;
*/
SECONDARY_CONNECTIONS_UNSPECIFIED(0),
/**
*
* Connections to secondary replicas are prohibited
*
*
* SECONDARY_CONNECTIONS_OFF = 1;
*/
SECONDARY_CONNECTIONS_OFF(1),
/**
*
* Secondary replicas are read-only
*
*
* SECONDARY_CONNECTIONS_READ_ONLY = 2;
*/
SECONDARY_CONNECTIONS_READ_ONLY(2),
UNRECOGNIZED(-1),
;
/**
* SECONDARY_CONNECTIONS_UNSPECIFIED = 0;
*/
public static final int SECONDARY_CONNECTIONS_UNSPECIFIED_VALUE = 0;
/**
*
* Connections to secondary replicas are prohibited
*
*
* SECONDARY_CONNECTIONS_OFF = 1;
*/
public static final int SECONDARY_CONNECTIONS_OFF_VALUE = 1;
/**
*
* Secondary replicas are read-only
*
*
* SECONDARY_CONNECTIONS_READ_ONLY = 2;
*/
public static final int SECONDARY_CONNECTIONS_READ_ONLY_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 SecondaryConnections 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 SecondaryConnections forNumber(int value) {
switch (value) {
case 0: return SECONDARY_CONNECTIONS_UNSPECIFIED;
case 1: return SECONDARY_CONNECTIONS_OFF;
case 2: return SECONDARY_CONNECTIONS_READ_ONLY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SecondaryConnections> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SecondaryConnections findValueByNumber(int number) {
return SecondaryConnections.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.sqlserver.v1.PSC.ClusterConfig.getDescriptor().getEnumTypes().get(0);
}
private static final SecondaryConnections[] VALUES = values();
public static SecondaryConnections 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 SecondaryConnections(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections)
}
private int sqlserverConfigCase_ = 0;
private java.lang.Object sqlserverConfig_;
public enum SqlserverConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SQLSERVER_CONFIG_2016SP2STD(2),
SQLSERVER_CONFIG_2016SP2ENT(5),
SQLSERVER_CONFIG_2017STD(8),
SQLSERVER_CONFIG_2017ENT(9),
SQLSERVER_CONFIG_2019STD(10),
SQLSERVER_CONFIG_2019ENT(11),
SQLSERVERCONFIG_NOT_SET(0);
private final int value;
private SqlserverConfigCase(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 SqlserverConfigCase valueOf(int value) {
return forNumber(value);
}
public static SqlserverConfigCase forNumber(int value) {
switch (value) {
case 2: return SQLSERVER_CONFIG_2016SP2STD;
case 5: return SQLSERVER_CONFIG_2016SP2ENT;
case 8: return SQLSERVER_CONFIG_2017STD;
case 9: return SQLSERVER_CONFIG_2017ENT;
case 10: return SQLSERVER_CONFIG_2019STD;
case 11: return SQLSERVER_CONFIG_2019ENT;
case 0: return SQLSERVERCONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SqlserverConfigCase
getSqlserverConfigCase() {
return SqlserverConfigCase.forNumber(
sqlserverConfigCase_);
}
public static final int VERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object version_;
/**
*
* Version of the SQL Server.
*
*
* string version = 1;
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
}
}
/**
*
* Version of the SQL Server.
*
*
* 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 SQLSERVER_CONFIG_2016SP2STD_FIELD_NUMBER = 2;
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
* @return Whether the sqlserverConfig2016sp2std field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2016Sp2Std() {
return sqlserverConfigCase_ == 2;
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
* @return The sqlserverConfig2016sp2std.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std getSqlserverConfig2016Sp2Std() {
if (sqlserverConfigCase_ == 2) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.getDefaultInstance();
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2stdOrBuilder getSqlserverConfig2016Sp2StdOrBuilder() {
if (sqlserverConfigCase_ == 2) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.getDefaultInstance();
}
public static final int SQLSERVER_CONFIG_2016SP2ENT_FIELD_NUMBER = 5;
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
* @return Whether the sqlserverConfig2016sp2ent field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2016Sp2Ent() {
return sqlserverConfigCase_ == 5;
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
* @return The sqlserverConfig2016sp2ent.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent getSqlserverConfig2016Sp2Ent() {
if (sqlserverConfigCase_ == 5) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.getDefaultInstance();
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2entOrBuilder getSqlserverConfig2016Sp2EntOrBuilder() {
if (sqlserverConfigCase_ == 5) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.getDefaultInstance();
}
public static final int SQLSERVER_CONFIG_2017STD_FIELD_NUMBER = 8;
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
* @return Whether the sqlserverConfig2017std field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2017Std() {
return sqlserverConfigCase_ == 8;
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
* @return The sqlserverConfig2017std.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std getSqlserverConfig2017Std() {
if (sqlserverConfigCase_ == 8) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.getDefaultInstance();
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017stdOrBuilder getSqlserverConfig2017StdOrBuilder() {
if (sqlserverConfigCase_ == 8) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.getDefaultInstance();
}
public static final int SQLSERVER_CONFIG_2017ENT_FIELD_NUMBER = 9;
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
* @return Whether the sqlserverConfig2017ent field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2017Ent() {
return sqlserverConfigCase_ == 9;
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
* @return The sqlserverConfig2017ent.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent getSqlserverConfig2017Ent() {
if (sqlserverConfigCase_ == 9) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.getDefaultInstance();
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017entOrBuilder getSqlserverConfig2017EntOrBuilder() {
if (sqlserverConfigCase_ == 9) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.getDefaultInstance();
}
public static final int SQLSERVER_CONFIG_2019STD_FIELD_NUMBER = 10;
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
* @return Whether the sqlserverConfig2019std field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2019Std() {
return sqlserverConfigCase_ == 10;
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
* @return The sqlserverConfig2019std.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std getSqlserverConfig2019Std() {
if (sqlserverConfigCase_ == 10) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.getDefaultInstance();
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019stdOrBuilder getSqlserverConfig2019StdOrBuilder() {
if (sqlserverConfigCase_ == 10) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.getDefaultInstance();
}
public static final int SQLSERVER_CONFIG_2019ENT_FIELD_NUMBER = 11;
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
* @return Whether the sqlserverConfig2019ent field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2019Ent() {
return sqlserverConfigCase_ == 11;
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
* @return The sqlserverConfig2019ent.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent getSqlserverConfig2019Ent() {
if (sqlserverConfigCase_ == 11) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.getDefaultInstance();
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019entOrBuilder getSqlserverConfig2019EntOrBuilder() {
if (sqlserverConfigCase_ == 11) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.getDefaultInstance();
}
public static final int RESOURCES_FIELD_NUMBER = 3;
private yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources resources_;
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resources_ != null;
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
* @return The resources.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources getResources() {
return resources_ == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.getDefaultInstance() : resources_;
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder getResourcesOrBuilder() {
return getResources();
}
public static final int BACKUP_WINDOW_START_FIELD_NUMBER = 4;
private com.google.type.TimeOfDay backupWindowStart_;
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
* @return Whether the backupWindowStart field is set.
*/
@java.lang.Override
public boolean hasBackupWindowStart() {
return backupWindowStart_ != null;
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
* @return The backupWindowStart.
*/
@java.lang.Override
public com.google.type.TimeOfDay getBackupWindowStart() {
return backupWindowStart_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : backupWindowStart_;
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
*/
@java.lang.Override
public com.google.type.TimeOfDayOrBuilder getBackupWindowStartOrBuilder() {
return getBackupWindowStart();
}
public static final int ACCESS_FIELD_NUMBER = 6;
private yandex.cloud.api.mdb.sqlserver.v1.PSC.Access access_;
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
* @return Whether the access field is set.
*/
@java.lang.Override
public boolean hasAccess() {
return access_ != null;
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
* @return The access.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Access getAccess() {
return access_ == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.getDefaultInstance() : access_;
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.AccessOrBuilder getAccessOrBuilder() {
return getAccess();
}
public static final int SECONDARY_CONNECTIONS_FIELD_NUMBER = 7;
private int secondaryConnections_;
/**
*
* Secondary replicas connection mode
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections secondary_connections = 7;
* @return The enum numeric value on the wire for secondaryConnections.
*/
@java.lang.Override public int getSecondaryConnectionsValue() {
return secondaryConnections_;
}
/**
*
* Secondary replicas connection mode
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections secondary_connections = 7;
* @return The secondaryConnections.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections getSecondaryConnections() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections result = yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections.valueOf(secondaryConnections_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections.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(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
if (sqlserverConfigCase_ == 2) {
output.writeMessage(2, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_);
}
if (resources_ != null) {
output.writeMessage(3, getResources());
}
if (backupWindowStart_ != null) {
output.writeMessage(4, getBackupWindowStart());
}
if (sqlserverConfigCase_ == 5) {
output.writeMessage(5, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_);
}
if (access_ != null) {
output.writeMessage(6, getAccess());
}
if (secondaryConnections_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections.SECONDARY_CONNECTIONS_UNSPECIFIED.getNumber()) {
output.writeEnum(7, secondaryConnections_);
}
if (sqlserverConfigCase_ == 8) {
output.writeMessage(8, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_);
}
if (sqlserverConfigCase_ == 9) {
output.writeMessage(9, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_);
}
if (sqlserverConfigCase_ == 10) {
output.writeMessage(10, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_);
}
if (sqlserverConfigCase_ == 11) {
output.writeMessage(11, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_);
}
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 (sqlserverConfigCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_);
}
if (resources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResources());
}
if (backupWindowStart_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getBackupWindowStart());
}
if (sqlserverConfigCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_);
}
if (access_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getAccess());
}
if (secondaryConnections_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections.SECONDARY_CONNECTIONS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, secondaryConnections_);
}
if (sqlserverConfigCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_);
}
if (sqlserverConfigCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_);
}
if (sqlserverConfigCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_);
}
if (sqlserverConfigCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_);
}
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.sqlserver.v1.PSC.ClusterConfig)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig other = (yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (hasBackupWindowStart() != other.hasBackupWindowStart()) return false;
if (hasBackupWindowStart()) {
if (!getBackupWindowStart()
.equals(other.getBackupWindowStart())) return false;
}
if (hasAccess() != other.hasAccess()) return false;
if (hasAccess()) {
if (!getAccess()
.equals(other.getAccess())) return false;
}
if (secondaryConnections_ != other.secondaryConnections_) return false;
if (!getSqlserverConfigCase().equals(other.getSqlserverConfigCase())) return false;
switch (sqlserverConfigCase_) {
case 2:
if (!getSqlserverConfig2016Sp2Std()
.equals(other.getSqlserverConfig2016Sp2Std())) return false;
break;
case 5:
if (!getSqlserverConfig2016Sp2Ent()
.equals(other.getSqlserverConfig2016Sp2Ent())) return false;
break;
case 8:
if (!getSqlserverConfig2017Std()
.equals(other.getSqlserverConfig2017Std())) return false;
break;
case 9:
if (!getSqlserverConfig2017Ent()
.equals(other.getSqlserverConfig2017Ent())) return false;
break;
case 10:
if (!getSqlserverConfig2019Std()
.equals(other.getSqlserverConfig2019Std())) return false;
break;
case 11:
if (!getSqlserverConfig2019Ent()
.equals(other.getSqlserverConfig2019Ent())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
if (hasBackupWindowStart()) {
hash = (37 * hash) + BACKUP_WINDOW_START_FIELD_NUMBER;
hash = (53 * hash) + getBackupWindowStart().hashCode();
}
if (hasAccess()) {
hash = (37 * hash) + ACCESS_FIELD_NUMBER;
hash = (53 * hash) + getAccess().hashCode();
}
hash = (37 * hash) + SECONDARY_CONNECTIONS_FIELD_NUMBER;
hash = (53 * hash) + secondaryConnections_;
switch (sqlserverConfigCase_) {
case 2:
hash = (37 * hash) + SQLSERVER_CONFIG_2016SP2STD_FIELD_NUMBER;
hash = (53 * hash) + getSqlserverConfig2016Sp2Std().hashCode();
break;
case 5:
hash = (37 * hash) + SQLSERVER_CONFIG_2016SP2ENT_FIELD_NUMBER;
hash = (53 * hash) + getSqlserverConfig2016Sp2Ent().hashCode();
break;
case 8:
hash = (37 * hash) + SQLSERVER_CONFIG_2017STD_FIELD_NUMBER;
hash = (53 * hash) + getSqlserverConfig2017Std().hashCode();
break;
case 9:
hash = (37 * hash) + SQLSERVER_CONFIG_2017ENT_FIELD_NUMBER;
hash = (53 * hash) + getSqlserverConfig2017Ent().hashCode();
break;
case 10:
hash = (37 * hash) + SQLSERVER_CONFIG_2019STD_FIELD_NUMBER;
hash = (53 * hash) + getSqlserverConfig2019Std().hashCode();
break;
case 11:
hash = (37 * hash) + SQLSERVER_CONFIG_2019ENT_FIELD_NUMBER;
hash = (53 * hash) + getSqlserverConfig2019Ent().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.ClusterConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.ClusterConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.ClusterConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.ClusterConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.ClusterConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.ClusterConfig)
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
version_ = "";
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resources_ = null;
resourcesBuilder_ = null;
}
if (backupWindowStartBuilder_ == null) {
backupWindowStart_ = null;
} else {
backupWindowStart_ = null;
backupWindowStartBuilder_ = null;
}
if (accessBuilder_ == null) {
access_ = null;
} else {
access_ = null;
accessBuilder_ = null;
}
secondaryConnections_ = 0;
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig build() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig result = new yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig(this);
result.version_ = version_;
if (sqlserverConfigCase_ == 2) {
if (sqlserverConfig2016Sp2StdBuilder_ == null) {
result.sqlserverConfig_ = sqlserverConfig_;
} else {
result.sqlserverConfig_ = sqlserverConfig2016Sp2StdBuilder_.build();
}
}
if (sqlserverConfigCase_ == 5) {
if (sqlserverConfig2016Sp2EntBuilder_ == null) {
result.sqlserverConfig_ = sqlserverConfig_;
} else {
result.sqlserverConfig_ = sqlserverConfig2016Sp2EntBuilder_.build();
}
}
if (sqlserverConfigCase_ == 8) {
if (sqlserverConfig2017StdBuilder_ == null) {
result.sqlserverConfig_ = sqlserverConfig_;
} else {
result.sqlserverConfig_ = sqlserverConfig2017StdBuilder_.build();
}
}
if (sqlserverConfigCase_ == 9) {
if (sqlserverConfig2017EntBuilder_ == null) {
result.sqlserverConfig_ = sqlserverConfig_;
} else {
result.sqlserverConfig_ = sqlserverConfig2017EntBuilder_.build();
}
}
if (sqlserverConfigCase_ == 10) {
if (sqlserverConfig2019StdBuilder_ == null) {
result.sqlserverConfig_ = sqlserverConfig_;
} else {
result.sqlserverConfig_ = sqlserverConfig2019StdBuilder_.build();
}
}
if (sqlserverConfigCase_ == 11) {
if (sqlserverConfig2019EntBuilder_ == null) {
result.sqlserverConfig_ = sqlserverConfig_;
} else {
result.sqlserverConfig_ = sqlserverConfig2019EntBuilder_.build();
}
}
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
if (backupWindowStartBuilder_ == null) {
result.backupWindowStart_ = backupWindowStart_;
} else {
result.backupWindowStart_ = backupWindowStartBuilder_.build();
}
if (accessBuilder_ == null) {
result.access_ = access_;
} else {
result.access_ = accessBuilder_.build();
}
result.secondaryConnections_ = secondaryConnections_;
result.sqlserverConfigCase_ = sqlserverConfigCase_;
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.sqlserver.v1.PSC.ClusterConfig) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (other.hasResources()) {
mergeResources(other.getResources());
}
if (other.hasBackupWindowStart()) {
mergeBackupWindowStart(other.getBackupWindowStart());
}
if (other.hasAccess()) {
mergeAccess(other.getAccess());
}
if (other.secondaryConnections_ != 0) {
setSecondaryConnectionsValue(other.getSecondaryConnectionsValue());
}
switch (other.getSqlserverConfigCase()) {
case SQLSERVER_CONFIG_2016SP2STD: {
mergeSqlserverConfig2016Sp2Std(other.getSqlserverConfig2016Sp2Std());
break;
}
case SQLSERVER_CONFIG_2016SP2ENT: {
mergeSqlserverConfig2016Sp2Ent(other.getSqlserverConfig2016Sp2Ent());
break;
}
case SQLSERVER_CONFIG_2017STD: {
mergeSqlserverConfig2017Std(other.getSqlserverConfig2017Std());
break;
}
case SQLSERVER_CONFIG_2017ENT: {
mergeSqlserverConfig2017Ent(other.getSqlserverConfig2017Ent());
break;
}
case SQLSERVER_CONFIG_2019STD: {
mergeSqlserverConfig2019Std(other.getSqlserverConfig2019Std());
break;
}
case SQLSERVER_CONFIG_2019ENT: {
mergeSqlserverConfig2019Ent(other.getSqlserverConfig2019Ent());
break;
}
case SQLSERVERCONFIG_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.sqlserver.v1.PSC.ClusterConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sqlserverConfigCase_ = 0;
private java.lang.Object sqlserverConfig_;
public SqlserverConfigCase
getSqlserverConfigCase() {
return SqlserverConfigCase.forNumber(
sqlserverConfigCase_);
}
public Builder clearSqlserverConfig() {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
* Version of the SQL Server.
*
*
* string version = 1;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Version of the SQL Server.
*
*
* string version = 1;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Version of the SQL Server.
*
*
* string version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
*
* Version of the SQL Server.
*
*
* string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
* Version of the SQL Server.
*
*
* 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.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2stdOrBuilder> sqlserverConfig2016Sp2StdBuilder_;
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
* @return Whether the sqlserverConfig2016sp2std field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2016Sp2Std() {
return sqlserverConfigCase_ == 2;
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
* @return The sqlserverConfig2016sp2std.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std getSqlserverConfig2016Sp2Std() {
if (sqlserverConfig2016Sp2StdBuilder_ == null) {
if (sqlserverConfigCase_ == 2) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.getDefaultInstance();
} else {
if (sqlserverConfigCase_ == 2) {
return sqlserverConfig2016Sp2StdBuilder_.getMessage();
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
*/
public Builder setSqlserverConfig2016Sp2Std(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std value) {
if (sqlserverConfig2016Sp2StdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sqlserverConfig_ = value;
onChanged();
} else {
sqlserverConfig2016Sp2StdBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 2;
return this;
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
*/
public Builder setSqlserverConfig2016Sp2Std(
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.Builder builderForValue) {
if (sqlserverConfig2016Sp2StdBuilder_ == null) {
sqlserverConfig_ = builderForValue.build();
onChanged();
} else {
sqlserverConfig2016Sp2StdBuilder_.setMessage(builderForValue.build());
}
sqlserverConfigCase_ = 2;
return this;
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
*/
public Builder mergeSqlserverConfig2016Sp2Std(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std value) {
if (sqlserverConfig2016Sp2StdBuilder_ == null) {
if (sqlserverConfigCase_ == 2 &&
sqlserverConfig_ != yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.getDefaultInstance()) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.newBuilder((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_)
.mergeFrom(value).buildPartial();
} else {
sqlserverConfig_ = value;
}
onChanged();
} else {
if (sqlserverConfigCase_ == 2) {
sqlserverConfig2016Sp2StdBuilder_.mergeFrom(value);
}
sqlserverConfig2016Sp2StdBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 2;
return this;
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
*/
public Builder clearSqlserverConfig2016Sp2Std() {
if (sqlserverConfig2016Sp2StdBuilder_ == null) {
if (sqlserverConfigCase_ == 2) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
onChanged();
}
} else {
if (sqlserverConfigCase_ == 2) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
}
sqlserverConfig2016Sp2StdBuilder_.clear();
}
return this;
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
*/
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.Builder getSqlserverConfig2016Sp2StdBuilder() {
return getSqlserverConfig2016Sp2StdFieldBuilder().getBuilder();
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2stdOrBuilder getSqlserverConfig2016Sp2StdOrBuilder() {
if ((sqlserverConfigCase_ == 2) && (sqlserverConfig2016Sp2StdBuilder_ != null)) {
return sqlserverConfig2016Sp2StdBuilder_.getMessageOrBuilder();
} else {
if (sqlserverConfigCase_ == 2) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2016sp2 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2std sqlserver_config_2016sp2std = 2 [json_name = "sqlserverConfig_2016sp2std"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2stdOrBuilder>
getSqlserverConfig2016Sp2StdFieldBuilder() {
if (sqlserverConfig2016Sp2StdBuilder_ == null) {
if (!(sqlserverConfigCase_ == 2)) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.getDefaultInstance();
}
sqlserverConfig2016Sp2StdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2stdOrBuilder>(
(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2std) sqlserverConfig_,
getParentForChildren(),
isClean());
sqlserverConfig_ = null;
}
sqlserverConfigCase_ = 2;
onChanged();;
return sqlserverConfig2016Sp2StdBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2entOrBuilder> sqlserverConfig2016Sp2EntBuilder_;
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
* @return Whether the sqlserverConfig2016sp2ent field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2016Sp2Ent() {
return sqlserverConfigCase_ == 5;
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
* @return The sqlserverConfig2016sp2ent.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent getSqlserverConfig2016Sp2Ent() {
if (sqlserverConfig2016Sp2EntBuilder_ == null) {
if (sqlserverConfigCase_ == 5) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.getDefaultInstance();
} else {
if (sqlserverConfigCase_ == 5) {
return sqlserverConfig2016Sp2EntBuilder_.getMessage();
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
*/
public Builder setSqlserverConfig2016Sp2Ent(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent value) {
if (sqlserverConfig2016Sp2EntBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sqlserverConfig_ = value;
onChanged();
} else {
sqlserverConfig2016Sp2EntBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 5;
return this;
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
*/
public Builder setSqlserverConfig2016Sp2Ent(
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.Builder builderForValue) {
if (sqlserverConfig2016Sp2EntBuilder_ == null) {
sqlserverConfig_ = builderForValue.build();
onChanged();
} else {
sqlserverConfig2016Sp2EntBuilder_.setMessage(builderForValue.build());
}
sqlserverConfigCase_ = 5;
return this;
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
*/
public Builder mergeSqlserverConfig2016Sp2Ent(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent value) {
if (sqlserverConfig2016Sp2EntBuilder_ == null) {
if (sqlserverConfigCase_ == 5 &&
sqlserverConfig_ != yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.getDefaultInstance()) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.newBuilder((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_)
.mergeFrom(value).buildPartial();
} else {
sqlserverConfig_ = value;
}
onChanged();
} else {
if (sqlserverConfigCase_ == 5) {
sqlserverConfig2016Sp2EntBuilder_.mergeFrom(value);
}
sqlserverConfig2016Sp2EntBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 5;
return this;
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
*/
public Builder clearSqlserverConfig2016Sp2Ent() {
if (sqlserverConfig2016Sp2EntBuilder_ == null) {
if (sqlserverConfigCase_ == 5) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
onChanged();
}
} else {
if (sqlserverConfigCase_ == 5) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
}
sqlserverConfig2016Sp2EntBuilder_.clear();
}
return this;
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
*/
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.Builder getSqlserverConfig2016Sp2EntBuilder() {
return getSqlserverConfig2016Sp2EntFieldBuilder().getBuilder();
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2entOrBuilder getSqlserverConfig2016Sp2EntOrBuilder() {
if ((sqlserverConfigCase_ == 5) && (sqlserverConfig2016Sp2EntBuilder_ != null)) {
return sqlserverConfig2016Sp2EntBuilder_.getMessageOrBuilder();
} else {
if (sqlserverConfigCase_ == 5) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2016sp2 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2016sp2ent sqlserver_config_2016sp2ent = 5 [json_name = "sqlserverConfig_2016sp2ent"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2entOrBuilder>
getSqlserverConfig2016Sp2EntFieldBuilder() {
if (sqlserverConfig2016Sp2EntBuilder_ == null) {
if (!(sqlserverConfigCase_ == 5)) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.getDefaultInstance();
}
sqlserverConfig2016Sp2EntBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2entOrBuilder>(
(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.SQLServerConfigSet2016sp2ent) sqlserverConfig_,
getParentForChildren(),
isClean());
sqlserverConfig_ = null;
}
sqlserverConfigCase_ = 5;
onChanged();;
return sqlserverConfig2016Sp2EntBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017stdOrBuilder> sqlserverConfig2017StdBuilder_;
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
* @return Whether the sqlserverConfig2017std field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2017Std() {
return sqlserverConfigCase_ == 8;
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
* @return The sqlserverConfig2017std.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std getSqlserverConfig2017Std() {
if (sqlserverConfig2017StdBuilder_ == null) {
if (sqlserverConfigCase_ == 8) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.getDefaultInstance();
} else {
if (sqlserverConfigCase_ == 8) {
return sqlserverConfig2017StdBuilder_.getMessage();
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
*/
public Builder setSqlserverConfig2017Std(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std value) {
if (sqlserverConfig2017StdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sqlserverConfig_ = value;
onChanged();
} else {
sqlserverConfig2017StdBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 8;
return this;
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
*/
public Builder setSqlserverConfig2017Std(
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.Builder builderForValue) {
if (sqlserverConfig2017StdBuilder_ == null) {
sqlserverConfig_ = builderForValue.build();
onChanged();
} else {
sqlserverConfig2017StdBuilder_.setMessage(builderForValue.build());
}
sqlserverConfigCase_ = 8;
return this;
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
*/
public Builder mergeSqlserverConfig2017Std(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std value) {
if (sqlserverConfig2017StdBuilder_ == null) {
if (sqlserverConfigCase_ == 8 &&
sqlserverConfig_ != yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.getDefaultInstance()) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.newBuilder((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_)
.mergeFrom(value).buildPartial();
} else {
sqlserverConfig_ = value;
}
onChanged();
} else {
if (sqlserverConfigCase_ == 8) {
sqlserverConfig2017StdBuilder_.mergeFrom(value);
}
sqlserverConfig2017StdBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 8;
return this;
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
*/
public Builder clearSqlserverConfig2017Std() {
if (sqlserverConfig2017StdBuilder_ == null) {
if (sqlserverConfigCase_ == 8) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
onChanged();
}
} else {
if (sqlserverConfigCase_ == 8) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
}
sqlserverConfig2017StdBuilder_.clear();
}
return this;
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
*/
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.Builder getSqlserverConfig2017StdBuilder() {
return getSqlserverConfig2017StdFieldBuilder().getBuilder();
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017stdOrBuilder getSqlserverConfig2017StdOrBuilder() {
if ((sqlserverConfigCase_ == 8) && (sqlserverConfig2017StdBuilder_ != null)) {
return sqlserverConfig2017StdBuilder_.getMessageOrBuilder();
} else {
if (sqlserverConfigCase_ == 8) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2017 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017std sqlserver_config_2017std = 8 [json_name = "sqlserverConfig_2017std"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017stdOrBuilder>
getSqlserverConfig2017StdFieldBuilder() {
if (sqlserverConfig2017StdBuilder_ == null) {
if (!(sqlserverConfigCase_ == 8)) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.getDefaultInstance();
}
sqlserverConfig2017StdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017stdOrBuilder>(
(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017std) sqlserverConfig_,
getParentForChildren(),
isClean());
sqlserverConfig_ = null;
}
sqlserverConfigCase_ = 8;
onChanged();;
return sqlserverConfig2017StdBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017entOrBuilder> sqlserverConfig2017EntBuilder_;
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
* @return Whether the sqlserverConfig2017ent field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2017Ent() {
return sqlserverConfigCase_ == 9;
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
* @return The sqlserverConfig2017ent.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent getSqlserverConfig2017Ent() {
if (sqlserverConfig2017EntBuilder_ == null) {
if (sqlserverConfigCase_ == 9) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.getDefaultInstance();
} else {
if (sqlserverConfigCase_ == 9) {
return sqlserverConfig2017EntBuilder_.getMessage();
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
*/
public Builder setSqlserverConfig2017Ent(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent value) {
if (sqlserverConfig2017EntBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sqlserverConfig_ = value;
onChanged();
} else {
sqlserverConfig2017EntBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 9;
return this;
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
*/
public Builder setSqlserverConfig2017Ent(
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.Builder builderForValue) {
if (sqlserverConfig2017EntBuilder_ == null) {
sqlserverConfig_ = builderForValue.build();
onChanged();
} else {
sqlserverConfig2017EntBuilder_.setMessage(builderForValue.build());
}
sqlserverConfigCase_ = 9;
return this;
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
*/
public Builder mergeSqlserverConfig2017Ent(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent value) {
if (sqlserverConfig2017EntBuilder_ == null) {
if (sqlserverConfigCase_ == 9 &&
sqlserverConfig_ != yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.getDefaultInstance()) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.newBuilder((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_)
.mergeFrom(value).buildPartial();
} else {
sqlserverConfig_ = value;
}
onChanged();
} else {
if (sqlserverConfigCase_ == 9) {
sqlserverConfig2017EntBuilder_.mergeFrom(value);
}
sqlserverConfig2017EntBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 9;
return this;
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
*/
public Builder clearSqlserverConfig2017Ent() {
if (sqlserverConfig2017EntBuilder_ == null) {
if (sqlserverConfigCase_ == 9) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
onChanged();
}
} else {
if (sqlserverConfigCase_ == 9) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
}
sqlserverConfig2017EntBuilder_.clear();
}
return this;
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
*/
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.Builder getSqlserverConfig2017EntBuilder() {
return getSqlserverConfig2017EntFieldBuilder().getBuilder();
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017entOrBuilder getSqlserverConfig2017EntOrBuilder() {
if ((sqlserverConfigCase_ == 9) && (sqlserverConfig2017EntBuilder_ != null)) {
return sqlserverConfig2017EntBuilder_.getMessageOrBuilder();
} else {
if (sqlserverConfigCase_ == 9) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2017 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2017ent sqlserver_config_2017ent = 9 [json_name = "sqlserverConfig_2017ent"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017entOrBuilder>
getSqlserverConfig2017EntFieldBuilder() {
if (sqlserverConfig2017EntBuilder_ == null) {
if (!(sqlserverConfigCase_ == 9)) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.getDefaultInstance();
}
sqlserverConfig2017EntBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017entOrBuilder>(
(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.SQLServerConfigSet2017ent) sqlserverConfig_,
getParentForChildren(),
isClean());
sqlserverConfig_ = null;
}
sqlserverConfigCase_ = 9;
onChanged();;
return sqlserverConfig2017EntBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019stdOrBuilder> sqlserverConfig2019StdBuilder_;
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
* @return Whether the sqlserverConfig2019std field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2019Std() {
return sqlserverConfigCase_ == 10;
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
* @return The sqlserverConfig2019std.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std getSqlserverConfig2019Std() {
if (sqlserverConfig2019StdBuilder_ == null) {
if (sqlserverConfigCase_ == 10) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.getDefaultInstance();
} else {
if (sqlserverConfigCase_ == 10) {
return sqlserverConfig2019StdBuilder_.getMessage();
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
*/
public Builder setSqlserverConfig2019Std(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std value) {
if (sqlserverConfig2019StdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sqlserverConfig_ = value;
onChanged();
} else {
sqlserverConfig2019StdBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 10;
return this;
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
*/
public Builder setSqlserverConfig2019Std(
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.Builder builderForValue) {
if (sqlserverConfig2019StdBuilder_ == null) {
sqlserverConfig_ = builderForValue.build();
onChanged();
} else {
sqlserverConfig2019StdBuilder_.setMessage(builderForValue.build());
}
sqlserverConfigCase_ = 10;
return this;
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
*/
public Builder mergeSqlserverConfig2019Std(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std value) {
if (sqlserverConfig2019StdBuilder_ == null) {
if (sqlserverConfigCase_ == 10 &&
sqlserverConfig_ != yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.getDefaultInstance()) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.newBuilder((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_)
.mergeFrom(value).buildPartial();
} else {
sqlserverConfig_ = value;
}
onChanged();
} else {
if (sqlserverConfigCase_ == 10) {
sqlserverConfig2019StdBuilder_.mergeFrom(value);
}
sqlserverConfig2019StdBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 10;
return this;
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
*/
public Builder clearSqlserverConfig2019Std() {
if (sqlserverConfig2019StdBuilder_ == null) {
if (sqlserverConfigCase_ == 10) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
onChanged();
}
} else {
if (sqlserverConfigCase_ == 10) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
}
sqlserverConfig2019StdBuilder_.clear();
}
return this;
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
*/
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.Builder getSqlserverConfig2019StdBuilder() {
return getSqlserverConfig2019StdFieldBuilder().getBuilder();
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019stdOrBuilder getSqlserverConfig2019StdOrBuilder() {
if ((sqlserverConfigCase_ == 10) && (sqlserverConfig2019StdBuilder_ != null)) {
return sqlserverConfig2019StdBuilder_.getMessageOrBuilder();
} else {
if (sqlserverConfigCase_ == 10) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2019 standard edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019std sqlserver_config_2019std = 10 [json_name = "sqlserverConfig_2019std"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019stdOrBuilder>
getSqlserverConfig2019StdFieldBuilder() {
if (sqlserverConfig2019StdBuilder_ == null) {
if (!(sqlserverConfigCase_ == 10)) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.getDefaultInstance();
}
sqlserverConfig2019StdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019stdOrBuilder>(
(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019std) sqlserverConfig_,
getParentForChildren(),
isClean());
sqlserverConfig_ = null;
}
sqlserverConfigCase_ = 10;
onChanged();;
return sqlserverConfig2019StdBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019entOrBuilder> sqlserverConfig2019EntBuilder_;
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
* @return Whether the sqlserverConfig2019ent field is set.
*/
@java.lang.Override
public boolean hasSqlserverConfig2019Ent() {
return sqlserverConfigCase_ == 11;
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
* @return The sqlserverConfig2019ent.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent getSqlserverConfig2019Ent() {
if (sqlserverConfig2019EntBuilder_ == null) {
if (sqlserverConfigCase_ == 11) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.getDefaultInstance();
} else {
if (sqlserverConfigCase_ == 11) {
return sqlserverConfig2019EntBuilder_.getMessage();
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
*/
public Builder setSqlserverConfig2019Ent(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent value) {
if (sqlserverConfig2019EntBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sqlserverConfig_ = value;
onChanged();
} else {
sqlserverConfig2019EntBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 11;
return this;
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
*/
public Builder setSqlserverConfig2019Ent(
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.Builder builderForValue) {
if (sqlserverConfig2019EntBuilder_ == null) {
sqlserverConfig_ = builderForValue.build();
onChanged();
} else {
sqlserverConfig2019EntBuilder_.setMessage(builderForValue.build());
}
sqlserverConfigCase_ = 11;
return this;
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
*/
public Builder mergeSqlserverConfig2019Ent(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent value) {
if (sqlserverConfig2019EntBuilder_ == null) {
if (sqlserverConfigCase_ == 11 &&
sqlserverConfig_ != yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.getDefaultInstance()) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.newBuilder((yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_)
.mergeFrom(value).buildPartial();
} else {
sqlserverConfig_ = value;
}
onChanged();
} else {
if (sqlserverConfigCase_ == 11) {
sqlserverConfig2019EntBuilder_.mergeFrom(value);
}
sqlserverConfig2019EntBuilder_.setMessage(value);
}
sqlserverConfigCase_ = 11;
return this;
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
*/
public Builder clearSqlserverConfig2019Ent() {
if (sqlserverConfig2019EntBuilder_ == null) {
if (sqlserverConfigCase_ == 11) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
onChanged();
}
} else {
if (sqlserverConfigCase_ == 11) {
sqlserverConfigCase_ = 0;
sqlserverConfig_ = null;
}
sqlserverConfig2019EntBuilder_.clear();
}
return this;
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
*/
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.Builder getSqlserverConfig2019EntBuilder() {
return getSqlserverConfig2019EntFieldBuilder().getBuilder();
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019entOrBuilder getSqlserverConfig2019EntOrBuilder() {
if ((sqlserverConfigCase_ == 11) && (sqlserverConfig2019EntBuilder_ != null)) {
return sqlserverConfig2019EntBuilder_.getMessageOrBuilder();
} else {
if (sqlserverConfigCase_ == 11) {
return (yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_;
}
return yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.getDefaultInstance();
}
}
/**
*
* Configuration of the SQL Server 2019 enterprise edition instance.
*
*
* .yandex.cloud.mdb.sqlserver.v1.config.SQLServerConfigSet2019ent sqlserver_config_2019ent = 11 [json_name = "sqlserverConfig_2019ent"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019entOrBuilder>
getSqlserverConfig2019EntFieldBuilder() {
if (sqlserverConfig2019EntBuilder_ == null) {
if (!(sqlserverConfigCase_ == 11)) {
sqlserverConfig_ = yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.getDefaultInstance();
}
sqlserverConfig2019EntBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent.Builder, yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019entOrBuilder>(
(yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.SQLServerConfigSet2019ent) sqlserverConfig_,
getParentForChildren(),
isClean());
sqlserverConfig_ = null;
}
sqlserverConfigCase_ = 11;
onChanged();;
return sqlserverConfig2019EntBuilder_;
}
private yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources resources_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources, yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder> resourcesBuilder_;
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return resourcesBuilder_ != null || resources_ != null;
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
* @return The resources.
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
*/
public Builder setResources(yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
*/
public Builder setResources(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
*/
public Builder mergeResources(yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources value) {
if (resourcesBuilder_ == null) {
if (resources_ != null) {
resources_ =
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder getResourcesBuilder() {
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.getDefaultInstance() : resources_;
}
}
/**
*
* Resources allocated to SQL Server hosts.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources, yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources, yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private com.google.type.TimeOfDay backupWindowStart_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder> backupWindowStartBuilder_;
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
* @return Whether the backupWindowStart field is set.
*/
public boolean hasBackupWindowStart() {
return backupWindowStartBuilder_ != null || backupWindowStart_ != null;
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
* @return The backupWindowStart.
*/
public com.google.type.TimeOfDay getBackupWindowStart() {
if (backupWindowStartBuilder_ == null) {
return backupWindowStart_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : backupWindowStart_;
} else {
return backupWindowStartBuilder_.getMessage();
}
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
*/
public Builder setBackupWindowStart(com.google.type.TimeOfDay value) {
if (backupWindowStartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
backupWindowStart_ = value;
onChanged();
} else {
backupWindowStartBuilder_.setMessage(value);
}
return this;
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
*/
public Builder setBackupWindowStart(
com.google.type.TimeOfDay.Builder builderForValue) {
if (backupWindowStartBuilder_ == null) {
backupWindowStart_ = builderForValue.build();
onChanged();
} else {
backupWindowStartBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
*/
public Builder mergeBackupWindowStart(com.google.type.TimeOfDay value) {
if (backupWindowStartBuilder_ == null) {
if (backupWindowStart_ != null) {
backupWindowStart_ =
com.google.type.TimeOfDay.newBuilder(backupWindowStart_).mergeFrom(value).buildPartial();
} else {
backupWindowStart_ = value;
}
onChanged();
} else {
backupWindowStartBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
*/
public Builder clearBackupWindowStart() {
if (backupWindowStartBuilder_ == null) {
backupWindowStart_ = null;
onChanged();
} else {
backupWindowStart_ = null;
backupWindowStartBuilder_ = null;
}
return this;
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
*/
public com.google.type.TimeOfDay.Builder getBackupWindowStartBuilder() {
onChanged();
return getBackupWindowStartFieldBuilder().getBuilder();
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
*/
public com.google.type.TimeOfDayOrBuilder getBackupWindowStartOrBuilder() {
if (backupWindowStartBuilder_ != null) {
return backupWindowStartBuilder_.getMessageOrBuilder();
} else {
return backupWindowStart_ == null ?
com.google.type.TimeOfDay.getDefaultInstance() : backupWindowStart_;
}
}
/**
*
* Start time for the daily backup in UTC timezone.
*
*
* .google.type.TimeOfDay backup_window_start = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder>
getBackupWindowStartFieldBuilder() {
if (backupWindowStartBuilder_ == null) {
backupWindowStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.type.TimeOfDay, com.google.type.TimeOfDay.Builder, com.google.type.TimeOfDayOrBuilder>(
getBackupWindowStart(),
getParentForChildren(),
isClean());
backupWindowStart_ = null;
}
return backupWindowStartBuilder_;
}
private yandex.cloud.api.mdb.sqlserver.v1.PSC.Access access_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access, yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.AccessOrBuilder> accessBuilder_;
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
* @return Whether the access field is set.
*/
public boolean hasAccess() {
return accessBuilder_ != null || access_ != null;
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
* @return The access.
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Access getAccess() {
if (accessBuilder_ == null) {
return access_ == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.getDefaultInstance() : access_;
} else {
return accessBuilder_.getMessage();
}
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
*/
public Builder setAccess(yandex.cloud.api.mdb.sqlserver.v1.PSC.Access value) {
if (accessBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
access_ = value;
onChanged();
} else {
accessBuilder_.setMessage(value);
}
return this;
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
*/
public Builder setAccess(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.Builder builderForValue) {
if (accessBuilder_ == null) {
access_ = builderForValue.build();
onChanged();
} else {
accessBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
*/
public Builder mergeAccess(yandex.cloud.api.mdb.sqlserver.v1.PSC.Access value) {
if (accessBuilder_ == null) {
if (access_ != null) {
access_ =
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.newBuilder(access_).mergeFrom(value).buildPartial();
} else {
access_ = value;
}
onChanged();
} else {
accessBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
*/
public Builder clearAccess() {
if (accessBuilder_ == null) {
access_ = null;
onChanged();
} else {
access_ = null;
accessBuilder_ = null;
}
return this;
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.Builder getAccessBuilder() {
onChanged();
return getAccessFieldBuilder().getBuilder();
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.AccessOrBuilder getAccessOrBuilder() {
if (accessBuilder_ != null) {
return accessBuilder_.getMessageOrBuilder();
} else {
return access_ == null ?
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.getDefaultInstance() : access_;
}
}
/**
*
* Database access policy.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Access access = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access, yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.AccessOrBuilder>
getAccessFieldBuilder() {
if (accessBuilder_ == null) {
accessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access, yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.AccessOrBuilder>(
getAccess(),
getParentForChildren(),
isClean());
access_ = null;
}
return accessBuilder_;
}
private int secondaryConnections_ = 0;
/**
*
* Secondary replicas connection mode
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections secondary_connections = 7;
* @return The enum numeric value on the wire for secondaryConnections.
*/
@java.lang.Override public int getSecondaryConnectionsValue() {
return secondaryConnections_;
}
/**
*
* Secondary replicas connection mode
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections secondary_connections = 7;
* @param value The enum numeric value on the wire for secondaryConnections to set.
* @return This builder for chaining.
*/
public Builder setSecondaryConnectionsValue(int value) {
secondaryConnections_ = value;
onChanged();
return this;
}
/**
*
* Secondary replicas connection mode
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections secondary_connections = 7;
* @return The secondaryConnections.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections getSecondaryConnections() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections result = yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections.valueOf(secondaryConnections_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections.UNRECOGNIZED : result;
}
/**
*
* Secondary replicas connection mode
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections secondary_connections = 7;
* @param value The secondaryConnections to set.
* @return This builder for chaining.
*/
public Builder setSecondaryConnections(yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig.SecondaryConnections value) {
if (value == null) {
throw new NullPointerException();
}
secondaryConnections_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Secondary replicas connection mode
*
*
* .yandex.cloud.mdb.sqlserver.v1.ClusterConfig.SecondaryConnections secondary_connections = 7;
* @return This builder for chaining.
*/
public Builder clearSecondaryConnections() {
secondaryConnections_ = 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.sqlserver.v1.ClusterConfig)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.ClusterConfig)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSC.ClusterConfig();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.ClusterConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HostOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.Host)
com.google.protobuf.MessageOrBuilder {
/**
*
* Name of the SQL Server host.
* The host name is assigned by Managed Service for SQL Server at the moment of creation and cannot be changed. 1-63 characters long.
* The name is unique across all database hosts that exist on the platform as it defines the FQDN of the host.
*
*
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the SQL Server host.
* The host name is assigned by Managed Service for SQL Server at the moment of creation and cannot be changed. 1-63 characters long.
* The name is unique across all database hosts that exist on the platform as it defines the FQDN of the host.
*
*
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* ID of the SQL Server host.
* The ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string cluster_id = 2;
* @return The clusterId.
*/
java.lang.String getClusterId();
/**
*
* ID of the SQL Server host.
* The ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string cluster_id = 2;
* @return The bytes for clusterId.
*/
com.google.protobuf.ByteString
getClusterIdBytes();
/**
*
* ID of the availability zone where the SQL Server host resides.
*
*
* string zone_id = 3;
* @return The zoneId.
*/
java.lang.String getZoneId();
/**
*
* ID of the availability zone where the SQL Server host resides.
*
*
* string zone_id = 3;
* @return The bytes for zoneId.
*/
com.google.protobuf.ByteString
getZoneIdBytes();
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
* @return The resources.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources getResources();
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder getResourcesOrBuilder();
/**
*
* Role of the host in the cluster.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.v1.Host.Role role = 5;
* @return The role.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role getRole();
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.v1.Host.Health health = 6;
* @return The health.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health getHealth();
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
java.util.List
getServicesList();
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service getServices(int index);
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
int getServicesCount();
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
java.util.List extends yandex.cloud.api.mdb.sqlserver.v1.PSC.ServiceOrBuilder>
getServicesOrBuilderList();
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.ServiceOrBuilder getServicesOrBuilder(
int index);
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 8;
* @return The subnetId.
*/
java.lang.String getSubnetId();
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 8;
* @return The bytes for subnetId.
*/
com.google.protobuf.ByteString
getSubnetIdBytes();
/**
*
* Flag showing public IP assignment status to this host.
*
*
* bool assign_public_ip = 9;
* @return The assignPublicIp.
*/
boolean getAssignPublicIp();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.Host}
*/
public static final class Host extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.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_ = "";
}
@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.sqlserver.v1.PSC.Resources.Builder subBuilder = null;
if (resources_ != null) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service.parser(), extensionRegistry));
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
subnetId_ = s;
break;
}
case 72: {
assignPublicIp_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
services_ = java.util.Collections.unmodifiableList(services_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Host_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Host_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.sqlserver.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 SQL Server instance in the cluster.
*
*
* MASTER = 1;
*/
MASTER(1),
/**
*
* Host is a replica SQL Server instance 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 SQL Server instance in the cluster.
*
*
* MASTER = 1;
*/
public static final int MASTER_VALUE = 1;
/**
*
* Host is a replica SQL Server instance 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.sqlserver.v1.PSC.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.sqlserver.v1.Host.Role)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.sqlserver.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),
UNRECOGNIZED(-1),
;
/**
*
* Health of the host is unknown.
*
*
* HEALTH_UNKNOWN = 0;
*/
public static final int HEALTH_UNKNOWN_VALUE = 0;
/**
*
* The host is performing all its functions normally.
*
*
* ALIVE = 1;
*/
public static final int ALIVE_VALUE = 1;
/**
*
* The host is inoperable and cannot perform any of its essential functions.
*
*
* DEAD = 2;
*/
public static final int DEAD_VALUE = 2;
/**
*
* The host is degraded and can perform only some of its essential functions.
*
*
* DEGRADED = 3;
*/
public static final int DEGRADED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Health valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Health forNumber(int value) {
switch (value) {
case 0: return HEALTH_UNKNOWN;
case 1: return ALIVE;
case 2: return DEAD;
case 3: return DEGRADED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Health> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Health findValueByNumber(int number) {
return Health.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.getDescriptor().getEnumTypes().get(1);
}
private static final Health[] VALUES = values();
public static Health valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Health(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.sqlserver.v1.Host.Health)
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Name of the SQL Server host.
* The host name is assigned by Managed Service for SQL Server at the moment of creation and cannot be changed. 1-63 characters long.
* The name is unique across all database hosts that exist on the platform as it defines the FQDN of the host.
*
*
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the SQL Server host.
* The host name is assigned by Managed Service for SQL Server at the moment of creation and cannot be changed. 1-63 characters long.
* The name is unique across all database hosts that exist on the platform as it defines the FQDN of the host.
*
*
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLUSTER_ID_FIELD_NUMBER = 2;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the SQL Server host.
* The ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* 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 SQL Server host.
* The ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* 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 SQL Server 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 SQL Server 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.sqlserver.v1.PSC.Resources resources_;
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
* @return Whether the resources field is set.
*/
@java.lang.Override
public boolean hasResources() {
return resources_ != null;
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
* @return The resources.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources getResources() {
return resources_ == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.getDefaultInstance() : resources_;
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.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.sqlserver.v1.Host.Role role = 5;
* @return The role.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role getRole() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role.valueOf(role_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.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.sqlserver.v1.Host.Health health = 6;
* @return The health.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Service services = 7;
*/
@java.lang.Override
public java.util.List getServicesList() {
return services_;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.mdb.sqlserver.v1.PSC.ServiceOrBuilder>
getServicesOrBuilderList() {
return services_;
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
@java.lang.Override
public int getServicesCount() {
return services_.size();
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service getServices(int index) {
return services_.get(index);
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ServiceOrBuilder getServicesOrBuilder(
int index) {
return services_.get(index);
}
public static final int SUBNET_ID_FIELD_NUMBER = 8;
private volatile java.lang.Object subnetId_;
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 8;
* @return The subnetId.
*/
@java.lang.Override
public java.lang.String getSubnetId() {
java.lang.Object ref = subnetId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subnetId_ = s;
return s;
}
}
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 8;
* @return The bytes for subnetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubnetIdBytes() {
java.lang.Object ref = subnetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subnetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ASSIGN_PUBLIC_IP_FIELD_NUMBER = 9;
private boolean assignPublicIp_;
/**
*
* Flag showing public IP assignment status to this host.
*
*
* bool assign_public_ip = 9;
* @return The assignPublicIp.
*/
@java.lang.Override
public boolean getAssignPublicIp() {
return assignPublicIp_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, zoneId_);
}
if (resources_ != null) {
output.writeMessage(4, getResources());
}
if (role_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role.ROLE_UNKNOWN.getNumber()) {
output.writeEnum(5, role_);
}
if (health_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health.HEALTH_UNKNOWN.getNumber()) {
output.writeEnum(6, health_);
}
for (int i = 0; i < services_.size(); i++) {
output.writeMessage(7, services_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, subnetId_);
}
if (assignPublicIp_ != false) {
output.writeBool(9, assignPublicIp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, zoneId_);
}
if (resources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getResources());
}
if (role_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role.ROLE_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, role_);
}
if (health_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health.HEALTH_UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, health_);
}
for (int i = 0; i < services_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, services_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, subnetId_);
}
if (assignPublicIp_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, assignPublicIp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.sqlserver.v1.PSC.Host)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host other = (yandex.cloud.api.mdb.sqlserver.v1.PSC.Host) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getZoneId()
.equals(other.getZoneId())) return false;
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (role_ != other.role_) return false;
if (health_ != other.health_) return false;
if (!getServicesList()
.equals(other.getServicesList())) return false;
if (!getSubnetId()
.equals(other.getSubnetId())) return false;
if (getAssignPublicIp()
!= other.getAssignPublicIp()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
hash = (37 * hash) + ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getZoneId().hashCode();
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
hash = (37 * hash) + ROLE_FIELD_NUMBER;
hash = (53 * hash) + role_;
hash = (37 * hash) + HEALTH_FIELD_NUMBER;
hash = (53 * hash) + health_;
if (getServicesCount() > 0) {
hash = (37 * hash) + SERVICES_FIELD_NUMBER;
hash = (53 * hash) + getServicesList().hashCode();
}
hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER;
hash = (53 * hash) + getSubnetId().hashCode();
hash = (37 * hash) + ASSIGN_PUBLIC_IP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAssignPublicIp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.Host parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Host parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Host parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Host parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Host parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.Host}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.Host)
yandex.cloud.api.mdb.sqlserver.v1.PSC.HostOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Host_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Host_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getServicesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
clusterId_ = "";
zoneId_ = "";
if (resourcesBuilder_ == null) {
resources_ = null;
} else {
resources_ = null;
resourcesBuilder_ = null;
}
role_ = 0;
health_ = 0;
if (servicesBuilder_ == null) {
services_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
servicesBuilder_.clear();
}
subnetId_ = "";
assignPublicIp_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Host_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Host getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Host build() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Host buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host result = new yandex.cloud.api.mdb.sqlserver.v1.PSC.Host(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.clusterId_ = clusterId_;
result.zoneId_ = zoneId_;
if (resourcesBuilder_ == null) {
result.resources_ = resources_;
} else {
result.resources_ = resourcesBuilder_.build();
}
result.role_ = role_;
result.health_ = health_;
if (servicesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
services_ = java.util.Collections.unmodifiableList(services_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.services_ = services_;
} else {
result.services_ = servicesBuilder_.build();
}
result.subnetId_ = subnetId_;
result.assignPublicIp_ = assignPublicIp_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.sqlserver.v1.PSC.Host) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSC.Host)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSC.Host other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.getZoneId().isEmpty()) {
zoneId_ = other.zoneId_;
onChanged();
}
if (other.hasResources()) {
mergeResources(other.getResources());
}
if (other.role_ != 0) {
setRoleValue(other.getRoleValue());
}
if (other.health_ != 0) {
setHealthValue(other.getHealthValue());
}
if (servicesBuilder_ == null) {
if (!other.services_.isEmpty()) {
if (services_.isEmpty()) {
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureServicesIsMutable();
services_.addAll(other.services_);
}
onChanged();
}
} else {
if (!other.services_.isEmpty()) {
if (servicesBuilder_.isEmpty()) {
servicesBuilder_.dispose();
servicesBuilder_ = null;
services_ = other.services_;
bitField0_ = (bitField0_ & ~0x00000001);
servicesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServicesFieldBuilder() : null;
} else {
servicesBuilder_.addAllMessages(other.services_);
}
}
}
if (!other.getSubnetId().isEmpty()) {
subnetId_ = other.subnetId_;
onChanged();
}
if (other.getAssignPublicIp() != false) {
setAssignPublicIp(other.getAssignPublicIp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSC.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 SQL Server host.
* The host name is assigned by Managed Service for SQL Server at the moment of creation and cannot be changed. 1-63 characters long.
* The name is unique across all database hosts that exist on the platform as it defines the FQDN of the host.
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the SQL Server host.
* The host name is assigned by Managed Service for SQL Server at the moment of creation and cannot be changed. 1-63 characters long.
* The name is unique across all database hosts that exist on the platform as it defines the FQDN of the host.
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the SQL Server host.
* The host name is assigned by Managed Service for SQL Server at the moment of creation and cannot be changed. 1-63 characters long.
* The name is unique across all database hosts that exist on the platform as it defines the FQDN of the host.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the SQL Server host.
* The host name is assigned by Managed Service for SQL Server at the moment of creation and cannot be changed. 1-63 characters long.
* The name is unique across all database hosts that exist on the platform as it defines the FQDN of the host.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the SQL Server host.
* The host name is assigned by Managed Service for SQL Server at the moment of creation and cannot be changed. 1-63 characters long.
* The name is unique across all database hosts that exist on the platform as it defines the FQDN of the host.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the SQL Server host.
* The ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* 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 SQL Server host.
* The ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* 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 SQL Server host.
* The ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* 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 SQL Server host.
* The ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* string cluster_id = 2;
* @return This builder for chaining.
*/
public Builder clearClusterId() {
clusterId_ = getDefaultInstance().getClusterId();
onChanged();
return this;
}
/**
*
* ID of the SQL Server host.
* The ID is assigned by Managed Service for SQL Server at the moment of creation.
*
*
* 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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server 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 SQL Server 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.sqlserver.v1.PSC.Resources resources_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources, yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder> resourcesBuilder_;
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
* @return Whether the resources field is set.
*/
public boolean hasResources() {
return resourcesBuilder_ != null || resources_ != null;
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
* @return The resources.
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources getResources() {
if (resourcesBuilder_ == null) {
return resources_ == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.getDefaultInstance() : resources_;
} else {
return resourcesBuilder_.getMessage();
}
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
*/
public Builder setResources(yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resources_ = value;
onChanged();
} else {
resourcesBuilder_.setMessage(value);
}
return this;
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
*/
public Builder setResources(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder builderForValue) {
if (resourcesBuilder_ == null) {
resources_ = builderForValue.build();
onChanged();
} else {
resourcesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
*/
public Builder mergeResources(yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources value) {
if (resourcesBuilder_ == null) {
if (resources_ != null) {
resources_ =
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.newBuilder(resources_).mergeFrom(value).buildPartial();
} else {
resources_ = value;
}
onChanged();
} else {
resourcesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = null;
onChanged();
} else {
resources_ = null;
resourcesBuilder_ = null;
}
return this;
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder getResourcesBuilder() {
onChanged();
return getResourcesFieldBuilder().getBuilder();
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder getResourcesOrBuilder() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilder();
} else {
return resources_ == null ?
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.getDefaultInstance() : resources_;
}
}
/**
*
* Resources allocated to the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Resources resources = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources, yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources, yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder>(
getResources(),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
private int role_ = 0;
/**
*
* Role of the host in the cluster.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.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.sqlserver.v1.Host.Role role = 5;
* @return The role.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role getRole() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role.valueOf(role_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Role.UNRECOGNIZED : result;
}
/**
*
* Role of the host in the cluster.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Host.Role role = 5;
* @param value The role to set.
* @return This builder for chaining.
*/
public Builder setRole(yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.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.sqlserver.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.sqlserver.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.sqlserver.v1.Host.Health health = 6;
* @return The health.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Host.Health.UNRECOGNIZED : result;
}
/**
*
* Status code of the aggregated health of the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Host.Health health = 6;
* @param value The health to set.
* @return This builder for chaining.
*/
public Builder setHealth(yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.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.sqlserver.v1.PSC.Service, yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ServiceOrBuilder> servicesBuilder_;
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.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.sqlserver.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.sqlserver.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Service services = 7;
*/
public Builder setServices(
int index, yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Service services = 7;
*/
public Builder setServices(
int index, yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Service services = 7;
*/
public Builder addServices(yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Service services = 7;
*/
public Builder addServices(
int index, yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Service services = 7;
*/
public Builder addServices(
yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Service services = 7;
*/
public Builder addServices(
int index, yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Service services = 7;
*/
public Builder addAllServices(
java.lang.Iterable extends yandex.cloud.api.mdb.sqlserver.v1.PSC.Service> 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.sqlserver.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.sqlserver.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.sqlserver.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Builder getServicesBuilder(
int index) {
return getServicesFieldBuilder().getBuilder(index);
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.Service services = 7;
*/
public java.util.List extends yandex.cloud.api.mdb.sqlserver.v1.PSC.ServiceOrBuilder>
getServicesOrBuilderList() {
if (servicesBuilder_ != null) {
return servicesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(services_);
}
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Builder addServicesBuilder() {
return getServicesFieldBuilder().addBuilder(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.getDefaultInstance());
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Builder addServicesBuilder(
int index) {
return getServicesFieldBuilder().addBuilder(
index, yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.getDefaultInstance());
}
/**
*
* Services provided by the host.
*
*
* repeated .yandex.cloud.mdb.sqlserver.v1.Service services = 7;
*/
public java.util.List
getServicesBuilderList() {
return getServicesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service, yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ServiceOrBuilder>
getServicesFieldBuilder() {
if (servicesBuilder_ == null) {
servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service, yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Builder, yandex.cloud.api.mdb.sqlserver.v1.PSC.ServiceOrBuilder>(
services_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
services_ = null;
}
return servicesBuilder_;
}
private java.lang.Object subnetId_ = "";
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 8;
* @return The subnetId.
*/
public java.lang.String getSubnetId() {
java.lang.Object ref = subnetId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subnetId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 8;
* @return The bytes for subnetId.
*/
public com.google.protobuf.ByteString
getSubnetIdBytes() {
java.lang.Object ref = subnetId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subnetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 8;
* @param value The subnetId to set.
* @return This builder for chaining.
*/
public Builder setSubnetId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subnetId_ = value;
onChanged();
return this;
}
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 8;
* @return This builder for chaining.
*/
public Builder clearSubnetId() {
subnetId_ = getDefaultInstance().getSubnetId();
onChanged();
return this;
}
/**
*
* ID of the subnet that the host belongs to.
*
*
* string subnet_id = 8;
* @param value The bytes for subnetId to set.
* @return This builder for chaining.
*/
public Builder setSubnetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subnetId_ = value;
onChanged();
return this;
}
private boolean assignPublicIp_ ;
/**
*
* Flag showing public IP assignment status to this host.
*
*
* bool assign_public_ip = 9;
* @return The assignPublicIp.
*/
@java.lang.Override
public boolean getAssignPublicIp() {
return assignPublicIp_;
}
/**
*
* Flag showing public IP assignment status to this host.
*
*
* bool assign_public_ip = 9;
* @param value The assignPublicIp to set.
* @return This builder for chaining.
*/
public Builder setAssignPublicIp(boolean value) {
assignPublicIp_ = value;
onChanged();
return this;
}
/**
*
* Flag showing public IP assignment status to this host.
*
*
* bool assign_public_ip = 9;
* @return This builder for chaining.
*/
public Builder clearAssignPublicIp() {
assignPublicIp_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.sqlserver.v1.Host)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.Host)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSC.Host DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSC.Host();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Host getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ServiceOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.Service)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.v1.Service.Type type = 1;
* @return The type.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Type getType();
/**
*
* Status code of server availability.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.v1.Service.Health health = 2;
* @return The health.
*/
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Health getHealth();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.Service}
*/
public static final class Service extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Service_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Service_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.sqlserver.v1.Service.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TYPE_UNSPECIFIED = 0;
*/
TYPE_UNSPECIFIED(0),
/**
*
* SQL Server service.
*
*
* SQLSERVER = 1;
*/
SQLSERVER(1),
UNRECOGNIZED(-1),
;
/**
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* SQL Server service.
*
*
* SQLSERVER = 1;
*/
public static final int SQLSERVER_VALUE = 1;
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 SQLSERVER;
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.sqlserver.v1.PSC.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.sqlserver.v1.Service.Type)
}
/**
* Protobuf enum {@code yandex.cloud.mdb.sqlserver.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),
UNRECOGNIZED(-1),
;
/**
*
* Health of the server is unknown.
*
*
* HEALTH_UNKNOWN = 0;
*/
public static final int HEALTH_UNKNOWN_VALUE = 0;
/**
*
* The server is working normally.
*
*
* ALIVE = 1;
*/
public static final int ALIVE_VALUE = 1;
/**
*
* The server is dead or unresponsive.
*
*
* DEAD = 2;
*/
public static final int DEAD_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Health valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Health forNumber(int value) {
switch (value) {
case 0: return HEALTH_UNKNOWN;
case 1: return ALIVE;
case 2: return DEAD;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Health> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Health findValueByNumber(int number) {
return Health.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.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.sqlserver.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.sqlserver.v1.Service.Type type = 1;
* @return The type.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Type result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Type.UNRECOGNIZED : result;
}
public static final int HEALTH_FIELD_NUMBER = 2;
private int health_;
/**
*
* Status code of server availability.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.v1.Service.Health health = 2;
* @return The health.
*/
@java.lang.Override public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Health result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service.Type.TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, type_);
}
if (health_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service.Type.TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (health_ != yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service other = (yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.Service}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.Service)
yandex.cloud.api.mdb.sqlserver.v1.PSC.ServiceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Service_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Service_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Service_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service build() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service result = new yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSC.Service)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSC.Service other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.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.sqlserver.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.sqlserver.v1.Service.Type type = 1;
* @return The type.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Type getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Type result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Type.valueOf(type_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Type.UNRECOGNIZED : result;
}
/**
*
* Type of the service provided by the host.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Service.Type type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.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.sqlserver.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.sqlserver.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.sqlserver.v1.Service.Health health = 2;
* @return The health.
*/
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Health getHealth() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Health result = yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Health.valueOf(health_);
return result == null ? yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Health.UNRECOGNIZED : result;
}
/**
*
* Status code of server availability.
*
*
* .yandex.cloud.mdb.sqlserver.v1.Service.Health health = 2;
* @param value The health to set.
* @return This builder for chaining.
*/
public Builder setHealth(yandex.cloud.api.mdb.sqlserver.v1.PSC.Service.Health value) {
if (value == null) {
throw new NullPointerException();
}
health_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Status code of server availability.
*
*
* .yandex.cloud.mdb.sqlserver.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.sqlserver.v1.Service)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.Service)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSC.Service DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSC.Service();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Service getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResourcesOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.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-sqlserver/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-sqlserver/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @return The bytes for resourcePresetId.
*/
com.google.protobuf.ByteString
getResourcePresetIdBytes();
/**
*
* Volume of the storage available to a host.
*
*
* int64 disk_size = 2;
* @return The diskSize.
*/
long getDiskSize();
/**
*
* Type of the storage environment for the host.
* Possible values:
* * `network-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.sqlserver.v1.Resources}
*/
public static final class Resources extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.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-sqlserver/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-sqlserver/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @return The bytes for resourcePresetId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getResourcePresetIdBytes() {
java.lang.Object ref = resourcePresetId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
resourcePresetId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISK_SIZE_FIELD_NUMBER = 2;
private long diskSize_;
/**
*
* Volume of the storage available to a host.
*
*
* int64 disk_size = 2;
* @return The diskSize.
*/
@java.lang.Override
public long getDiskSize() {
return diskSize_;
}
public static final int DISK_TYPE_ID_FIELD_NUMBER = 3;
private volatile java.lang.Object diskTypeId_;
/**
*
* Type of the storage environment for the host.
* Possible values:
* * `network-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.sqlserver.v1.PSC.Resources)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources other = (yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Resources parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Resources parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Resources parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Resources parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Resources parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.Resources}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.Resources)
yandex.cloud.api.mdb.sqlserver.v1.PSC.ResourcesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources build() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources result = new yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Resources) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Resources parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSC.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-sqlserver/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-sqlserver/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-sqlserver/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-sqlserver/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-sqlserver/concepts/instance-types).
*
*
* string resource_preset_id = 1;
* @param value The bytes for resourcePresetId to set.
* @return This builder for chaining.
*/
public Builder setResourcePresetIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourcePresetId_ = value;
onChanged();
return this;
}
private long diskSize_ ;
/**
*
* Volume of the storage available to a host.
*
*
* int64 disk_size = 2;
* @return The diskSize.
*/
@java.lang.Override
public long getDiskSize() {
return diskSize_;
}
/**
*
* Volume of the storage available to a host.
*
*
* int64 disk_size = 2;
* @param value The diskSize to set.
* @return This builder for chaining.
*/
public Builder setDiskSize(long value) {
diskSize_ = value;
onChanged();
return this;
}
/**
*
* Volume of the storage available to a host.
*
*
* int64 disk_size = 2;
* @return This builder for chaining.
*/
public Builder clearDiskSize() {
diskSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object diskTypeId_ = "";
/**
*
* Type of the storage environment for the host.
* Possible values:
* * `network-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.sqlserver.v1.Resources)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.Resources)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSC.Resources();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Resources getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccessOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.sqlserver.v1.Access)
com.google.protobuf.MessageOrBuilder {
/**
*
* Allows access for DataLens.
*
*
* bool data_lens = 1;
* @return The dataLens.
*/
boolean getDataLens();
/**
*
* Allows access for Web SQL.
*
*
* bool web_sql = 2;
* @return The webSql.
*/
boolean getWebSql();
}
/**
* Protobuf type {@code yandex.cloud.mdb.sqlserver.v1.Access}
*/
public static final class Access extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.sqlserver.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;
}
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.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Access_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Access_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.Builder.class);
}
public static final int DATA_LENS_FIELD_NUMBER = 1;
private boolean dataLens_;
/**
*
* Allows 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_;
/**
*
* Allows access for Web SQL.
*
*
* bool web_sql = 2;
* @return The webSql.
*/
@java.lang.Override
public boolean getWebSql() {
return webSql_;
}
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_);
}
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_);
}
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.sqlserver.v1.PSC.Access)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access other = (yandex.cloud.api.mdb.sqlserver.v1.PSC.Access) obj;
if (getDataLens()
!= other.getDataLens()) return false;
if (getWebSql()
!= other.getWebSql()) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.Access parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Access parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Access parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Access parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Access parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.PSC.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.sqlserver.v1.Access}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.sqlserver.v1.Access)
yandex.cloud.api.mdb.sqlserver.v1.PSC.AccessOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Access_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Access_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.class, yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.Builder.class);
}
// Construct using yandex.cloud.api.mdb.sqlserver.v1.PSC.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;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.internal_static_yandex_cloud_mdb_sqlserver_v1_Access_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Access getDefaultInstanceForType() {
return yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Access build() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.sqlserver.v1.PSC.Access buildPartial() {
yandex.cloud.api.mdb.sqlserver.v1.PSC.Access result = new yandex.cloud.api.mdb.sqlserver.v1.PSC.Access(this);
result.dataLens_ = dataLens_;
result.webSql_ = webSql_;
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.sqlserver.v1.PSC.Access) {
return mergeFrom((yandex.cloud.api.mdb.sqlserver.v1.PSC.Access)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.sqlserver.v1.PSC.Access other) {
if (other == yandex.cloud.api.mdb.sqlserver.v1.PSC.Access.getDefaultInstance()) return this;
if (other.getDataLens() != false) {
setDataLens(other.getDataLens());
}
if (other.getWebSql() != false) {
setWebSql(other.getWebSql());
}
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.sqlserver.v1.PSC.Access parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.sqlserver.v1.PSC.Access) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean dataLens_ ;
/**
*
* Allows access for DataLens.
*
*
* bool data_lens = 1;
* @return The dataLens.
*/
@java.lang.Override
public boolean getDataLens() {
return dataLens_;
}
/**
*
* Allows 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;
}
/**
*
* Allows access for DataLens.
*
*
* bool data_lens = 1;
* @return This builder for chaining.
*/
public Builder clearDataLens() {
dataLens_ = false;
onChanged();
return this;
}
private boolean webSql_ ;
/**
*
* Allows access for Web SQL.
*
*
* bool web_sql = 2;
* @return The webSql.
*/
@java.lang.Override
public boolean getWebSql() {
return webSql_;
}
/**
*
* Allows access for Web SQL.
*
*
* 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;
}
/**
*
* Allows access for Web SQL.
*
*
* bool web_sql = 2;
* @return This builder for chaining.
*/
public Builder clearWebSql() {
webSql_ = 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.sqlserver.v1.Access)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.sqlserver.v1.Access)
private static final yandex.cloud.api.mdb.sqlserver.v1.PSC.Access DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.sqlserver.v1.PSC.Access();
}
public static yandex.cloud.api.mdb.sqlserver.v1.PSC.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.sqlserver.v1.PSC.Access getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_sqlserver_v1_Host_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_sqlserver_v1_Host_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_sqlserver_v1_Service_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_sqlserver_v1_Service_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_sqlserver_v1_Access_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_sqlserver_v1_Access_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n+yandex/cloud/mdb/sqlserver/v1/cluster." +
"proto\022\035yandex.cloud.mdb.sqlserver.v1\032\037go" +
"ogle/protobuf/timestamp.proto\032\033google/ty" +
"pe/timeofday.proto\032;yandex/cloud/mdb/sql" +
"server/v1/config/sqlserver2016sp2.proto\032" +
"8yandex/cloud/mdb/sqlserver/v1/config/sq" +
"lserver2017.proto\0328yandex/cloud/mdb/sqls" +
"erver/v1/config/sqlserver2019.proto\"\320\007\n\007" +
"Cluster\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002 \001(\t\022." +
"\n\ncreated_at\030\003 \001(\0132\032.google.protobuf.Tim" +
"estamp\022\014\n\004name\030\004 \001(\t\022\023\n\013description\030\005 \001(" +
"\t\022B\n\006labels\030\006 \003(\01322.yandex.cloud.mdb.sql" +
"server.v1.Cluster.LabelsEntry\022G\n\013environ" +
"ment\030\007 \001(\01622.yandex.cloud.mdb.sqlserver." +
"v1.Cluster.Environment\022=\n\nmonitoring\030\010 \003" +
"(\0132).yandex.cloud.mdb.sqlserver.v1.Monit" +
"oring\022<\n\006config\030\t \001(\0132,.yandex.cloud.mdb" +
".sqlserver.v1.ClusterConfig\022\022\n\nnetwork_i" +
"d\030\n \001(\t\022=\n\006health\030\013 \001(\0162-.yandex.cloud.m" +
"db.sqlserver.v1.Cluster.Health\022=\n\006status" +
"\030\014 \001(\0162-.yandex.cloud.mdb.sqlserver.v1.C" +
"luster.Status\022\032\n\022security_group_ids\030\r \003(" +
"\t\022\033\n\023deletion_protection\030\016 \001(\010\022\024\n\014sqlcol" +
"lation\030\017 \001(\t\022\026\n\016host_group_ids\030\020 \003(\t\022\032\n\022" +
"service_account_id\030\021 \001(\t\032-\n\013LabelsEntry\022" +
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"I\n\013Envir" +
"onment\022\033\n\027ENVIRONMENT_UNSPECIFIED\020\000\022\016\n\nP" +
"RODUCTION\020\001\022\r\n\tPRESTABLE\020\002\"?\n\006Health\022\022\n\016" +
"HEALTH_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_UNKNOWN\020" +
"\000\022\014\n\010CREATING\020\001\022\013\n\007RUNNING\020\002\022\t\n\005ERROR\020\003\022" +
"\014\n\010UPDATING\020\004\022\014\n\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\"\313\t" +
"\n\rClusterConfig\022\017\n\007version\030\001 \001(\t\022\205\001\n\033sql" +
"server_config_2016sp2std\030\002 \001(\0132B.yandex." +
"cloud.mdb.sqlserver.v1.config.SQLServerC" +
"onfigSet2016sp2stdH\000R\032sqlserverConfig_20" +
"16sp2std\022\205\001\n\033sqlserver_config_2016sp2ent" +
"\030\005 \001(\0132B.yandex.cloud.mdb.sqlserver.v1.c" +
"onfig.SQLServerConfigSet2016sp2entH\000R\032sq" +
"lserverConfig_2016sp2ent\022|\n\030sqlserver_co" +
"nfig_2017std\030\010 \001(\0132?.yandex.cloud.mdb.sq" +
"lserver.v1.config.SQLServerConfigSet2017" +
"stdH\000R\027sqlserverConfig_2017std\022|\n\030sqlser" +
"ver_config_2017ent\030\t \001(\0132?.yandex.cloud." +
"mdb.sqlserver.v1.config.SQLServerConfigS" +
"et2017entH\000R\027sqlserverConfig_2017ent\022|\n\030" +
"sqlserver_config_2019std\030\n \001(\0132?.yandex." +
"cloud.mdb.sqlserver.v1.config.SQLServerC" +
"onfigSet2019stdH\000R\027sqlserverConfig_2019s" +
"td\022|\n\030sqlserver_config_2019ent\030\013 \001(\0132?.y" +
"andex.cloud.mdb.sqlserver.v1.config.SQLS" +
"erverConfigSet2019entH\000R\027sqlserverConfig" +
"_2019ent\022;\n\tresources\030\003 \001(\0132(.yandex.clo" +
"ud.mdb.sqlserver.v1.Resources\0223\n\023backup_" +
"window_start\030\004 \001(\0132\026.google.type.TimeOfD" +
"ay\0225\n\006access\030\006 \001(\0132%.yandex.cloud.mdb.sq" +
"lserver.v1.Access\022`\n\025secondary_connectio" +
"ns\030\007 \001(\0162A.yandex.cloud.mdb.sqlserver.v1" +
".ClusterConfig.SecondaryConnections\"\201\001\n\024" +
"SecondaryConnections\022%\n!SECONDARY_CONNEC" +
"TIONS_UNSPECIFIED\020\000\022\035\n\031SECONDARY_CONNECT" +
"IONS_OFF\020\001\022#\n\037SECONDARY_CONNECTIONS_READ" +
"_ONLY\020\002B\022\n\020sqlserver_config\"\305\003\n\004Host\022\014\n\004" +
"name\030\001 \001(\t\022\022\n\ncluster_id\030\002 \001(\t\022\017\n\007zone_i" +
"d\030\003 \001(\t\022;\n\tresources\030\004 \001(\0132(.yandex.clou" +
"d.mdb.sqlserver.v1.Resources\0226\n\004role\030\005 \001" +
"(\0162(.yandex.cloud.mdb.sqlserver.v1.Host." +
"Role\022:\n\006health\030\006 \001(\0162*.yandex.cloud.mdb." +
"sqlserver.v1.Host.Health\0228\n\010services\030\007 \003" +
"(\0132&.yandex.cloud.mdb.sqlserver.v1.Servi" +
"ce\022\021\n\tsubnet_id\030\010 \001(\t\022\030\n\020assign_public_i" +
"p\030\t \001(\010\"1\n\004Role\022\020\n\014ROLE_UNKNOWN\020\000\022\n\n\006MAS" +
"TER\020\001\022\013\n\007REPLICA\020\002\"?\n\006Health\022\022\n\016HEALTH_U" +
"NKNOWN\020\000\022\t\n\005ALIVE\020\001\022\010\n\004DEAD\020\002\022\014\n\010DEGRADE" +
"D\020\003\"\343\001\n\007Service\0229\n\004type\030\001 \001(\0162+.yandex.c" +
"loud.mdb.sqlserver.v1.Service.Type\022=\n\006he" +
"alth\030\002 \001(\0162-.yandex.cloud.mdb.sqlserver." +
"v1.Service.Health\"+\n\004Type\022\024\n\020TYPE_UNSPEC" +
"IFIED\020\000\022\r\n\tSQLSERVER\020\001\"1\n\006Health\022\022\n\016HEAL" +
"TH_UNKNOWN\020\000\022\t\n\005ALIVE\020\001\022\010\n\004DEAD\020\002\"P\n\tRes" +
"ources\022\032\n\022resource_preset_id\030\001 \001(\t\022\021\n\tdi" +
"sk_size\030\002 \001(\003\022\024\n\014disk_type_id\030\003 \001(\t\",\n\006A" +
"ccess\022\021\n\tdata_lens\030\001 \001(\010\022\017\n\007web_sql\030\002 \001(" +
"\010Bu\n!yandex.cloud.api.mdb.sqlserver.v1B\003" +
"PSCZKgithub.com/yandex-cloud/go-genproto" +
"/yandex/cloud/mdb/sqlserver/v1;sqlserver" +
"b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
com.google.type.TimeOfDayProto.getDescriptor(),
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.getDescriptor(),
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.getDescriptor(),
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.getDescriptor(),
});
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_descriptor,
new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "Environment", "Monitoring", "Config", "NetworkId", "Health", "Status", "SecurityGroupIds", "DeletionProtection", "Sqlcollation", "HostGroupIds", "ServiceAccountId", });
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_LabelsEntry_descriptor =
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_sqlserver_v1_Cluster_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_sqlserver_v1_Monitoring_descriptor,
new java.lang.String[] { "Name", "Description", "Link", });
internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_sqlserver_v1_ClusterConfig_descriptor,
new java.lang.String[] { "Version", "SqlserverConfig2016Sp2Std", "SqlserverConfig2016Sp2Ent", "SqlserverConfig2017Std", "SqlserverConfig2017Ent", "SqlserverConfig2019Std", "SqlserverConfig2019Ent", "Resources", "BackupWindowStart", "Access", "SecondaryConnections", "SqlserverConfig", });
internal_static_yandex_cloud_mdb_sqlserver_v1_Host_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_mdb_sqlserver_v1_Host_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_sqlserver_v1_Host_descriptor,
new java.lang.String[] { "Name", "ClusterId", "ZoneId", "Resources", "Role", "Health", "Services", "SubnetId", "AssignPublicIp", });
internal_static_yandex_cloud_mdb_sqlserver_v1_Service_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_mdb_sqlserver_v1_Service_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_sqlserver_v1_Service_descriptor,
new java.lang.String[] { "Type", "Health", });
internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_sqlserver_v1_Resources_descriptor,
new java.lang.String[] { "ResourcePresetId", "DiskSize", "DiskTypeId", });
internal_static_yandex_cloud_mdb_sqlserver_v1_Access_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_mdb_sqlserver_v1_Access_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_sqlserver_v1_Access_descriptor,
new java.lang.String[] { "DataLens", "WebSql", });
com.google.protobuf.TimestampProto.getDescriptor();
com.google.type.TimeOfDayProto.getDescriptor();
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2016Sp2.getDescriptor();
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2017.getDescriptor();
yandex.cloud.api.mdb.sqlserver.v1.config.Sqlserver2019.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy