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 class
AlloyDbSettings.Builder
Settings for creating an AlloyDB cluster.static class
AlloyDbSettings.EncryptionConfig
EncryptionConfig describes the encryption config of a cluster that is encrypted with a CMEK (customer-managed encryption key).static interface
AlloyDbSettings.EncryptionConfigOrBuilder
static class
AlloyDbSettings.PrimaryInstanceSettings
Settings for the cluster's primary instancestatic interface
AlloyDbSettings.PrimaryInstanceSettingsOrBuilder
static class
AlloyDbSettings.UserPassword
The username/password for a database user.static interface
AlloyDbSettings.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 int
ENCRYPTION_CONFIG_FIELD_NUMBER
static int
INITIAL_USER_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
PRIMARY_INSTANCE_SETTINGS_FIELD_NUMBER
static int
VPC_NETWORK_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels for the AlloyDB cluster created by DMS.boolean
equals(Object obj)
static AlloyDbSettings
getDefaultInstance()
AlloyDbSettings
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
AlloyDbSettings.EncryptionConfig
getEncryptionConfig()
Optional.AlloyDbSettings.EncryptionConfigOrBuilder
getEncryptionConfigOrBuilder()
Optional.AlloyDbSettings.UserPassword
getInitialUser()
Required.AlloyDbSettings.UserPasswordOrBuilder
getInitialUserOrBuilder()
Required.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels for the AlloyDB cluster created by DMS.Map<String,String>
getLabelsMap()
Labels for the AlloyDB cluster created by DMS.String
getLabelsOrDefault(String key, String defaultValue)
Labels for the AlloyDB cluster created by DMS.String
getLabelsOrThrow(String key)
Labels for the AlloyDB cluster created by DMS.com.google.protobuf.Parser<AlloyDbSettings>
getParserForType()
AlloyDbSettings.PrimaryInstanceSettings
getPrimaryInstanceSettings()
.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;
AlloyDbSettings.PrimaryInstanceSettingsOrBuilder
getPrimaryInstanceSettingsOrBuilder()
.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;
int
getSerializedSize()
String
getVpcNetwork()
Required.com.google.protobuf.ByteString
getVpcNetworkBytes()
Required.boolean
hasEncryptionConfig()
Optional.int
hashCode()
boolean
hasInitialUser()
Required.boolean
hasPrimaryInstanceSettings()
.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static AlloyDbSettings.Builder
newBuilder()
static AlloyDbSettings.Builder
newBuilder(AlloyDbSettings prototype)
AlloyDbSettings.Builder
newBuilderForType()
protected AlloyDbSettings.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AlloyDbSettings
parseDelimitedFrom(InputStream input)
static AlloyDbSettings
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AlloyDbSettings
parseFrom(byte[] data)
static AlloyDbSettings
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AlloyDbSettings
parseFrom(com.google.protobuf.ByteString data)
static AlloyDbSettings
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AlloyDbSettings
parseFrom(com.google.protobuf.CodedInputStream input)
static AlloyDbSettings
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AlloyDbSettings
parseFrom(InputStream input)
static AlloyDbSettings
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AlloyDbSettings
parseFrom(ByteBuffer data)
static AlloyDbSettings
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AlloyDbSettings>
parser()
AlloyDbSettings.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
hasInitialUser
in 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:
getInitialUser
in 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:
getInitialUserOrBuilder
in 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:
getVpcNetwork
in 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:
getVpcNetworkBytes
in interfaceAlloyDbSettingsOrBuilder
- Returns:
- The bytes for vpcNetwork.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:AlloyDbSettingsOrBuilder
Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.
map<string, string> labels = 3;
- Specified by:
getLabelsCount
in 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:
containsLabels
in interfaceAlloyDbSettingsOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in interfaceAlloyDbSettingsOrBuilder
-
hasPrimaryInstanceSettings
public boolean hasPrimaryInstanceSettings()
.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;
- Specified by:
hasPrimaryInstanceSettings
in 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:
getPrimaryInstanceSettings
in interfaceAlloyDbSettingsOrBuilder
- Returns:
- The primaryInstanceSettings.
-
getPrimaryInstanceSettingsOrBuilder
public AlloyDbSettings.PrimaryInstanceSettingsOrBuilder getPrimaryInstanceSettingsOrBuilder()
.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;
- Specified by:
getPrimaryInstanceSettingsOrBuilder
in 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:
hasEncryptionConfig
in 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:
getEncryptionConfig
in 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:
getEncryptionConfigOrBuilder
in interfaceAlloyDbSettingsOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AlloyDbSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AlloyDbSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-