Class CloudSqlSettings.Builder (2.20.0)

public static final class CloudSqlSettings.Builder extends GeneratedMessageV3.Builder<CloudSqlSettings.Builder> implements CloudSqlSettingsOrBuilder

Settings for creating a Cloud SQL database instance.

Protobuf type google.cloud.clouddms.v1.CloudSqlSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudSqlSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

build()

public CloudSqlSettings build()
Returns
TypeDescription
CloudSqlSettings

buildPartial()

public CloudSqlSettings buildPartial()
Returns
TypeDescription
CloudSqlSettings

clear()

public CloudSqlSettings.Builder clear()
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

clearActivationPolicy()

public CloudSqlSettings.Builder clearActivationPolicy()

The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values:

'ALWAYS': The instance is on, and remains so even in the absence of connection requests.

NEVER: The instance is off; it is not activated, even if a connection request arrives.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5;

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearAutoStorageIncrease()

public CloudSqlSettings.Builder clearAutoStorageIncrease()

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

.google.protobuf.BoolValue auto_storage_increase = 7;

Returns
TypeDescription
CloudSqlSettings.Builder

clearAvailabilityType()

public CloudSqlSettings.Builder clearAvailabilityType()

Optional. Availability type. Potential values:

  • ZONAL: The instance serves data from only one zone. Outages in that zone affect data availability.
  • REGIONAL: The instance can serve data from more than one zone in a region (it is highly available).

.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearCmekKeyName()

public CloudSqlSettings.Builder clearCmekKeyName()

The KMS key name used for the csql instance.

string cmek_key_name = 16;

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearCollation()

public CloudSqlSettings.Builder clearCollation()

The Cloud SQL default instance level collation.

string collation = 15;

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearDataDiskSizeGb()

public CloudSqlSettings.Builder clearDataDiskSizeGb()

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

.google.protobuf.Int64Value data_disk_size_gb = 10;

Returns
TypeDescription
CloudSqlSettings.Builder

clearDataDiskType()

public CloudSqlSettings.Builder clearDataDiskType()

The type of storage: PD_SSD (default) or PD_HDD.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9;

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearDatabaseFlags()

public CloudSqlSettings.Builder clearDatabaseFlags()
Returns
TypeDescription
CloudSqlSettings.Builder

clearDatabaseVersion()

public CloudSqlSettings.Builder clearDatabaseVersion()

The database engine type and version.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CloudSqlSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

clearIpConfig()

public CloudSqlSettings.Builder clearIpConfig()

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

.google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;

Returns
TypeDescription
CloudSqlSettings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudSqlSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

clearRootPassword()

public CloudSqlSettings.Builder clearRootPassword()

Input only. Initial root password.

string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearRootPasswordSet()

public CloudSqlSettings.Builder clearRootPasswordSet()

Output only. Indicates If this connection profile root password is stored.

bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearSecondaryZone()

public CloudSqlSettings.Builder clearSecondaryZone()

Optional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearSourceId()

public CloudSqlSettings.Builder clearSourceId()

The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID

string source_id = 12;

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearStorageAutoResizeLimit()

public CloudSqlSettings.Builder clearStorageAutoResizeLimit()

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

.google.protobuf.Int64Value storage_auto_resize_limit = 4;

Returns
TypeDescription
CloudSqlSettings.Builder

clearTier()

public CloudSqlSettings.Builder clearTier()

The tier (or machine type) for this instance, for example: db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For more information, see Cloud SQL Instance Settings.

string tier = 3;

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clearUserLabels()

public CloudSqlSettings.Builder clearUserLabels()
Returns
TypeDescription
CloudSqlSettings.Builder

clearZone()

public CloudSqlSettings.Builder clearZone()

The Google Cloud Platform zone where your Cloud SQL database instance is located.

string zone = 11;

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

clone()

public CloudSqlSettings.Builder clone()
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

containsDatabaseFlags(String key)

public boolean containsDatabaseFlags(String key)

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> database_flags = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsUserLabels(String key)

public boolean containsUserLabels(String key)

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "18kg", "count": "3" }.

map<string, string> user_labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getActivationPolicy()

public CloudSqlSettings.SqlActivationPolicy getActivationPolicy()

The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values:

