Class 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 type google.cloud.clouddms.v1.AlloyDbSettings
    See Also:
    Serialized Form
    • 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
      • 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 class com.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 class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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 interface AlloyDbSettingsOrBuilder
        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 interface AlloyDbSettingsOrBuilder
        Returns:
        The initialUser.
      • 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 interface AlloyDbSettingsOrBuilder
        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 interface AlloyDbSettingsOrBuilder
        Returns:
        The bytes for vpcNetwork.
      • 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 interface AlloyDbSettingsOrBuilder
      • 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 interface AlloyDbSettingsOrBuilder
      • 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 interface AlloyDbSettingsOrBuilder
      • hasPrimaryInstanceSettings

        public boolean hasPrimaryInstanceSettings()
        .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;
        Specified by:
        hasPrimaryInstanceSettings in interface AlloyDbSettingsOrBuilder
        Returns:
        Whether the primaryInstanceSettings field is set.
      • 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 interface AlloyDbSettingsOrBuilder
        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 interface AlloyDbSettingsOrBuilder
        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 interface AlloyDbSettingsOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

        public AlloyDbSettings.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public AlloyDbSettings.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected AlloyDbSettings.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<AlloyDbSettings> parser()
      • getParserForType

        public com.google.protobuf.Parser<AlloyDbSettings> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public AlloyDbSettings getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder