Package com.google.cloud.clouddms.v1
Class AlloyDbSettings
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.clouddms.v1.AlloyDbSettings
-
- All Implemented Interfaces:
AlloyDbSettingsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class AlloyDbSettings extends com.google.protobuf.GeneratedMessageV3 implements AlloyDbSettingsOrBuilder
Settings for creating an AlloyDB cluster.
Protobuf typegoogle.cloud.clouddms.v1.AlloyDbSettings- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAlloyDbSettings.BuilderSettings for creating an AlloyDB cluster.static classAlloyDbSettings.EncryptionConfigEncryptionConfig describes the encryption config of a cluster that is encrypted with a CMEK (customer-managed encryption key).static interfaceAlloyDbSettings.EncryptionConfigOrBuilderstatic classAlloyDbSettings.PrimaryInstanceSettingsSettings for the cluster's primary instancestatic interfaceAlloyDbSettings.PrimaryInstanceSettingsOrBuilderstatic classAlloyDbSettings.UserPasswordThe username/password for a database user.static interfaceAlloyDbSettings.UserPasswordOrBuilder-
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 intENCRYPTION_CONFIG_FIELD_NUMBERstatic intINITIAL_USER_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intPRIMARY_INSTANCE_SETTINGS_FIELD_NUMBERstatic intVPC_NETWORK_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Labels for the AlloyDB cluster created by DMS.booleanequals(Object obj)static AlloyDbSettingsgetDefaultInstance()AlloyDbSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()AlloyDbSettings.EncryptionConfiggetEncryptionConfig()Optional.AlloyDbSettings.EncryptionConfigOrBuildergetEncryptionConfigOrBuilder()Optional.AlloyDbSettings.UserPasswordgetInitialUser()Required.AlloyDbSettings.UserPasswordOrBuildergetInitialUserOrBuilder()Required.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels for the AlloyDB cluster created by DMS.Map<String,String>getLabelsMap()Labels for the AlloyDB cluster created by DMS.StringgetLabelsOrDefault(String key, String defaultValue)Labels for the AlloyDB cluster created by DMS.StringgetLabelsOrThrow(String key)Labels for the AlloyDB cluster created by DMS.com.google.protobuf.Parser<AlloyDbSettings>getParserForType()AlloyDbSettings.PrimaryInstanceSettingsgetPrimaryInstanceSettings().google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;AlloyDbSettings.PrimaryInstanceSettingsOrBuildergetPrimaryInstanceSettingsOrBuilder().google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;intgetSerializedSize()StringgetVpcNetwork()Required.com.google.protobuf.ByteStringgetVpcNetworkBytes()Required.booleanhasEncryptionConfig()Optional.inthashCode()booleanhasInitialUser()Required.booleanhasPrimaryInstanceSettings().google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static AlloyDbSettings.BuildernewBuilder()static AlloyDbSettings.BuildernewBuilder(AlloyDbSettings prototype)AlloyDbSettings.BuildernewBuilderForType()protected AlloyDbSettings.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AlloyDbSettingsparseDelimitedFrom(InputStream input)static AlloyDbSettingsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlloyDbSettingsparseFrom(byte[] data)static AlloyDbSettingsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlloyDbSettingsparseFrom(com.google.protobuf.ByteString data)static AlloyDbSettingsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlloyDbSettingsparseFrom(com.google.protobuf.CodedInputStream input)static AlloyDbSettingsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlloyDbSettingsparseFrom(InputStream input)static AlloyDbSettingsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AlloyDbSettingsparseFrom(ByteBuffer data)static AlloyDbSettingsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AlloyDbSettings>parser()AlloyDbSettings.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
-
INITIAL_USER_FIELD_NUMBER
public static final int INITIAL_USER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VPC_NETWORK_FIELD_NUMBER
public static final int VPC_NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIMARY_INSTANCE_SETTINGS_FIELD_NUMBER
public static final int PRIMARY_INSTANCE_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENCRYPTION_CONFIG_FIELD_NUMBER
public static final int ENCRYPTION_CONFIG_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
-
hasInitialUser
public boolean hasInitialUser()
Required. Input only. Initial user to setup during cluster creation. Required.
.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
hasInitialUserin interfaceAlloyDbSettingsOrBuilder- Returns:
- Whether the initialUser field is set.
-
getInitialUser
public AlloyDbSettings.UserPassword getInitialUser()
Required. Input only. Initial user to setup during cluster creation. Required.
.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getInitialUserin interfaceAlloyDbSettingsOrBuilder- Returns:
- The initialUser.
-
getInitialUserOrBuilder
public AlloyDbSettings.UserPasswordOrBuilder getInitialUserOrBuilder()
Required. Input only. Initial user to setup during cluster creation. Required.
.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getInitialUserOrBuilderin interfaceAlloyDbSettingsOrBuilder
-
getVpcNetwork
public String getVpcNetwork()
Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVpcNetworkin interfaceAlloyDbSettingsOrBuilder- Returns:
- The vpcNetwork.
-
getVpcNetworkBytes
public com.google.protobuf.ByteString getVpcNetworkBytes()
Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getVpcNetworkBytesin interfaceAlloyDbSettingsOrBuilder- Returns:
- The bytes for vpcNetwork.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:AlloyDbSettingsOrBuilderLabels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.
map<string, string> labels = 3;- Specified by:
getLabelsCountin interfaceAlloyDbSettingsOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.
map<string, string> labels = 3;- Specified by:
containsLabelsin interfaceAlloyDbSettingsOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAlloyDbSettingsOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.
map<string, string> labels = 3;- Specified by:
getLabelsMapin interfaceAlloyDbSettingsOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.
map<string, string> labels = 3;- Specified by:
getLabelsOrDefaultin interfaceAlloyDbSettingsOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.
map<string, string> labels = 3;- Specified by:
getLabelsOrThrowin interfaceAlloyDbSettingsOrBuilder
-
hasPrimaryInstanceSettings
public boolean hasPrimaryInstanceSettings()
.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;- Specified by:
hasPrimaryInstanceSettingsin interfaceAlloyDbSettingsOrBuilder- Returns:
- Whether the primaryInstanceSettings field is set.
-
getPrimaryInstanceSettings
public AlloyDbSettings.PrimaryInstanceSettings getPrimaryInstanceSettings()
.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;- Specified by:
getPrimaryInstanceSettingsin interfaceAlloyDbSettingsOrBuilder- Returns:
- The primaryInstanceSettings.
-
getPrimaryInstanceSettingsOrBuilder
public AlloyDbSettings.PrimaryInstanceSettingsOrBuilder getPrimaryInstanceSettingsOrBuilder()
.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;- Specified by:
getPrimaryInstanceSettingsOrBuilderin interfaceAlloyDbSettingsOrBuilder
-
hasEncryptionConfig
public boolean hasEncryptionConfig()
Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.
.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEncryptionConfigin interfaceAlloyDbSettingsOrBuilder- Returns:
- Whether the encryptionConfig field is set.
-
getEncryptionConfig
public AlloyDbSettings.EncryptionConfig getEncryptionConfig()
Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.
.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigin interfaceAlloyDbSettingsOrBuilder- Returns:
- The encryptionConfig.
-
getEncryptionConfigOrBuilder
public AlloyDbSettings.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.
.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigOrBuilderin interfaceAlloyDbSettingsOrBuilder
-
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 AlloyDbSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlloyDbSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlloyDbSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlloyDbSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlloyDbSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlloyDbSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AlloyDbSettings parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AlloyDbSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AlloyDbSettings parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AlloyDbSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AlloyDbSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AlloyDbSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AlloyDbSettings.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AlloyDbSettings.Builder newBuilder()
-
newBuilder
public static AlloyDbSettings.Builder newBuilder(AlloyDbSettings prototype)
-
toBuilder
public AlloyDbSettings.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AlloyDbSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AlloyDbSettings getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AlloyDbSettings> parser()
-
getParserForType
public com.google.protobuf.Parser<AlloyDbSettings> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AlloyDbSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-