Class PostgresqlProfile.Builder (1.15.0)

public static final class PostgresqlProfile.Builder extends GeneratedMessageV3.Builder<PostgresqlProfile.Builder> implements PostgresqlProfileOrBuilder

PostgreSQL database profile.

Protobuf type google.cloud.datastream.v1.PostgresqlProfile

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PostgresqlProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

build()

public PostgresqlProfile build()
Returns
TypeDescription
PostgresqlProfile

buildPartial()

public PostgresqlProfile buildPartial()
Returns
TypeDescription
PostgresqlProfile

clear()

public PostgresqlProfile.Builder clear()
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

clearDatabase()

public PostgresqlProfile.Builder clearDatabase()

Required. Database for the PostgreSQL connection.

string database = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PostgresqlProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

clearHostname()

public PostgresqlProfile.Builder clearHostname()

Required. Hostname for the PostgreSQL connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PostgresqlProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

clearPassword()

public PostgresqlProfile.Builder clearPassword()

Required. Password for the PostgreSQL connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

clearPort()

public PostgresqlProfile.Builder clearPort()

Port for the PostgreSQL connection, default value is 5432.

int32 port = 2;

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

clearUsername()

public PostgresqlProfile.Builder clearUsername()

Required. Username for the PostgreSQL connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

clone()

public PostgresqlProfile.Builder clone()
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

getDatabase()

public String getDatabase()

Required. Database for the PostgreSQL connection.

string database = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Required. Database for the PostgreSQL connection.

string database = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for database.

getDefaultInstanceForType()

public PostgresqlProfile getDefaultInstanceForType()
Returns
TypeDescription
PostgresqlProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHostname()

public String getHostname()

Required. Hostname for the PostgreSQL connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

Required. Hostname for the PostgreSQL connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for hostname.

getPassword()

public String getPassword()

Required. Password for the PostgreSQL connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

Required. Password for the PostgreSQL connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for password.

getPort()

public int getPort()

Port for the PostgreSQL connection, default value is 5432.

int32 port = 2;

Returns
TypeDescription
int

The port.

getUsername()

public String getUsername()

Required. Username for the PostgreSQL connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Required. Username for the PostgreSQL connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for username.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PostgresqlProfile other)

public PostgresqlProfile.Builder mergeFrom(PostgresqlProfile other)
Parameter
NameDescription
otherPostgresqlProfile
Returns
TypeDescription
PostgresqlProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PostgresqlProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PostgresqlProfile.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PostgresqlProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

setDatabase(String value)

public PostgresqlProfile.Builder setDatabase(String value)

Required. Database for the PostgreSQL connection.

string database = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The database to set.

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public PostgresqlProfile.Builder setDatabaseBytes(ByteString value)

Required. Database for the PostgreSQL connection.

string database = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for database to set.

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PostgresqlProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

setHostname(String value)

public PostgresqlProfile.Builder setHostname(String value)

Required. Hostname for the PostgreSQL connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The hostname to set.

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public PostgresqlProfile.Builder setHostnameBytes(ByteString value)

Required. Hostname for the PostgreSQL connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for hostname to set.

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

setPassword(String value)

public PostgresqlProfile.Builder setPassword(String value)

Required. Password for the PostgreSQL connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The password to set.

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public PostgresqlProfile.Builder setPasswordBytes(ByteString value)

Required. Password for the PostgreSQL connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for password to set.

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

setPort(int value)

public PostgresqlProfile.Builder setPort(int value)

Port for the PostgreSQL connection, default value is 5432.

int32 port = 2;

Parameter
NameDescription
valueint

The port to set.

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PostgresqlProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PostgresqlProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PostgresqlProfile.Builder
Overrides

setUsername(String value)

public PostgresqlProfile.Builder setUsername(String value)

Required. Username for the PostgreSQL connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The username to set.

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public PostgresqlProfile.Builder setUsernameBytes(ByteString value)

Required. Username for the PostgreSQL connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for username to set.

Returns
TypeDescription
PostgresqlProfile.Builder

This builder for chaining.