Class AlloyDbSettings.Builder

  • All Implemented Interfaces:
    AlloyDbSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AlloyDbSettings

    public static final class AlloyDbSettings.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
    implements AlloyDbSettingsOrBuilder
     Settings for creating an AlloyDB cluster.
     
    Protobuf type google.cloud.clouddms.v1.AlloyDbSettings
    • Method Detail

      • 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.Builder<AlloyDbSettings.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • clear

        public AlloyDbSettings.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • getDefaultInstanceForType

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

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

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

        public AlloyDbSettings.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • setField

        public AlloyDbSettings.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • clearField

        public AlloyDbSettings.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • clearOneof

        public AlloyDbSettings.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • setRepeatedField

        public AlloyDbSettings.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • addRepeatedField

        public AlloyDbSettings.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • mergeFrom

        public AlloyDbSettings.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AlloyDbSettings.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • mergeFrom

        public AlloyDbSettings.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AlloyDbSettings.Builder>
        Throws:
        IOException
      • 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.
      • setInitialUser

        public AlloyDbSettings.Builder setInitialUser​(AlloyDbSettings.UserPassword value)
         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];
      • setInitialUser

        public AlloyDbSettings.Builder setInitialUser​(AlloyDbSettings.UserPassword.Builder builderForValue)
         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];
      • mergeInitialUser

        public AlloyDbSettings.Builder mergeInitialUser​(AlloyDbSettings.UserPassword value)
         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];
      • clearInitialUser

        public AlloyDbSettings.Builder clearInitialUser()
         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];
      • getInitialUserBuilder

        public AlloyDbSettings.UserPassword.Builder getInitialUserBuilder()
         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];
      • 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.
      • setVpcNetwork

        public AlloyDbSettings.Builder setVpcNetwork​(String value)
         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];
        Parameters:
        value - The vpcNetwork to set.
        Returns:
        This builder for chaining.
      • clearVpcNetwork

        public AlloyDbSettings.Builder clearVpcNetwork()
         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];
        Returns:
        This builder for chaining.
      • setVpcNetworkBytes

        public AlloyDbSettings.Builder setVpcNetworkBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for vpcNetwork to set.
        Returns:
        This builder for chaining.
      • 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
      • removeLabels

        public AlloyDbSettings.Builder removeLabels​(String key)
         Labels for the AlloyDB cluster created by DMS. An object containing a list
         of 'key', 'value' pairs.
         
        map<string, string> labels = 3;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public AlloyDbSettings.Builder putLabels​(String key,
                                                 String value)
         Labels for the AlloyDB cluster created by DMS. An object containing a list
         of 'key', 'value' pairs.
         
        map<string, string> labels = 3;
      • putAllLabels

        public AlloyDbSettings.Builder putAllLabels​(Map<String,​String> values)
         Labels for the AlloyDB cluster created by DMS. An object containing a list
         of 'key', 'value' pairs.
         
        map<string, string> labels = 3;
      • 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.
      • clearPrimaryInstanceSettings

        public AlloyDbSettings.Builder clearPrimaryInstanceSettings()
        .google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;
      • 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.
      • setEncryptionConfig

        public AlloyDbSettings.Builder setEncryptionConfig​(AlloyDbSettings.EncryptionConfig value)
         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];
      • setEncryptionConfig

        public AlloyDbSettings.Builder setEncryptionConfig​(AlloyDbSettings.EncryptionConfig.Builder builderForValue)
         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];
      • mergeEncryptionConfig

        public AlloyDbSettings.Builder mergeEncryptionConfig​(AlloyDbSettings.EncryptionConfig value)
         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];
      • clearEncryptionConfig

        public AlloyDbSettings.Builder clearEncryptionConfig()
         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];
      • getEncryptionConfigBuilder

        public AlloyDbSettings.EncryptionConfig.Builder getEncryptionConfigBuilder()
         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];
      • 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
      • setUnknownFields

        public final AlloyDbSettings.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>
      • mergeUnknownFields

        public final AlloyDbSettings.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AlloyDbSettings.Builder>