Class PostgreSqlConnectionProfile.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<PostgreSqlConnectionProfile.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<PostgreSqlConnectionProfile.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

        public PostgreSqlConnectionProfile.Builder setHostBytes​(com.google.protobuf.ByteString value)
         Required. The IP or hostname of the source PostgreSQL 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 PostgreSQL database.
         
        int32 port = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPort in interface PostgreSqlConnectionProfileOrBuilder
        Returns:
        The port.
      • setPort

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

        public PostgreSqlConnectionProfile.Builder clearPort()
         Required. The network port of the source PostgreSQL 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 PostgreSqlConnectionProfileOrBuilder
        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 PostgreSqlConnectionProfileOrBuilder
        Returns:
        The bytes for username.
      • setUsername

        public PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfileOrBuilder
        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 PostgreSqlConnectionProfileOrBuilder
        Returns:
        The bytes for password.
      • setPassword

        public PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfileOrBuilder
        Returns:
        The passwordSet.
      • setPasswordSet

        public PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfileOrBuilder
        Returns:
        Whether the ssl field is set.
      • clearSsl

        public PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfileOrBuilder
        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 PostgreSqlConnectionProfileOrBuilder
        Returns:
        The bytes for cloudSqlId.
      • setCloudSqlId

        public PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfile.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 PostgreSqlConnectionProfile.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.
      • getNetworkArchitectureValue

        public int getNetworkArchitectureValue()
         Output only. If the source is a Cloud SQL database, this field indicates
         the network architecture it's associated with.
         
        .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNetworkArchitectureValue in interface PostgreSqlConnectionProfileOrBuilder
        Returns:
        The enum numeric value on the wire for networkArchitecture.
      • setNetworkArchitectureValue

        public PostgreSqlConnectionProfile.Builder setNetworkArchitectureValue​(int value)
         Output only. If the source is a Cloud SQL database, this field indicates
         the network architecture it's associated with.
         
        .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for networkArchitecture to set.
        Returns:
        This builder for chaining.
      • getNetworkArchitecture

        public NetworkArchitecture getNetworkArchitecture()
         Output only. If the source is a Cloud SQL database, this field indicates
         the network architecture it's associated with.
         
        .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNetworkArchitecture in interface PostgreSqlConnectionProfileOrBuilder
        Returns:
        The networkArchitecture.
      • setNetworkArchitecture

        public PostgreSqlConnectionProfile.Builder setNetworkArchitecture​(NetworkArchitecture value)
         Output only. If the source is a Cloud SQL database, this field indicates
         the network architecture it's associated with.
         
        .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The networkArchitecture to set.
        Returns:
        This builder for chaining.
      • clearNetworkArchitecture

        public PostgreSqlConnectionProfile.Builder clearNetworkArchitecture()
         Output only. If the source is a Cloud SQL database, this field indicates
         the network architecture it's associated with.
         
        .google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasStaticIpConnectivity

        public boolean hasStaticIpConnectivity()
         Static ip connectivity data (default, no additional details needed).
         
        .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100;
        Specified by:
        hasStaticIpConnectivity in interface PostgreSqlConnectionProfileOrBuilder
        Returns:
        Whether the staticIpConnectivity field is set.
      • mergeStaticIpConnectivity

        public PostgreSqlConnectionProfile.Builder mergeStaticIpConnectivity​(StaticIpConnectivity value)
         Static ip connectivity data (default, no additional details needed).
         
        .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100;
      • clearStaticIpConnectivity

        public PostgreSqlConnectionProfile.Builder clearStaticIpConnectivity()
         Static ip connectivity data (default, no additional details needed).
         
        .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100;
      • getStaticIpConnectivityBuilder

        public StaticIpConnectivity.Builder getStaticIpConnectivityBuilder()
         Static ip connectivity data (default, no additional details needed).
         
        .google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100;
      • hasPrivateServiceConnectConnectivity

        public boolean hasPrivateServiceConnectConnectivity()
         Private service connect connectivity.
         
        .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101;
        Specified by:
        hasPrivateServiceConnectConnectivity in interface PostgreSqlConnectionProfileOrBuilder
        Returns:
        Whether the privateServiceConnectConnectivity field is set.
      • clearPrivateServiceConnectConnectivity

        public PostgreSqlConnectionProfile.Builder clearPrivateServiceConnectConnectivity()
         Private service connect connectivity.
         
        .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101;
      • getPrivateServiceConnectConnectivityBuilder

        public PrivateServiceConnectConnectivity.Builder getPrivateServiceConnectConnectivityBuilder()
         Private service connect connectivity.
         
        .google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101;
      • mergeUnknownFields

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