Package com.google.cloud.clouddms.v1
Class CloudSqlSettings.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
- com.google.cloud.clouddms.v1.CloudSqlSettings.Builder
-
- All Implemented Interfaces:
CloudSqlSettingsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CloudSqlSettings
public static final class CloudSqlSettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder> implements CloudSqlSettingsOrBuilder
Settings for creating a Cloud SQL database instance.
Protobuf typegoogle.cloud.clouddms.v1.CloudSqlSettings
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CloudSqlSettings.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CloudSqlSettings
build()
CloudSqlSettings
buildPartial()
CloudSqlSettings.Builder
clear()
CloudSqlSettings.Builder
clearActivationPolicy()
The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'.CloudSqlSettings.Builder
clearAutoStorageIncrease()
[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.CloudSqlSettings.Builder
clearAvailabilityType()
Optional.CloudSqlSettings.Builder
clearCmekKeyName()
The KMS key name used for the csql instance.CloudSqlSettings.Builder
clearCollation()
The Cloud SQL default instance level collation.CloudSqlSettings.Builder
clearDatabaseFlags()
CloudSqlSettings.Builder
clearDatabaseVersion()
The database engine type and version.CloudSqlSettings.Builder
clearDataDiskSizeGb()
The storage capacity available to the database, in GB.CloudSqlSettings.Builder
clearDataDiskType()
The type of storage: `PD_SSD` (default) or `PD_HDD`.CloudSqlSettings.Builder
clearEdition()
Optional.CloudSqlSettings.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CloudSqlSettings.Builder
clearIpConfig()
The settings for IP Management.CloudSqlSettings.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CloudSqlSettings.Builder
clearRootPassword()
Input only.CloudSqlSettings.Builder
clearRootPasswordSet()
Output only.CloudSqlSettings.Builder
clearSecondaryZone()
Optional.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`CloudSqlSettings.Builder
clearStorageAutoResizeLimit()
The maximum size to which storage capacity can be automatically increased.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).CloudSqlSettings.Builder
clearUserLabels()
CloudSqlSettings.Builder
clearZone()
The Google Cloud Platform zone where your Cloud SQL database instance is located.CloudSqlSettings.Builder
clone()
boolean
containsDatabaseFlags(String key)
The database flags passed to the Cloud SQL instance at startup.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.CloudSqlSettings.SqlActivationPolicy
getActivationPolicy()
The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'.int
getActivationPolicyValue()
The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'.com.google.protobuf.BoolValue
getAutoStorageIncrease()
[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.com.google.protobuf.BoolValue.Builder
getAutoStorageIncreaseBuilder()
[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.com.google.protobuf.BoolValueOrBuilder
getAutoStorageIncreaseOrBuilder()
[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.CloudSqlSettings.SqlAvailabilityType
getAvailabilityType()
Optional.int
getAvailabilityTypeValue()
Optional.String
getCmekKeyName()
The KMS key name used for the csql instance.com.google.protobuf.ByteString
getCmekKeyNameBytes()
The KMS key name used for the csql instance.String
getCollation()
The Cloud SQL default instance level collation.com.google.protobuf.ByteString
getCollationBytes()
The Cloud SQL default instance level collation.Map<String,String>
getDatabaseFlags()
Deprecated.int
getDatabaseFlagsCount()
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.String
getDatabaseFlagsOrDefault(String key, String defaultValue)
The database flags passed to the Cloud SQL instance at startup.String
getDatabaseFlagsOrThrow(String key)
The database flags passed to the Cloud SQL instance at startup.CloudSqlSettings.SqlDatabaseVersion
getDatabaseVersion()
The database engine type and version.int
getDatabaseVersionValue()
The database engine type and version.com.google.protobuf.Int64Value
getDataDiskSizeGb()
The storage capacity available to the database, in GB.com.google.protobuf.Int64Value.Builder
getDataDiskSizeGbBuilder()
The storage capacity available to the database, in GB.com.google.protobuf.Int64ValueOrBuilder
getDataDiskSizeGbOrBuilder()
The storage capacity available to the database, in GB.CloudSqlSettings.SqlDataDiskType
getDataDiskType()
The type of storage: `PD_SSD` (default) or `PD_HDD`.int
getDataDiskTypeValue()
The type of storage: `PD_SSD` (default) or `PD_HDD`.CloudSqlSettings
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
CloudSqlSettings.Edition
getEdition()
Optional.int
getEditionValue()
Optional.SqlIpConfig
getIpConfig()
The settings for IP Management.SqlIpConfig.Builder
getIpConfigBuilder()
The settings for IP Management.SqlIpConfigOrBuilder
getIpConfigOrBuilder()
The settings for IP Management.Map<String,String>
getMutableDatabaseFlags()
Deprecated.Map<String,String>
getMutableUserLabels()
Deprecated.String
getRootPassword()
Input only.com.google.protobuf.ByteString
getRootPasswordBytes()
Input only.boolean
getRootPasswordSet()
Output only.String
getSecondaryZone()
Optional.com.google.protobuf.ByteString
getSecondaryZoneBytes()
Optional.String
getSourceId()
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.ByteString
getSourceIdBytes()
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.Int64Value
getStorageAutoResizeLimit()
The maximum size to which storage capacity can be automatically increased.com.google.protobuf.Int64Value.Builder
getStorageAutoResizeLimitBuilder()
The maximum size to which storage capacity can be automatically increased.com.google.protobuf.Int64ValueOrBuilder
getStorageAutoResizeLimitOrBuilder()
The maximum size to which storage capacity can be automatically increased.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).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).Map<String,String>
getUserLabels()
Deprecated.int
getUserLabelsCount()
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.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.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.String
getZone()
The Google Cloud Platform zone where your Cloud SQL database instance is located.com.google.protobuf.ByteString
getZoneBytes()
The Google Cloud Platform zone where your Cloud SQL database instance is located.boolean
hasAutoStorageIncrease()
[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.boolean
hasDataDiskSizeGb()
The storage capacity available to the database, in GB.boolean
hasIpConfig()
The settings for IP Management.boolean
hasStorageAutoResizeLimit()
The maximum size to which storage capacity can be automatically increased.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
CloudSqlSettings.Builder
mergeAutoStorageIncrease(com.google.protobuf.BoolValue value)
[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.CloudSqlSettings.Builder
mergeDataDiskSizeGb(com.google.protobuf.Int64Value value)
The storage capacity available to the database, in GB.CloudSqlSettings.Builder
mergeFrom(CloudSqlSettings other)
CloudSqlSettings.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CloudSqlSettings.Builder
mergeFrom(com.google.protobuf.Message other)
CloudSqlSettings.Builder
mergeIpConfig(SqlIpConfig value)
The settings for IP Management.CloudSqlSettings.Builder
mergeStorageAutoResizeLimit(com.google.protobuf.Int64Value value)
The maximum size to which storage capacity can be automatically increased.CloudSqlSettings.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CloudSqlSettings.Builder
putAllDatabaseFlags(Map<String,String> values)
The database flags passed to the Cloud SQL instance at startup.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.CloudSqlSettings.Builder
putDatabaseFlags(String key, String value)
The database flags passed to the Cloud SQL instance at startup.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.CloudSqlSettings.Builder
removeDatabaseFlags(String key)
The database flags passed to the Cloud SQL instance at startup.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.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'.CloudSqlSettings.Builder
setActivationPolicyValue(int value)
The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'.CloudSqlSettings.Builder
setAutoStorageIncrease(com.google.protobuf.BoolValue value)
[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.CloudSqlSettings.Builder
setAutoStorageIncrease(com.google.protobuf.BoolValue.Builder builderForValue)
[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds.CloudSqlSettings.Builder
setAvailabilityType(CloudSqlSettings.SqlAvailabilityType value)
Optional.CloudSqlSettings.Builder
setAvailabilityTypeValue(int value)
Optional.CloudSqlSettings.Builder
setCmekKeyName(String value)
The KMS key name used for the csql instance.CloudSqlSettings.Builder
setCmekKeyNameBytes(com.google.protobuf.ByteString value)
The KMS key name used for the csql instance.CloudSqlSettings.Builder
setCollation(String value)
The Cloud SQL default instance level collation.CloudSqlSettings.Builder
setCollationBytes(com.google.protobuf.ByteString value)
The Cloud SQL default instance level collation.CloudSqlSettings.Builder
setDatabaseVersion(CloudSqlSettings.SqlDatabaseVersion value)
The database engine type and version.CloudSqlSettings.Builder
setDatabaseVersionValue(int value)
The database engine type and version.CloudSqlSettings.Builder
setDataDiskSizeGb(com.google.protobuf.Int64Value value)
The storage capacity available to the database, in GB.CloudSqlSettings.Builder
setDataDiskSizeGb(com.google.protobuf.Int64Value.Builder builderForValue)
The storage capacity available to the database, in GB.CloudSqlSettings.Builder
setDataDiskType(CloudSqlSettings.SqlDataDiskType value)
The type of storage: `PD_SSD` (default) or `PD_HDD`.CloudSqlSettings.Builder
setDataDiskTypeValue(int value)
The type of storage: `PD_SSD` (default) or `PD_HDD`.CloudSqlSettings.Builder
setEdition(CloudSqlSettings.Edition value)
Optional.CloudSqlSettings.Builder
setEditionValue(int value)
Optional.CloudSqlSettings.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CloudSqlSettings.Builder
setIpConfig(SqlIpConfig value)
The settings for IP Management.CloudSqlSettings.Builder
setIpConfig(SqlIpConfig.Builder builderForValue)
The settings for IP Management.CloudSqlSettings.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CloudSqlSettings.Builder
setRootPassword(String value)
Input only.CloudSqlSettings.Builder
setRootPasswordBytes(com.google.protobuf.ByteString value)
Input only.CloudSqlSettings.Builder
setRootPasswordSet(boolean value)
Output only.CloudSqlSettings.Builder
setSecondaryZone(String value)
Optional.CloudSqlSettings.Builder
setSecondaryZoneBytes(com.google.protobuf.ByteString value)
Optional.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`CloudSqlSettings.Builder
setSourceIdBytes(com.google.protobuf.ByteString value)
The Database Migration Service source connection profile ID, in the format: `projects/my_project_name/locations/us-central1/connectionProfiles/connection_profile_ID`CloudSqlSettings.Builder
setStorageAutoResizeLimit(com.google.protobuf.Int64Value value)
The maximum size to which storage capacity can be automatically increased.CloudSqlSettings.Builder
setStorageAutoResizeLimit(com.google.protobuf.Int64Value.Builder builderForValue)
The maximum size to which storage capacity can be automatically increased.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).CloudSqlSettings.Builder
setTierBytes(com.google.protobuf.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).CloudSqlSettings.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CloudSqlSettings.Builder
setZone(String value)
The Google Cloud Platform zone where your Cloud SQL database instance is located.CloudSqlSettings.Builder
setZoneBytes(com.google.protobuf.ByteString value)
The Google Cloud Platform zone where your Cloud SQL database instance is located.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
clear
public CloudSqlSettings.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
getDefaultInstanceForType
public CloudSqlSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CloudSqlSettings build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CloudSqlSettings buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CloudSqlSettings.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
setField
public CloudSqlSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
clearField
public CloudSqlSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
clearOneof
public CloudSqlSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
setRepeatedField
public CloudSqlSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
addRepeatedField
public CloudSqlSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
mergeFrom
public CloudSqlSettings.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CloudSqlSettings.Builder>
-
mergeFrom
public CloudSqlSettings.Builder mergeFrom(CloudSqlSettings other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
mergeFrom
public CloudSqlSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CloudSqlSettings.Builder>
- Throws:
IOException
-
getDatabaseVersionValue
public int getDatabaseVersionValue()
The database engine type and version.
.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;
- Specified by:
getDatabaseVersionValue
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The enum numeric value on the wire for databaseVersion.
-
setDatabaseVersionValue
public CloudSqlSettings.Builder setDatabaseVersionValue(int value)
The database engine type and version.
.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;
- Parameters:
value
- The enum numeric value on the wire for databaseVersion to set.- Returns:
- This builder for chaining.
-
getDatabaseVersion
public CloudSqlSettings.SqlDatabaseVersion getDatabaseVersion()
The database engine type and version.
.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;
- Specified by:
getDatabaseVersion
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The databaseVersion.
-
setDatabaseVersion
public CloudSqlSettings.Builder setDatabaseVersion(CloudSqlSettings.SqlDatabaseVersion value)
The database engine type and version.
.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;
- Parameters:
value
- The databaseVersion to set.- Returns:
- This builder for chaining.
-
clearDatabaseVersion
public CloudSqlSettings.Builder clearDatabaseVersion()
The database engine type and version.
.google.cloud.clouddms.v1.CloudSqlSettings.SqlDatabaseVersion database_version = 1;
- Returns:
- This builder for chaining.
-
getUserLabelsCount
public int getUserLabelsCount()
Description copied from interface:CloudSqlSettingsOrBuilder
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:
getUserLabelsCount
in 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:
containsUserLabels
in interfaceCloudSqlSettingsOrBuilder
-
getUserLabels
@Deprecated public Map<String,String> getUserLabels()
Deprecated.UsegetUserLabelsMap()
instead.- Specified by:
getUserLabels
in 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:
getUserLabelsMap
in 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:
getUserLabelsOrDefault
in 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:
getUserLabelsOrThrow
in interfaceCloudSqlSettingsOrBuilder
-
clearUserLabels
public CloudSqlSettings.Builder clearUserLabels()
-
removeUserLabels
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;
-
getMutableUserLabels
@Deprecated public Map<String,String> getMutableUserLabels()
Deprecated.Use alternate mutation accessors instead.
-
putUserLabels
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;
-
putAllUserLabels
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;
-
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:
getTier
in 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:
getTierBytes
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The bytes for tier.
-
setTier
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](https://cloud.google.com/sql/docs/mysql/instance-settings).
string tier = 3;
- Parameters:
value
- The tier to set.- Returns:
- This builder for chaining.
-
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](https://cloud.google.com/sql/docs/mysql/instance-settings).
string tier = 3;
- Returns:
- This builder for chaining.
-
setTierBytes
public CloudSqlSettings.Builder setTierBytes(com.google.protobuf.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](https://cloud.google.com/sql/docs/mysql/instance-settings).
string tier = 3;
- Parameters:
value
- The bytes for tier to set.- Returns:
- This builder for chaining.
-
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:
hasStorageAutoResizeLimit
in 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:
getStorageAutoResizeLimit
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The storageAutoResizeLimit.
-
setStorageAutoResizeLimit
public CloudSqlSettings.Builder setStorageAutoResizeLimit(com.google.protobuf.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;
-
setStorageAutoResizeLimit
public CloudSqlSettings.Builder setStorageAutoResizeLimit(com.google.protobuf.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;
-
mergeStorageAutoResizeLimit
public CloudSqlSettings.Builder mergeStorageAutoResizeLimit(com.google.protobuf.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;
-
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;
-
getStorageAutoResizeLimitBuilder
public com.google.protobuf.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;
-
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:
getStorageAutoResizeLimitOrBuilder
in 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:
getActivationPolicyValue
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The enum numeric value on the wire for activationPolicy.
-
setActivationPolicyValue
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;
- Parameters:
value
- The enum numeric value on the wire for activationPolicy to set.- Returns:
- This builder for chaining.
-
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:
getActivationPolicy
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The activationPolicy.
-
setActivationPolicy
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;
- Parameters:
value
- The activationPolicy to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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:
hasIpConfig
in 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:
getIpConfig
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The ipConfig.
-
setIpConfig
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;
-
setIpConfig
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;
-
mergeIpConfig
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;
-
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;
-
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;
-
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:
getIpConfigOrBuilder
in 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:
hasAutoStorageIncrease
in 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:
getAutoStorageIncrease
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The autoStorageIncrease.
-
setAutoStorageIncrease
public CloudSqlSettings.Builder setAutoStorageIncrease(com.google.protobuf.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;
-
setAutoStorageIncrease
public CloudSqlSettings.Builder setAutoStorageIncrease(com.google.protobuf.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;
-
mergeAutoStorageIncrease
public CloudSqlSettings.Builder mergeAutoStorageIncrease(com.google.protobuf.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;
-
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;
-
getAutoStorageIncreaseBuilder
public com.google.protobuf.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;
-
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:
getAutoStorageIncreaseOrBuilder
in interfaceCloudSqlSettingsOrBuilder
-
getDatabaseFlagsCount
public int getDatabaseFlagsCount()
Description copied from interface:CloudSqlSettingsOrBuilder
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:
getDatabaseFlagsCount
in 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:
containsDatabaseFlags
in interfaceCloudSqlSettingsOrBuilder
-
getDatabaseFlags
@Deprecated public Map<String,String> getDatabaseFlags()
Deprecated.UsegetDatabaseFlagsMap()
instead.- Specified by:
getDatabaseFlags
in 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:
getDatabaseFlagsMap
in 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:
getDatabaseFlagsOrDefault
in 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:
getDatabaseFlagsOrThrow
in interfaceCloudSqlSettingsOrBuilder
-
clearDatabaseFlags
public CloudSqlSettings.Builder clearDatabaseFlags()
-
removeDatabaseFlags
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;
-
getMutableDatabaseFlags
@Deprecated public Map<String,String> getMutableDatabaseFlags()
Deprecated.Use alternate mutation accessors instead.
-
putDatabaseFlags
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;
-
putAllDatabaseFlags
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;
-
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:
getDataDiskTypeValue
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The enum numeric value on the wire for dataDiskType.
-
setDataDiskTypeValue
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;
- Parameters:
value
- The enum numeric value on the wire for dataDiskType to set.- Returns:
- This builder for chaining.
-
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:
getDataDiskType
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The dataDiskType.
-
setDataDiskType
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;
- Parameters:
value
- The dataDiskType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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:
hasDataDiskSizeGb
in 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:
getDataDiskSizeGb
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The dataDiskSizeGb.
-
setDataDiskSizeGb
public CloudSqlSettings.Builder setDataDiskSizeGb(com.google.protobuf.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;
-
setDataDiskSizeGb
public CloudSqlSettings.Builder setDataDiskSizeGb(com.google.protobuf.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;
-
mergeDataDiskSizeGb
public CloudSqlSettings.Builder mergeDataDiskSizeGb(com.google.protobuf.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;
-
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;
-
getDataDiskSizeGbBuilder
public com.google.protobuf.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;
-
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:
getDataDiskSizeGbOrBuilder
in interfaceCloudSqlSettingsOrBuilder
-
getZone
public String getZone()
The Google Cloud Platform zone where your Cloud SQL database instance is located.
string zone = 11;
- Specified by:
getZone
in 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:
getZoneBytes
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The bytes for zone.
-
setZone
public CloudSqlSettings.Builder setZone(String value)
The Google Cloud Platform zone where your Cloud SQL database instance is located.
string zone = 11;
- Parameters:
value
- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
public CloudSqlSettings.Builder clearZone()
The Google Cloud Platform zone where your Cloud SQL database instance is located.
string zone = 11;
- Returns:
- This builder for chaining.
-
setZoneBytes
public CloudSqlSettings.Builder setZoneBytes(com.google.protobuf.ByteString value)
The Google Cloud Platform zone where your Cloud SQL database instance is located.
string zone = 11;
- Parameters:
value
- The bytes for zone to set.- Returns:
- This builder for chaining.
-
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:
getSecondaryZone
in 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:
getSecondaryZoneBytes
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The bytes for secondaryZone.
-
setSecondaryZone
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];
- Parameters:
value
- The secondaryZone to set.- Returns:
- 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:
- This builder for chaining.
-
setSecondaryZoneBytes
public CloudSqlSettings.Builder setSecondaryZoneBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for secondaryZone to set.- Returns:
- This builder for chaining.
-
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:
getSourceId
in 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:
getSourceIdBytes
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The bytes for sourceId.
-
setSourceId
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;
- Parameters:
value
- The sourceId to set.- Returns:
- 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:
- This builder for chaining.
-
setSourceIdBytes
public CloudSqlSettings.Builder setSourceIdBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for sourceId to set.- Returns:
- This builder for chaining.
-
getRootPassword
public String getRootPassword()
Input only. Initial root password.
string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getRootPassword
in 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:
getRootPasswordBytes
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The bytes for rootPassword.
-
setRootPassword
public CloudSqlSettings.Builder setRootPassword(String value)
Input only. Initial root password.
string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The rootPassword to set.- Returns:
- This builder for chaining.
-
clearRootPassword
public CloudSqlSettings.Builder clearRootPassword()
Input only. Initial root password.
string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];
- Returns:
- This builder for chaining.
-
setRootPasswordBytes
public CloudSqlSettings.Builder setRootPasswordBytes(com.google.protobuf.ByteString value)
Input only. Initial root password.
string root_password = 13 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The bytes for rootPassword to set.- Returns:
- This builder for chaining.
-
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:
getRootPasswordSet
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The rootPasswordSet.
-
setRootPasswordSet
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];
- Parameters:
value
- The rootPasswordSet to set.- Returns:
- 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:
- This builder for chaining.
-
getCollation
public String getCollation()
The Cloud SQL default instance level collation.
string collation = 15;
- Specified by:
getCollation
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The collation.
-
getCollationBytes
public com.google.protobuf.ByteString getCollationBytes()
The Cloud SQL default instance level collation.
string collation = 15;
- Specified by:
getCollationBytes
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The bytes for collation.
-
setCollation
public CloudSqlSettings.Builder setCollation(String value)
The Cloud SQL default instance level collation.
string collation = 15;
- Parameters:
value
- The collation to set.- Returns:
- This builder for chaining.
-
clearCollation
public CloudSqlSettings.Builder clearCollation()
The Cloud SQL default instance level collation.
string collation = 15;
- Returns:
- This builder for chaining.
-
setCollationBytes
public CloudSqlSettings.Builder setCollationBytes(com.google.protobuf.ByteString value)
The Cloud SQL default instance level collation.
string collation = 15;
- Parameters:
value
- The bytes for collation to set.- Returns:
- This builder for chaining.
-
getCmekKeyName
public String getCmekKeyName()
The KMS key name used for the csql instance.
string cmek_key_name = 16;
- Specified by:
getCmekKeyName
in 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:
getCmekKeyNameBytes
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The bytes for cmekKeyName.
-
setCmekKeyName
public CloudSqlSettings.Builder setCmekKeyName(String value)
The KMS key name used for the csql instance.
string cmek_key_name = 16;
- Parameters:
value
- The cmekKeyName to set.- Returns:
- This builder for chaining.
-
clearCmekKeyName
public CloudSqlSettings.Builder clearCmekKeyName()
The KMS key name used for the csql instance.
string cmek_key_name = 16;
- Returns:
- This builder for chaining.
-
setCmekKeyNameBytes
public CloudSqlSettings.Builder setCmekKeyNameBytes(com.google.protobuf.ByteString value)
The KMS key name used for the csql instance.
string cmek_key_name = 16;
- Parameters:
value
- The bytes for cmekKeyName to set.- Returns:
- This builder for chaining.
-
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:
getAvailabilityTypeValue
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The enum numeric value on the wire for availabilityType.
-
setAvailabilityTypeValue
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];
- Parameters:
value
- The enum numeric value on the wire for availabilityType to set.- Returns:
- This builder for chaining.
-
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:
getAvailabilityType
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The availabilityType.
-
setAvailabilityType
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];
- Parameters:
value
- The availabilityType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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:
getEditionValue
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The enum numeric value on the wire for edition.
-
setEditionValue
public CloudSqlSettings.Builder setEditionValue(int value)
Optional. The edition of the given Cloud SQL instance.
.google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The enum numeric value on the wire for edition to set.- Returns:
- This builder for chaining.
-
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:
getEdition
in interfaceCloudSqlSettingsOrBuilder
- Returns:
- The edition.
-
setEdition
public CloudSqlSettings.Builder setEdition(CloudSqlSettings.Edition value)
Optional. The edition of the given Cloud SQL instance.
.google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The edition to set.- Returns:
- This builder for chaining.
-
clearEdition
public CloudSqlSettings.Builder clearEdition()
Optional. The edition of the given Cloud SQL instance.
.google.cloud.clouddms.v1.CloudSqlSettings.Edition edition = 19 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final CloudSqlSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
mergeUnknownFields
public final CloudSqlSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CloudSqlSettings.Builder>
-
-