'ALWAYS': The instance is on, and remains so even in the absence of connection requests.

NEVER: The instance is off; it is not activated, even if a connection request arrives.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5;

Returns
TypeDescription
CloudSqlSettings.SqlActivationPolicy

The activationPolicy.

getActivationPolicyValue()

public int getActivationPolicyValue()

The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values:

'ALWAYS': The instance is on, and remains so even in the absence of connection requests.

NEVER: The instance is off; it is not activated, even if a connection request arrives.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for activationPolicy.

getAutoStorageIncrease()

public BoolValue getAutoStorageIncrease()

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

.google.protobuf.BoolValue auto_storage_increase = 7;

Returns
TypeDescription
BoolValue

The autoStorageIncrease.

getAutoStorageIncreaseBuilder()

public BoolValue.Builder getAutoStorageIncreaseBuilder()

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

.google.protobuf.BoolValue auto_storage_increase = 7;

Returns
TypeDescription
Builder

getAutoStorageIncreaseOrBuilder()

public BoolValueOrBuilder getAutoStorageIncreaseOrBuilder()

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

.google.protobuf.BoolValue auto_storage_increase = 7;

Returns
TypeDescription
BoolValueOrBuilder

getAvailabilityType()

public CloudSqlSettings.SqlAvailabilityType getAvailabilityType()

Optional. Availability type. Potential values:

  • ZONAL: The instance serves data from only one zone. Outages in that zone affect data availability.
  • REGIONAL: The instance can serve data from more than one zone in a region (it is highly available).

.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CloudSqlSettings.SqlAvailabilityType

The availabilityType.

getAvailabilityTypeValue()

public int getAvailabilityTypeValue()

Optional. Availability type. Potential values:

  • ZONAL: The instance serves data from only one zone. Outages in that zone affect data availability.
  • REGIONAL: The instance can serve data from more than one zone in a region (it is highly available).

.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for availabilityType.

getCmekKeyName()

public String getCmekKeyName()

The KMS key name used for the csql instance.

string cmek_key_name = 16;

Returns
TypeDescription
String

The cmekKeyName.

getCmekKeyNameBytes()

public ByteString getCmekKeyNameBytes()

The KMS key name used for the csql instance.

string cmek_key_name = 16;

Returns
TypeDescription
ByteString

The bytes for cmekKeyName.

getCollation()

public String getCollation()

The Cloud SQL default instance level collation.

string collation = 15;

Returns
TypeDescription
String

The collation.

getCollationBytes()

public ByteString getCollationBytes()

The Cloud SQL default instance level collation.

string collation = 15;

Returns
TypeDescription
ByteString

The bytes for collation.

getDataDiskSizeGb()

public Int64Value getDataDiskSizeGb()

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

.google.protobuf.Int64Value data_disk_size_gb = 10;

Returns
TypeDescription
Int64Value

The dataDiskSizeGb.

getDataDiskSizeGbBuilder()

public Int64Value.Builder getDataDiskSizeGbBuilder()

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

.google.protobuf.Int64Value data_disk_size_gb = 10;

Returns
TypeDescription
Builder

getDataDiskSizeGbOrBuilder()

public Int64ValueOrBuilder getDataDiskSizeGbOrBuilder()

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

.google.protobuf.Int64Value data_disk_size_gb = 10;

Returns
TypeDescription
Int64ValueOrBuilder

getDataDiskType()

public CloudSqlSettings.SqlDataDiskType getDataDiskType()

The type of storage: PD_SSD (default) or PD_HDD.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9;

Returns
TypeDescription
CloudSqlSettings.SqlDataDiskType

The dataDiskType.

getDataDiskTypeValue()

public int getDataDiskTypeValue()

The type of storage: PD_SSD (default) or PD_HDD.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for dataDiskType.

getDatabaseFlags()

public Map<String,String> getDatabaseFlags()
Returns
TypeDescription
Map<String,String>

getDatabaseFlagsCount()

public int getDatabaseFlagsCount()

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> database_flags = 8;

Returns
TypeDescription
int

getDatabaseFlagsMap()

public Map<String,String> getDatabaseFlagsMap()

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> database_flags = 8;

Returns
TypeDescription
Map<String,String>

