Package com.google.cloud.clouddms.v1
Class CloudSqlSettings
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.clouddms.v1.CloudSqlSettings
-
- All Implemented Interfaces:
CloudSqlSettingsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class CloudSqlSettings extends com.google.protobuf.GeneratedMessageV3 implements CloudSqlSettingsOrBuilder
Settings for creating a Cloud SQL database instance.
Protobuf typegoogle.cloud.clouddms.v1.CloudSqlSettings- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCloudSqlSettings.BuilderSettings for creating a Cloud SQL database instance.static classCloudSqlSettings.EditionThe edition of the given Cloud SQL instance.static classCloudSqlSettings.SqlActivationPolicySpecifies when the instance should be activated.static classCloudSqlSettings.SqlAvailabilityTypeThe availability type of the given Cloud SQL instance.static classCloudSqlSettings.SqlDatabaseVersionThe database engine type and version.static classCloudSqlSettings.SqlDataDiskTypeThe storage options for Cloud SQL databases.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACTIVATION_POLICY_FIELD_NUMBERstatic intAUTO_STORAGE_INCREASE_FIELD_NUMBERstatic intAVAILABILITY_TYPE_FIELD_NUMBERstatic intCMEK_KEY_NAME_FIELD_NUMBERstatic intCOLLATION_FIELD_NUMBERstatic intDATA_DISK_SIZE_GB_FIELD_NUMBERstatic intDATA_DISK_TYPE_FIELD_NUMBERstatic intDATABASE_FLAGS_FIELD_NUMBERstatic intDATABASE_VERSION_FIELD_NUMBERstatic intEDITION_FIELD_NUMBERstatic intIP_CONFIG_FIELD_NUMBERstatic intROOT_PASSWORD_FIELD_NUMBERstatic intROOT_PASSWORD_SET_FIELD_NUMBERstatic intSECONDARY_ZONE_FIELD_NUMBERstatic intSOURCE_ID_FIELD_NUMBERstatic intSTORAGE_AUTO_RESIZE_LIMIT_FIELD_NUMBERstatic intTIER_FIELD_NUMBERstatic intUSER_LABELS_FIELD_NUMBERstatic intZONE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsDatabaseFlags(String key)The database flags passed to the Cloud SQL instance at startup.booleancontainsUserLabels(String key)The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs.booleanequals(Object obj)CloudSqlSettings.SqlActivationPolicygetActivationPolicy()The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'.intgetActivationPolicyValue()The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'.com.google.protobuf.BoolValuegetAutoStorageIncrease()[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.com.google.protobuf.BoolValueOrBuildergetAutoStorageIncreaseOrBuilder()[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.CloudSqlSettings.SqlAvailabilityTypegetAvailabilityType()Optional.intgetAvailabilityTypeValue()Optional.StringgetCmekKeyName()The KMS key name used for the csql instance.com.google.protobuf.ByteStringgetCmekKeyNameBytes()The KMS key name used for the csql instance.StringgetCollation()The Cloud SQL default instance level collation.com.google.protobuf.ByteStringgetCollationBytes()The Cloud SQL default instance level collation.Map<String,String>getDatabaseFlags()Deprecated.intgetDatabaseFlagsCount()The database flags passed to the Cloud SQL instance at startup.Map<String,String>getDatabaseFlagsMap()The database flags passed to the Cloud SQL instance at startup.StringgetDatabaseFlagsOrDefault(String key, String defaultValue)The database flags passed to the Cloud SQL instance at startup.StringgetDatabaseFlagsOrThrow(String key)The database flags passed to the Cloud SQL instance at startup.CloudSqlSettings.SqlDatabaseVersiongetDatabaseVersion()The database engine type and version.intgetDatabaseVersionValue()The database engine type and version.com.google.protobuf.Int64ValuegetDataDiskSizeGb()The storage capacity available to the database, in GB.com.google.protobuf.Int64ValueOrBuildergetDataDiskSizeGbOrBuilder()The storage capacity available to the database, in GB.CloudSqlSettings.SqlDataDiskTypegetDataDiskType()The type of storage: `PD_SSD` (default) or `PD_HDD`.intgetDataDiskTypeValue()The type of storage: `PD_SSD` (default) or `PD_HDD`.static CloudSqlSettingsgetDefaultInstance()CloudSqlSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()CloudSqlSettings.EditiongetEdition()Optional.intgetEditionValue()Optional.SqlIpConfiggetIpConfig()The settings for IP Management.SqlIpConfigOrBuildergetIpConfigOrBuilder()The settings for IP Management.com.google.protobuf.Parser<CloudSqlSettings>getParserForType()StringgetRootPassword()Input only.com.google.protobuf.ByteStringgetRootPasswordBytes()Input only.booleangetRootPasswordSet()Output only.StringgetSecondaryZone()Optional.com.google.protobuf.ByteStringgetSecondaryZoneBytes()Optional.intgetSerializedSize()StringgetSourceId()The Database Migration Service source connection profile ID, in the format: `projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID`com.google.protobuf.ByteStringgetSourceIdBytes()The Database Migration Service source connection profile ID, in the format: `projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID`com.google.protobuf.Int64ValuegetStorageAutoResizeLimit()The maximum size to which storage capacity can be automatically increased.com.google.protobuf.Int64ValueOrBuildergetStorageAutoResizeLimitOrBuilder()The maximum size to which storage capacity can be automatically increased.StringgetTier()The tier (or machine type) for this instance, for example: `db-n1-standard-1` (MySQL instances) or `db-custom-1-3840` (PostgreSQL instances).com.google.protobuf.ByteStringgetTierBytes()The tier (or machine type) for this instance, for example: `db-n1-standard-1` (MySQL instances) or `db-custom-1-3840` (PostgreSQL instances).Map<String,String>getUserLabels()Deprecated.intgetUserLabelsCount()The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs.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.StringgetUserLabelsOrDefault(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.StringgetUserLabelsOrThrow(String key)The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs.StringgetZone()The Google Cloud Platform zone where your Cloud SQL database instance is located.com.google.protobuf.ByteStringgetZoneBytes()The Google Cloud Platform zone where your Cloud SQL database instance is located.booleanhasAutoStorageIncrease()[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.booleanhasDataDiskSizeGb()The storage capacity available to the database, in GB.inthashCode()booleanhasIpConfig()The settings for IP Management.booleanhasStorageAutoResizeLimit()The maximum size to which storage capacity can be automatically increased.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static CloudSqlSettings.BuildernewBuilder()static CloudSqlSettings.BuildernewBuilder(CloudSqlSettings prototype)CloudSqlSettings.BuildernewBuilderForType()protected CloudSqlSettings.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CloudSqlSettingsparseDelimitedFrom(InputStream input)static CloudSqlSettingsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudSqlSettingsparseFrom(byte[] data)static CloudSqlSettingsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudSqlSettingsparseFrom(com.google.protobuf.ByteString data)static CloudSqlSettingsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudSqlSettingsparseFrom(com.google.protobuf.CodedInputStream input)static CloudSqlSettingsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudSqlSettingsparseFrom(InputStream input)static CloudSqlSettingsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloudSqlSettingsparseFrom(ByteBuffer data)static CloudSqlSettingsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CloudSqlSettings>parser()CloudSqlSettings.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DATABASE_VERSION_FIELD_NUMBER
public static final int DATABASE_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_LABELS_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIER_FIELD_NUMBER
public static final int TIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORAGE_AUTO_RESIZE_LIMIT_FIELD_NUMBER
public static final int STORAGE_AUTO_RESIZE_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACTIVATION_POLICY_FIELD_NUMBER
public static final int ACTIVATION_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IP_CONFIG_FIELD_NUMBER
public static final int IP_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTO_STORAGE_INCREASE_FIELD_NUMBER
public static final int AUTO_STORAGE_INCREASE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATABASE_FLAGS_FIELD_NUMBER
public static final int DATABASE_FLAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_DISK_TYPE_FIELD_NUMBER
public static final int DATA_DISK_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_DISK_SIZE_GB_FIELD_NUMBER
public static final int DATA_DISK_SIZE_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ZONE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECONDARY_ZONE_FIELD_NUMBER
public static final int SECONDARY_ZONE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_ID_FIELD_NUMBER
public static final int SOURCE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROOT_PASSWORD_FIELD_NUMBER
public static final int ROOT_PASSWORD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROOT_PASSWORD_SET_FIELD_NUMBER
public static final int ROOT_PASSWORD_SET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COLLATION_FIELD_NUMBER
public static final int COLLATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CMEK_KEY_NAME_FIELD_NUMBER
public static final int CMEK_KEY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVAILABILITY_TYPE_FIELD_NUMBER
public static final int AVAILABILITY_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EDITION_FIELD_NUMBER
public static final int EDITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDatabaseVersionValue
public int getDatabaseVersionValue()
The database engine type and version.
.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;- Specified by:
getDatabaseVersionValuein interfaceCloudSqlSettingsOrBuilder- Returns:
- The enum numeric value on the wire for databaseVersion.
-
getDatabaseVersion
public CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion()
The database engine type and version.
.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;- Specified by:
getDatabaseVersionin interfaceCloudSqlSettingsOrBuilder- Returns:
- The databaseVersion.
-
getUserLabelsCount
public int getUserLabelsCount()
Description copied from interface:CloudSqlSettingsOrBuilderThe 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;- Specified by:
getUserLabelsCountin interfaceCloudSqlSettingsOrBuilder
-
containsUserLabels
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;- Specified by:
containsUserLabelsin interfaceCloudSqlSettingsOrBuilder
-
getUserLabels
@Deprecated public Map<String,String> getUserLabels()
Deprecated.UsegetUserLabelsMap()instead.- Specified by:
getUserLabelsin interfaceCloudSqlSettingsOrBuilder
-
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;- Specified by:
getUserLabelsMapin interfaceCloudSqlSettingsOrBuilder
-
getUserLabelsOrDefault
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;- Specified by:
getUserLabelsOrDefaultin interfaceCloudSqlSettingsOrBuilder
-
getUserLabelsOrThrow
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;- Specified by:
getUserLabelsOrThrowin interfaceCloudSqlSettingsOrBuilder
-
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](https://cloud.google.com/sql/docs/mysql/instance-settings).
string tier = 3;- Specified by:
getTierin interfaceCloudSqlSettingsOrBuilder- Returns:
- The tier.
-
getTierBytes
public com.google.protobuf.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](https://cloud.google.com/sql/docs/mysql/instance-settings).
string tier = 3;- Specified by:
getTierBytesin interfaceCloudSqlSettingsOrBuilder- Returns:
- The bytes for tier.
-
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;- Specified by:
hasStorageAutoResizeLimitin interfaceCloudSqlSettingsOrBuilder- Returns:
- Whether the storageAutoResizeLimit field is set.
-
getStorageAutoResizeLimit
public com.google.protobuf.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;- Specified by:
getStorageAutoResizeLimitin interfaceCloudSqlSettingsOrBuilder- Returns:
- The storageAutoResizeLimit.
-
getStorageAutoResizeLimitOrBuilder
public com.google.protobuf.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;- Specified by:
getStorageAutoResizeLimitOrBuilderin interfaceCloudSqlSettingsOrBuilder
-
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;- Specified by:
getActivationPolicyValuein interfaceCloudSqlSettingsOrBuilder- Returns:
- The enum numeric value on the wire for activationPolicy.
-
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;- Specified by:
getActivationPolicyin interfaceCloudSqlSettingsOrBuilder- Returns:
- The activationPolicy.
-
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;- Specified by:
hasIpConfigin interfaceCloudSqlSettingsOrBuilder- Returns:
- Whether the ipConfig field is set.
-
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;- Specified by:
getIpConfigin interfaceCloudSqlSettingsOrBuilder- Returns:
- The ipConfig.
-
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;- Specified by:
getIpConfigOrBuilderin interfaceCloudSqlSettingsOrBuilder
-
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;- Specified by:
hasAutoStorageIncreasein interfaceCloudSqlSettingsOrBuilder- Returns:
- Whether the autoStorageIncrease field is set.
-
getAutoStorageIncrease
public com.google.protobuf.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;- Specified by:
getAutoStorageIncreasein interfaceCloudSqlSettingsOrBuilder- Returns:
- The autoStorageIncrease.
-
getAutoStorageIncreaseOrBuilder
public com.google.protobuf.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;- Specified by:
getAutoStorageIncreaseOrBuilderin interfaceCloudSqlSettingsOrBuilder
-
getDatabaseFlagsCount
public int getDatabaseFlagsCount()
Description copied from interface:CloudSqlSettingsOrBuilderThe 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;- Specified by:
getDatabaseFlagsCountin interfaceCloudSqlSettingsOrBuilder
-
containsDatabaseFlags
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;- Specified by:
containsDatabaseFlagsin interfaceCloudSqlSettingsOrBuilder
-
getDatabaseFlags
@Deprecated public Map<String,String> getDatabaseFlags()
Deprecated.UsegetDatabaseFlagsMap()instead.- Specified by:
getDatabaseFlagsin interfaceCloudSqlSettingsOrBuilder
-
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;- Specified by:
getDatabaseFlagsMapin interfaceCloudSqlSettingsOrBuilder
-
getDatabaseFlagsOrDefault
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;- Specified by:
getDatabaseFlagsOrDefaultin interfaceCloudSqlSettingsOrBuilder
-
getDatabaseFlagsOrThrow
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;- Specified by:
getDatabaseFlagsOrThrowin interfaceCloudSqlSettingsOrBuilder
-
getDataDiskTypeValue
public int getDataDiskTypeValue()
The type of storage: `PD_SSD` (default) or `PD_HDD`.
.google.cloud.clouddms.v1.CloudSqlSettings.SqlDataDiskType data_disk_type = 9;- Specified by:
getDataDiskTypeValuein interfaceCloudSqlSettingsOrBuilder- Returns:
- The enum numeric value on the wire for dataDiskType.
-
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;- Specified by:
getDataDiskTypein interfaceCloudSqlSettingsOrBuilder- Returns:
- The dataDiskType.
-
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;- Specified by:
hasDataDiskSizeGbin interfaceCloudSqlSettingsOrBuilder- Returns:
- Whether the dataDiskSizeGb field is set.
-
getDataDiskSizeGb
public com.google.protobuf.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;- Specified by:
getDataDiskSizeGbin interfaceCloudSqlSettingsOrBuilder- Returns:
- The dataDiskSizeGb.
-
getDataDiskSizeGbOrBuilder
public com.google.protobuf.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;- Specified by:
getDataDiskSizeGbOrBuilderin interfaceCloudSqlSettingsOrBuilder
-
getZone
public String getZone()
The Google Cloud Platform zone where your Cloud SQL database instance is located.
string zone = 11;- Specified by:
getZonein interfaceCloudSqlSettingsOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()
The Google Cloud Platform zone where your Cloud SQL database instance is located.
string zone = 11;- Specified by:
getZoneBytesin interfaceCloudSqlSettingsOrBuilder- Returns:
- The bytes for zone.
-
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];- Specified by:
getSecondaryZonein interfaceCloudSqlSettingsOrBuilder- Returns:
- The secondaryZone.
-
getSecondaryZoneBytes
public com.google.protobuf.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];- Specified by:
getSecondaryZoneBytesin interfaceCloudSqlSettingsOrBuilder- Returns:
- 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;- Specified by:
getSourceIdin interfaceCloudSqlSettingsOrBuilder- Returns:
- The sourceId.
-
getSourceIdBytes
public com.google.protobuf.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;- Specified by:
getSourceIdBytesin interfaceCloudSqlSettingsOrBuilder- Returns:
- The bytes for sourceId.
-
getRootPassword
public String getRootPassword()
Input only. Initial root password.
string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getRootPasswordin interfaceCloudSqlSettingsOrBuilder- Returns:
- The rootPassword.
-
getRootPasswordBytes
public com.google.protobuf.ByteString getRootPasswordBytes()
Input only. Initial root password.
string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getRootPasswordBytesin interfaceCloudSqlSettingsOrBuilder- Returns:
- 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];- Specified by:
getRootPasswordSetin interfaceCloudSqlSettingsOrBuilder- Returns:
- The rootPasswordSet.
-
getCollation
public String getCollation()
The Cloud SQL default instance level collation.
string collation = 15;- Specified by:
getCollationin interfaceCloudSqlSettingsOrBuilder- Returns:
- The collation.
-
getCollationBytes
public com.google.protobuf.ByteString getCollationBytes()
The Cloud SQL default instance level collation.
string collation = 15;- Specified by:
getCollationBytesin interfaceCloudSqlSettingsOrBuilder- Returns:
- The bytes for collation.
-
getCmekKeyName
public String getCmekKeyName()
The KMS key name used for the csql instance.
string cmek_key_name = 16;- Specified by:
getCmekKeyNamein interfaceCloudSqlSettingsOrBuilder- Returns:
- The cmekKeyName.
-
getCmekKeyNameBytes
public com.google.protobuf.ByteString getCmekKeyNameBytes()
The KMS key name used for the csql instance.
string cmek_key_name = 16;- Specified by:
getCmekKeyNameBytesin interfaceCloudSqlSettingsOrBuilder- Returns:
- The bytes for cmekKeyName.
-
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];- Specified by:
getAvailabilityTypeValuein interfaceCloudSqlSettingsOrBuilder- Returns:
- The enum numeric value on the wire for availabilityType.
-
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];- Specified by:
getAvailabilityTypein interfaceCloudSqlSettingsOrBuilder- Returns:
- The availabilityType.
-
getEditionValue
public int getEditionValue()
Optional. The edition of the given Cloud SQL instance.
.google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEditionValuein interfaceCloudSqlSettingsOrBuilder- Returns:
- The enum numeric value on the wire for edition.
-
getEdition
public CloudSqlSettings.Edition getEdition()
Optional. The edition of the given Cloud SQL instance.
.google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEditionin interfaceCloudSqlSettingsOrBuilder- Returns:
- The edition.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CloudSqlSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudSqlSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudSqlSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudSqlSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudSqlSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudSqlSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloudSqlSettings parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudSqlSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloudSqlSettings parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloudSqlSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudSqlSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloudSqlSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CloudSqlSettings.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CloudSqlSettings.Builder newBuilder()
-
newBuilder
public static CloudSqlSettings.Builder newBuilder(CloudSqlSettings prototype)
-
toBuilder
public CloudSqlSettings.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloudSqlSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CloudSqlSettings getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CloudSqlSettings> parser()
-
getParserForType
public com.google.protobuf.Parser<CloudSqlSettings> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CloudSqlSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-