Class MySqlConnectionProfile.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

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

        public MySqlConnectionProfile.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<MySqlConnectionProfile.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<MySqlConnectionProfile.Builder>
      • getDefaultInstanceForType

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

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

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

        public MySqlConnectionProfile.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<MySqlConnectionProfile.Builder>
      • clearField

        public MySqlConnectionProfile.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<MySqlConnectionProfile.Builder>
      • clearOneof

        public MySqlConnectionProfile.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<MySqlConnectionProfile.Builder>
      • setRepeatedField

        public MySqlConnectionProfile.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<MySqlConnectionProfile.Builder>
      • addRepeatedField

        public MySqlConnectionProfile.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<MySqlConnectionProfile.Builder>
      • isInitialized

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

        public MySqlConnectionProfile.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<MySqlConnectionProfile.Builder>
        Throws:
        IOException
      • getHost

        public String getHost()
         Required. The IP or hostname of the source MySQL database.
         
        string host = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getHost in interface MySqlConnectionProfileOrBuilder
        Returns:
        The host.
      • getHostBytes

        public com.google.protobuf.ByteString getHostBytes()
         Required. The IP or hostname of the source MySQL database.
         
        string host = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getHostBytes in interface MySqlConnectionProfileOrBuilder
        Returns:
        The bytes for host.
      • setHost

        public MySqlConnectionProfile.Builder setHost​(String value)
         Required. The IP or hostname of the source MySQL database.
         
        string host = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The host to set.
        Returns:
        This builder for chaining.
      • clearHost

        public MySqlConnectionProfile.Builder clearHost()
         Required. The IP or hostname of the source MySQL database.
         
        string host = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setHostBytes

        public MySqlConnectionProfile.Builder setHostBytes​(com.google.protobuf.ByteString value)
         Required. The IP or hostname of the source MySQL database.
         
        string host = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for host to set.
        Returns:
        This builder for chaining.
      • getPort

        public int getPort()
         Required. The network port of the source MySQL database.
         
        int32 port = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPort in interface MySqlConnectionProfileOrBuilder
        Returns:
        The port.
      • setPort

        public MySqlConnectionProfile.Builder setPort​(int value)
         Required. The network port of the source MySQL database.
         
        int32 port = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The port to set.
        Returns:
        This builder for chaining.
      • clearPort

        public MySqlConnectionProfile.Builder clearPort()
         Required. The network port of the source MySQL database.
         
        int32 port = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getUsername

        public String getUsername()
         Required. The username that Database Migration Service will use to connect
         to the database. The value is encrypted when stored in Database Migration
         Service.
         
        string username = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUsername in interface MySqlConnectionProfileOrBuilder
        Returns:
        The username.
      • getUsernameBytes

        public com.google.protobuf.ByteString getUsernameBytes()
         Required. The username that Database Migration Service will use to connect
         to the database. The value is encrypted when stored in Database Migration
         Service.
         
        string username = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUsernameBytes in interface MySqlConnectionProfileOrBuilder
        Returns:
        The bytes for username.
      • setUsername

        public MySqlConnectionProfile.Builder setUsername​(String value)
         Required. The username that Database Migration Service will use to connect
         to the database. The value is encrypted when stored in Database Migration
         Service.
         
        string username = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The username to set.
        Returns:
        This builder for chaining.
      • clearUsername

        public MySqlConnectionProfile.Builder clearUsername()
         Required. The username that Database Migration Service will use to connect
         to the database. The value is encrypted when stored in Database Migration
         Service.
         
        string username = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setUsernameBytes

        public MySqlConnectionProfile.Builder setUsernameBytes​(com.google.protobuf.ByteString value)
         Required. The username that Database Migration Service will use to connect
         to the database. The value is encrypted when stored in Database Migration
         Service.
         
        string username = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for username to set.
        Returns:
        This builder for chaining.
      • getPassword

        public String getPassword()
         Required. Input only. The password for the user that Database Migration
         Service will be using to connect to the database. This field is not
         returned on request, and the value is encrypted when stored in Database
         Migration Service.
         
        string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPassword in interface MySqlConnectionProfileOrBuilder
        Returns:
        The password.
      • getPasswordBytes

        public com.google.protobuf.ByteString getPasswordBytes()
         Required. Input only. The password for the user that Database Migration
         Service will be using to connect to the database. This field is not
         returned on request, and the value is encrypted when stored in Database
         Migration Service.
         
        string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPasswordBytes in interface MySqlConnectionProfileOrBuilder
        Returns:
        The bytes for password.
      • setPassword

        public MySqlConnectionProfile.Builder setPassword​(String value)
         Required. Input only. The password for the user that Database Migration
         Service will be using to connect to the database. This field is not
         returned on request, and the value is encrypted when stored in Database
         Migration Service.
         
        string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The password to set.
        Returns:
        This builder for chaining.
      • clearPassword

        public MySqlConnectionProfile.Builder clearPassword()
         Required. Input only. The password for the user that Database Migration
         Service will be using to connect to the database. This field is not
         returned on request, and the value is encrypted when stored in Database
         Migration Service.
         
        string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setPasswordBytes

        public MySqlConnectionProfile.Builder setPasswordBytes​(com.google.protobuf.ByteString value)
         Required. Input only. The password for the user that Database Migration
         Service will be using to connect to the database. This field is not
         returned on request, and the value is encrypted when stored in Database
         Migration Service.
         
        string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for password to set.
        Returns:
        This builder for chaining.
      • getPasswordSet

        public boolean getPasswordSet()
         Output only. Indicates If this connection profile password is stored.
         
        bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPasswordSet in interface MySqlConnectionProfileOrBuilder
        Returns:
        The passwordSet.
      • setPasswordSet

        public MySqlConnectionProfile.Builder setPasswordSet​(boolean value)
         Output only. Indicates If this connection profile password is stored.
         
        bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The passwordSet to set.
        Returns:
        This builder for chaining.
      • clearPasswordSet

        public MySqlConnectionProfile.Builder clearPasswordSet()
         Output only. Indicates If this connection profile password is stored.
         
        bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasSsl

        public boolean hasSsl()
         SSL configuration for the destination to connect to the source database.
         
        .google.cloud.clouddms.v1.SslConfig ssl = 6;
        Specified by:
        hasSsl in interface MySqlConnectionProfileOrBuilder
        Returns:
        Whether the ssl field is set.
      • getSsl

        public SslConfig getSsl()
         SSL configuration for the destination to connect to the source database.
         
        .google.cloud.clouddms.v1.SslConfig ssl = 6;
        Specified by:
        getSsl in interface MySqlConnectionProfileOrBuilder
        Returns:
        The ssl.
      • mergeSsl

        public MySqlConnectionProfile.Builder mergeSsl​(SslConfig value)
         SSL configuration for the destination to connect to the source database.
         
        .google.cloud.clouddms.v1.SslConfig ssl = 6;
      • clearSsl

        public MySqlConnectionProfile.Builder clearSsl()
         SSL configuration for the destination to connect to the source database.
         
        .google.cloud.clouddms.v1.SslConfig ssl = 6;
      • getSslBuilder

        public SslConfig.Builder getSslBuilder()
         SSL configuration for the destination to connect to the source database.
         
        .google.cloud.clouddms.v1.SslConfig ssl = 6;
      • getCloudSqlId

        public String getCloudSqlId()
         If the source is a Cloud SQL database, use this field to
         provide the Cloud SQL instance ID of the source.
         
        string cloud_sql_id = 7;
        Specified by:
        getCloudSqlId in interface MySqlConnectionProfileOrBuilder
        Returns:
        The cloudSqlId.
      • getCloudSqlIdBytes

        public com.google.protobuf.ByteString getCloudSqlIdBytes()
         If the source is a Cloud SQL database, use this field to
         provide the Cloud SQL instance ID of the source.
         
        string cloud_sql_id = 7;
        Specified by:
        getCloudSqlIdBytes in interface MySqlConnectionProfileOrBuilder
        Returns:
        The bytes for cloudSqlId.
      • setCloudSqlId

        public MySqlConnectionProfile.Builder setCloudSqlId​(String value)
         If the source is a Cloud SQL database, use this field to
         provide the Cloud SQL instance ID of the source.
         
        string cloud_sql_id = 7;
        Parameters:
        value - The cloudSqlId to set.
        Returns:
        This builder for chaining.
      • clearCloudSqlId

        public MySqlConnectionProfile.Builder clearCloudSqlId()
         If the source is a Cloud SQL database, use this field to
         provide the Cloud SQL instance ID of the source.
         
        string cloud_sql_id = 7;
        Returns:
        This builder for chaining.
      • setCloudSqlIdBytes

        public MySqlConnectionProfile.Builder setCloudSqlIdBytes​(com.google.protobuf.ByteString value)
         If the source is a Cloud SQL database, use this field to
         provide the Cloud SQL instance ID of the source.
         
        string cloud_sql_id = 7;
        Parameters:
        value - The bytes for cloudSqlId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final MySqlConnectionProfile.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<MySqlConnectionProfile.Builder>
      • mergeUnknownFields

        public final MySqlConnectionProfile.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<MySqlConnectionProfile.Builder>