getDatabaseFlagsOrDefault(String key, String defaultValue)

public String getDatabaseFlagsOrDefault(String key, String defaultValue)

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> database_flags = 8;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDatabaseFlagsOrThrow(String key)

public String getDatabaseFlagsOrThrow(String key)

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> database_flags = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDatabaseVersion()

public CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion()

The database engine type and version.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;

Returns
TypeDescription
CloudSqlSettings.SqlDatabaseVersion

The databaseVersion.

getDatabaseVersionValue()

public int getDatabaseVersionValue()

The database engine type and version.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for databaseVersion.

getDefaultInstanceForType()

public CloudSqlSettings getDefaultInstanceForType()
Returns
TypeDescription
CloudSqlSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpConfig()

public SqlIpConfig getIpConfig()

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

.google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;

Returns
TypeDescription
SqlIpConfig

The ipConfig.

getIpConfigBuilder()

public SqlIpConfig.Builder getIpConfigBuilder()

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

.google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;

Returns
TypeDescription
SqlIpConfig.Builder

getIpConfigOrBuilder()

public SqlIpConfigOrBuilder getIpConfigOrBuilder()

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

.google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;

Returns
TypeDescription
SqlIpConfigOrBuilder

getMutableDatabaseFlags()

public Map<String,String> getMutableDatabaseFlags()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableUserLabels()

public Map<String,String> getMutableUserLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getRootPassword()

public String getRootPassword()

Input only. Initial root password.

string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
String

The rootPassword.

getRootPasswordBytes()

public ByteString getRootPasswordBytes()

Input only. Initial root password.

string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for rootPassword.

getRootPasswordSet()

public boolean getRootPasswordSet()

Output only. Indicates If this connection profile root password is stored.

bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The rootPasswordSet.

getSecondaryZone()

public String getSecondaryZone()

Optional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The secondaryZone.

getSecondaryZoneBytes()

public ByteString getSecondaryZoneBytes()

Optional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for secondaryZone.

getSourceId()

public String getSourceId()

The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID

string source_id = 12;

Returns
TypeDescription
String

The sourceId.

getSourceIdBytes()

public ByteString getSourceIdBytes()

The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID

string source_id = 12;

Returns
TypeDescription
ByteString

The bytes for sourceId.

getStorageAutoResizeLimit()

public Int64Value getStorageAutoResizeLimit()

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

.google.protobuf.Int64Value storage_auto_resize_limit = 4;

Returns
TypeDescription
Int64Value

The storageAutoResizeLimit.

getStorageAutoResizeLimitBuilder()

public Int64Value.Builder getStorageAutoResizeLimitBuilder()

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

.google.protobuf.Int64Value storage_auto_resize_limit = 4;

Returns
TypeDescription
Builder

getStorageAutoResizeLimitOrBuilder()

public Int64ValueOrBuilder getStorageAutoResizeLimitOrBuilder()

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

.google.protobuf.Int64Value storage_auto_resize_limit = 4;

Returns
TypeDescription
Int64ValueOrBuilder

getTier()

public String getTier()

The tier (or machine type) for this instance, for example: db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For more information, see Cloud SQL Instance Settings.

string tier = 3;

Returns
TypeDescription
String

The tier.

getTierBytes()

public ByteString getTierBytes()

The tier (or machine type) for this instance, for example: db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For more information, see Cloud SQL Instance Settings.

string tier = 3;

Returns
TypeDescription
ByteString

The bytes for tier.

getUserLabels()

public Map<String,String> getUserLabels()

Use #getUserLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getUserLabelsCount()

public int getUserLabelsCount()

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "18kg", "count": "3" }.

map<string, string> user_labels = 2;

Returns
TypeDescription
int

getUserLabelsMap()

public Map<String,String> getUserLabelsMap()

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "18kg", "count": "3" }.

map<string, string> user_labels = 2;

Returns
TypeDescription
Map<String,String>

getUserLabelsOrDefault(String key, String defaultValue)

public String getUserLabelsOrDefault(String key, String defaultValue)

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "18kg", "count": "3" }.

map<string, string> user_labels = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getUserLabelsOrThrow(String key)

public String getUserLabelsOrThrow(String key)

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "18kg", "count": "3" }.

