Class MysqlProfile.Builder

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

    public static final class MysqlProfile.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
    implements MysqlProfileOrBuilder
     MySQL database profile.
     
    Protobuf type google.cloud.datastream.v1alpha1.MysqlProfile
    • 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<MysqlProfile.Builder>
      • clear

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

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

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

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

        public MysqlProfile.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<MysqlProfile.Builder>
      • setField

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

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

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

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

        public MysqlProfile.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<MysqlProfile.Builder>
      • mergeFrom

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

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

        public MysqlProfile.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<MysqlProfile.Builder>
        Throws:
        IOException
      • getHostname

        public String getHostname()
         Required. Hostname for the MySQL connection.
         
        string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getHostname in interface MysqlProfileOrBuilder
        Returns:
        The hostname.
      • getHostnameBytes

        public com.google.protobuf.ByteString getHostnameBytes()
         Required. Hostname for the MySQL connection.
         
        string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getHostnameBytes in interface MysqlProfileOrBuilder
        Returns:
        The bytes for hostname.
      • setHostname

        public MysqlProfile.Builder setHostname​(String value)
         Required. Hostname for the MySQL connection.
         
        string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The hostname to set.
        Returns:
        This builder for chaining.
      • clearHostname

        public MysqlProfile.Builder clearHostname()
         Required. Hostname for the MySQL connection.
         
        string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setHostnameBytes

        public MysqlProfile.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         Required. Hostname for the MySQL connection.
         
        string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for hostname to set.
        Returns:
        This builder for chaining.
      • getPort

        public int getPort()
         Port for the MySQL connection, default value is 3306.
         
        int32 port = 2;
        Specified by:
        getPort in interface MysqlProfileOrBuilder
        Returns:
        The port.
      • setPort

        public MysqlProfile.Builder setPort​(int value)
         Port for the MySQL connection, default value is 3306.
         
        int32 port = 2;
        Parameters:
        value - The port to set.
        Returns:
        This builder for chaining.
      • clearPort

        public MysqlProfile.Builder clearPort()
         Port for the MySQL connection, default value is 3306.
         
        int32 port = 2;
        Returns:
        This builder for chaining.
      • getUsername

        public String getUsername()
         Required. Username for the MySQL connection.
         
        string username = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUsername in interface MysqlProfileOrBuilder
        Returns:
        The username.
      • getUsernameBytes

        public com.google.protobuf.ByteString getUsernameBytes()
         Required. Username for the MySQL connection.
         
        string username = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUsernameBytes in interface MysqlProfileOrBuilder
        Returns:
        The bytes for username.
      • setUsername

        public MysqlProfile.Builder setUsername​(String value)
         Required. Username for the MySQL connection.
         
        string username = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The username to set.
        Returns:
        This builder for chaining.
      • clearUsername

        public MysqlProfile.Builder clearUsername()
         Required. Username for the MySQL connection.
         
        string username = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setUsernameBytes

        public MysqlProfile.Builder setUsernameBytes​(com.google.protobuf.ByteString value)
         Required. Username for the MySQL connection.
         
        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. Password for the MySQL connection.
         
        string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getPassword in interface MysqlProfileOrBuilder
        Returns:
        The password.
      • getPasswordBytes

        public com.google.protobuf.ByteString getPasswordBytes()
         Required. Input only. Password for the MySQL connection.
         
        string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getPasswordBytes in interface MysqlProfileOrBuilder
        Returns:
        The bytes for password.
      • setPassword

        public MysqlProfile.Builder setPassword​(String value)
         Required. Input only. Password for the MySQL connection.
         
        string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The password to set.
        Returns:
        This builder for chaining.
      • clearPassword

        public MysqlProfile.Builder clearPassword()
         Required. Input only. Password for the MySQL connection.
         
        string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPasswordBytes

        public MysqlProfile.Builder setPasswordBytes​(com.google.protobuf.ByteString value)
         Required. Input only. Password for the MySQL connection.
         
        string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The bytes for password to set.
        Returns:
        This builder for chaining.
      • hasSslConfig

        public boolean hasSslConfig()
         SSL configuration for the MySQL connection.
         
        .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;
        Specified by:
        hasSslConfig in interface MysqlProfileOrBuilder
        Returns:
        Whether the sslConfig field is set.
      • getSslConfig

        public MysqlSslConfig getSslConfig()
         SSL configuration for the MySQL connection.
         
        .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;
        Specified by:
        getSslConfig in interface MysqlProfileOrBuilder
        Returns:
        The sslConfig.
      • setSslConfig

        public MysqlProfile.Builder setSslConfig​(MysqlSslConfig value)
         SSL configuration for the MySQL connection.
         
        .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;
      • setSslConfig

        public MysqlProfile.Builder setSslConfig​(MysqlSslConfig.Builder builderForValue)
         SSL configuration for the MySQL connection.
         
        .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;
      • mergeSslConfig

        public MysqlProfile.Builder mergeSslConfig​(MysqlSslConfig value)
         SSL configuration for the MySQL connection.
         
        .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;
      • clearSslConfig

        public MysqlProfile.Builder clearSslConfig()
         SSL configuration for the MySQL connection.
         
        .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;
      • getSslConfigBuilder

        public MysqlSslConfig.Builder getSslConfigBuilder()
         SSL configuration for the MySQL connection.
         
        .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;
      • setUnknownFields

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

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