Class PostgresqlProfile.Builder

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

    public static final class PostgresqlProfile.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PostgresqlProfile.Builder>
    implements PostgresqlProfileOrBuilder
     PostgreSQL database profile.
     
    Protobuf type google.cloud.datastream.v1.PostgresqlProfile
    • 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<PostgresqlProfile.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public PostgresqlProfile.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         Required. Hostname for the PostgreSQL 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 PostgreSQL connection, default value is 5432.
         
        int32 port = 2;
        Specified by:
        getPort in interface PostgresqlProfileOrBuilder
        Returns:
        The port.
      • setPort

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

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

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

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

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

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

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

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

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

        public PostgresqlProfile.Builder clearPassword()
         Required. Password for the PostgreSQL connection.
         
        string password = 4 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setPasswordBytes

        public PostgresqlProfile.Builder setPasswordBytes​(com.google.protobuf.ByteString value)
         Required. Password for the PostgreSQL connection.
         
        string password = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for password to set.
        Returns:
        This builder for chaining.
      • getDatabase

        public String getDatabase()
         Required. Database for the PostgreSQL connection.
         
        string database = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDatabase in interface PostgresqlProfileOrBuilder
        Returns:
        The database.
      • getDatabaseBytes

        public com.google.protobuf.ByteString getDatabaseBytes()
         Required. Database for the PostgreSQL connection.
         
        string database = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDatabaseBytes in interface PostgresqlProfileOrBuilder
        Returns:
        The bytes for database.
      • setDatabase

        public PostgresqlProfile.Builder setDatabase​(String value)
         Required. Database for the PostgreSQL connection.
         
        string database = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The database to set.
        Returns:
        This builder for chaining.
      • clearDatabase

        public PostgresqlProfile.Builder clearDatabase()
         Required. Database for the PostgreSQL connection.
         
        string database = 5 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDatabaseBytes

        public PostgresqlProfile.Builder setDatabaseBytes​(com.google.protobuf.ByteString value)
         Required. Database for the PostgreSQL connection.
         
        string database = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for database to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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