map<string, string> user_labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getZone()

public String getZone()

The Google Cloud Platform zone where your Cloud SQL database instance is located.

string zone = 11;

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The Google Cloud Platform zone where your Cloud SQL database instance is located.

string zone = 11;

Returns
TypeDescription
ByteString

The bytes for zone.

hasAutoStorageIncrease()

public boolean hasAutoStorageIncrease()

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

.google.protobuf.BoolValue auto_storage_increase = 7;

Returns
TypeDescription
boolean

Whether the autoStorageIncrease field is set.

hasDataDiskSizeGb()

public boolean hasDataDiskSizeGb()

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

.google.protobuf.Int64Value data_disk_size_gb = 10;

Returns
TypeDescription
boolean

Whether the dataDiskSizeGb field is set.

hasIpConfig()

public boolean hasIpConfig()

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

.google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;

Returns
TypeDescription
boolean

Whether the ipConfig field is set.

hasStorageAutoResizeLimit()

public boolean hasStorageAutoResizeLimit()

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

.google.protobuf.Int64Value storage_auto_resize_limit = 4;

Returns
TypeDescription
boolean

Whether the storageAutoResizeLimit field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAutoStorageIncrease(BoolValue value)

public CloudSqlSettings.Builder mergeAutoStorageIncrease(BoolValue value)

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

.google.protobuf.BoolValue auto_storage_increase = 7;

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
CloudSqlSettings.Builder

mergeDataDiskSizeGb(Int64Value value)

public CloudSqlSettings.Builder mergeDataDiskSizeGb(Int64Value value)

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

.google.protobuf.Int64Value data_disk_size_gb = 10;

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
CloudSqlSettings.Builder

mergeFrom(CloudSqlSettings other)

public CloudSqlSettings.Builder mergeFrom(CloudSqlSettings other)
Parameter
NameDescription
otherCloudSqlSettings
Returns
TypeDescription
CloudSqlSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudSqlSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CloudSqlSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

mergeIpConfig(SqlIpConfig value)

public CloudSqlSettings.Builder mergeIpConfig(SqlIpConfig value)

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

.google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;

Parameter
NameDescription
valueSqlIpConfig
Returns
TypeDescription
CloudSqlSettings.Builder

mergeStorageAutoResizeLimit(Int64Value value)

public CloudSqlSettings.Builder mergeStorageAutoResizeLimit(Int64Value value)

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

.google.protobuf.Int64Value storage_auto_resize_limit = 4;

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
CloudSqlSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudSqlSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

putAllDatabaseFlags(Map<String,String> values)

public CloudSqlSettings.Builder putAllDatabaseFlags(Map<String,String> values)

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> database_flags = 8;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
CloudSqlSettings.Builder

putAllUserLabels(Map<String,String> values)

public CloudSqlSettings.Builder putAllUserLabels(Map<String,String> values)

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "18kg", "count": "3" }.

map<string, string> user_labels = 2;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
CloudSqlSettings.Builder

putDatabaseFlags(String key, String value)

public CloudSqlSettings.Builder putDatabaseFlags(String key, String value)

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> database_flags = 8;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
CloudSqlSettings.Builder

putUserLabels(String key, String value)

public CloudSqlSettings.Builder putUserLabels(String key, String value)

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "18kg", "count": "3" }.

map<string, string> user_labels = 2;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
CloudSqlSettings.Builder

removeDatabaseFlags(String key)

public CloudSqlSettings.Builder removeDatabaseFlags(String key)

The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

map<string, string> database_flags = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
CloudSqlSettings.Builder

removeUserLabels(String key)

public CloudSqlSettings.Builder removeUserLabels(String key)

The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "18kg", "count": "3" }.

map<string, string> user_labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
CloudSqlSettings.Builder

setActivationPolicy(CloudSqlSettings.SqlActivationPolicy value)

public CloudSqlSettings.Builder setActivationPolicy(CloudSqlSettings.SqlActivationPolicy value)

The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values:

'ALWAYS': The instance is on, and remains so even in the absence of connection requests.

NEVER: The instance is off; it is not activated, even if a connection request arrives.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5;

Parameter
NameDescription
valueCloudSqlSettings.SqlActivationPolicy

The activationPolicy to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setActivationPolicyValue(int value)

public CloudSqlSettings.Builder setActivationPolicyValue(int value)

The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values:

'ALWAYS': The instance is on, and remains so even in the absence of connection requests.

NEVER: The instance is off; it is not activated, even if a connection request arrives.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlActivationPolicy activation_policy = 5;

Parameter
NameDescription
valueint

The enum numeric value on the wire for activationPolicy to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setAutoStorageIncrease(BoolValue value)

public CloudSqlSettings.Builder setAutoStorageIncrease(BoolValue value)

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

.google.protobuf.BoolValue auto_storage_increase = 7;

Parameter
NameDescription
valueBoolValue
Returns
TypeDescription
CloudSqlSettings.Builder

setAutoStorageIncrease(BoolValue.Builder builderForValue)

public CloudSqlSettings.Builder setAutoStorageIncrease(BoolValue.Builder builderForValue)

[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB.

.google.protobuf.BoolValue auto_storage_increase = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CloudSqlSettings.Builder

setAvailabilityType(CloudSqlSettings.SqlAvailabilityType value)

public CloudSqlSettings.Builder setAvailabilityType(CloudSqlSettings.SqlAvailabilityType value)

Optional. Availability type. Potential values:

  • ZONAL: The instance serves data from only one zone. Outages in that zone affect data availability.
  • REGIONAL: The instance can serve data from more than one zone in a region (it is highly available).

.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueCloudSqlSettings.SqlAvailabilityType

The availabilityType to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setAvailabilityTypeValue(int value)

public CloudSqlSettings.Builder setAvailabilityTypeValue(int value)

Optional. Availability type. Potential values:

  • ZONAL: The instance serves data from only one zone. Outages in that zone affect data availability.
  • REGIONAL: The instance can serve data from more than one zone in a region (it is highly available).

.google.cloud.clouddms.v1.CloudSqlSettings.SqlAvailabilityType availability_type = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The enum numeric value on the wire for availabilityType to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setCmekKeyName(String value)

public CloudSqlSettings.Builder setCmekKeyName(String value)

The KMS key name used for the csql instance.

string cmek_key_name = 16;

Parameter
NameDescription
valueString

The cmekKeyName to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setCmekKeyNameBytes(ByteString value)

public CloudSqlSettings.Builder setCmekKeyNameBytes(ByteString value)

The KMS key name used for the csql instance.

string cmek_key_name = 16;

Parameter
NameDescription
valueByteString

The bytes for cmekKeyName to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setCollation(String value)

public CloudSqlSettings.Builder setCollation(String value)

The Cloud SQL default instance level collation.

string collation = 15;

Parameter
NameDescription
valueString

The collation to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setCollationBytes(ByteString value)

public CloudSqlSettings.Builder setCollationBytes(ByteString value)

The Cloud SQL default instance level collation.

string collation = 15;

Parameter
NameDescription
valueByteString

The bytes for collation to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setDataDiskSizeGb(Int64Value value)

public CloudSqlSettings.Builder setDataDiskSizeGb(Int64Value value)

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

.google.protobuf.Int64Value data_disk_size_gb = 10;

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
CloudSqlSettings.Builder

setDataDiskSizeGb(Int64Value.Builder builderForValue)

public CloudSqlSettings.Builder setDataDiskSizeGb(Int64Value.Builder builderForValue)

The storage capacity available to the database, in GB. The minimum (and default) size is 10GB.

.google.protobuf.Int64Value data_disk_size_gb = 10;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CloudSqlSettings.Builder

setDataDiskType(CloudSqlSettings.SqlDataDiskType value)

public CloudSqlSettings.Builder setDataDiskType(CloudSqlSettings.SqlDataDiskType value)

The type of storage: PD_SSD (default) or PD_HDD.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9;

Parameter
NameDescription
valueCloudSqlSettings.SqlDataDiskType

The dataDiskType to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setDataDiskTypeValue(int value)

public CloudSqlSettings.Builder setDataDiskTypeValue(int value)

The type of storage: PD_SSD (default) or PD_HDD.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9;

Parameter
NameDescription
valueint

The enum numeric value on the wire for dataDiskType to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setDatabaseVersion(CloudSqlSettings.SqlDatabaseVersion value)

public CloudSqlSettings.Builder setDatabaseVersion(CloudSqlSettings.SqlDatabaseVersion value)

The database engine type and version.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;

Parameter
NameDescription
valueCloudSqlSettings.SqlDatabaseVersion

The databaseVersion to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setDatabaseVersionValue(int value)

public CloudSqlSettings.Builder setDatabaseVersionValue(int value)

The database engine type and version.

.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for databaseVersion to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CloudSqlSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

setIpConfig(SqlIpConfig value)

public CloudSqlSettings.Builder setIpConfig(SqlIpConfig value)

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

.google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;

Parameter
NameDescription
valueSqlIpConfig
Returns
TypeDescription
CloudSqlSettings.Builder

setIpConfig(SqlIpConfig.Builder builderForValue)

public CloudSqlSettings.Builder setIpConfig(SqlIpConfig.Builder builderForValue)

The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled.

.google.cloud.clouddms.v1.SqlIpConfig ip_config = 6;

Parameter
NameDescription
builderForValueSqlIpConfig.Builder
Returns
TypeDescription
CloudSqlSettings.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CloudSqlSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

setRootPassword(String value)

public CloudSqlSettings.Builder setRootPassword(String value)

Input only. Initial root password.

string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueString

The rootPassword to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setRootPasswordBytes(ByteString value)

public CloudSqlSettings.Builder setRootPasswordBytes(ByteString value)

Input only. Initial root password.

string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for rootPassword to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setRootPasswordSet(boolean value)

public CloudSqlSettings.Builder setRootPasswordSet(boolean value)

Output only. Indicates If this connection profile root password is stored.

bool root_password_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The rootPasswordSet to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setSecondaryZone(String value)

public CloudSqlSettings.Builder setSecondaryZone(String value)

Optional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The secondaryZone to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setSecondaryZoneBytes(ByteString value)

public CloudSqlSettings.Builder setSecondaryZoneBytes(ByteString value)

Optional. The Google Cloud Platform zone where the failover Cloud SQL database instance is located. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string secondary_zone = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for secondaryZone to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setSourceId(String value)

public CloudSqlSettings.Builder setSourceId(String value)

The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID

string source_id = 12;

Parameter
NameDescription
valueString

The sourceId to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setSourceIdBytes(ByteString value)

public CloudSqlSettings.Builder setSourceIdBytes(ByteString value)

The Database Migration Service source connection profile ID, in the format: projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID

string source_id = 12;

Parameter
NameDescription
valueByteString

The bytes for sourceId to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setStorageAutoResizeLimit(Int64Value value)

public CloudSqlSettings.Builder setStorageAutoResizeLimit(Int64Value value)

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

.google.protobuf.Int64Value storage_auto_resize_limit = 4;

Parameter
NameDescription
valueInt64Value
Returns
TypeDescription
CloudSqlSettings.Builder

setStorageAutoResizeLimit(Int64Value.Builder builderForValue)

public CloudSqlSettings.Builder setStorageAutoResizeLimit(Int64Value.Builder builderForValue)

The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.

.google.protobuf.Int64Value storage_auto_resize_limit = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CloudSqlSettings.Builder

setTier(String value)

public CloudSqlSettings.Builder setTier(String value)

The tier (or machine type) for this instance, for example: db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For more information, see Cloud SQL Instance Settings.

string tier = 3;

Parameter
NameDescription
valueString

The tier to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setTierBytes(ByteString value)

public CloudSqlSettings.Builder setTierBytes(ByteString value)

The tier (or machine type) for this instance, for example: db-n1-standard-1 (MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For more information, see Cloud SQL Instance Settings.

string tier = 3;

Parameter
NameDescription
valueByteString

The bytes for tier to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudSqlSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudSqlSettings.Builder
Overrides

setZone(String value)

public CloudSqlSettings.Builder setZone(String value)

The Google Cloud Platform zone where your Cloud SQL database instance is located.

string zone = 11;

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public CloudSqlSettings.Builder setZoneBytes(ByteString value)

The Google Cloud Platform zone where your Cloud SQL database instance is located.

string zone = 11;

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
CloudSqlSettings.Builder

This builder for chaining.