Class MysqlProfile.Builder (1.54.0)

public static final class MysqlProfile.Builder extends GeneratedMessageV3.Builder<MysqlProfile.Builder> implements MysqlProfileOrBuilder

MySQL database profile.

Protobuf type google.cloud.datastream.v1alpha1.MysqlProfile

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MysqlProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MysqlProfile.Builder
Overrides

build()

public MysqlProfile build()
Returns
Type Description
MysqlProfile

buildPartial()

public MysqlProfile buildPartial()
Returns
Type Description
MysqlProfile

clear()

public MysqlProfile.Builder clear()
Returns
Type Description
MysqlProfile.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MysqlProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MysqlProfile.Builder
Overrides

clearHostname()

public MysqlProfile.Builder clearHostname()

Required. Hostname for the MySQL connection.

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

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MysqlProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MysqlProfile.Builder
Overrides

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
Type Description
MysqlProfile.Builder

This builder for chaining.

clearPort()

public MysqlProfile.Builder clearPort()

Port for the MySQL connection, default value is 3306.

int32 port = 2;

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.

clearSslConfig()

public MysqlProfile.Builder clearSslConfig()

SSL configuration for the MySQL connection.

.google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;

Returns
Type Description
MysqlProfile.Builder

clearUsername()

public MysqlProfile.Builder clearUsername()

Required. Username for the MySQL connection.

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

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.

clone()

public MysqlProfile.Builder clone()
Returns
Type Description
MysqlProfile.Builder
Overrides

getDefaultInstanceForType()

public MysqlProfile getDefaultInstanceForType()
Returns
Type Description
MysqlProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHostname()

public String getHostname()

Required. Hostname for the MySQL connection.

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

Returns
Type Description
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

Required. Hostname for the MySQL connection.

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

Returns
Type Description
ByteString

The bytes for hostname.

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];

Returns
Type Description
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

Required. Input only. Password for the MySQL connection.

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

Returns
Type Description
ByteString

The bytes for password.

getPort()

public int getPort()

Port for the MySQL connection, default value is 3306.

int32 port = 2;

Returns
Type Description
int

The port.

getSslConfig()

public MysqlSslConfig getSslConfig()

SSL configuration for the MySQL connection.

.google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;

Returns
Type Description
MysqlSslConfig

The sslConfig.

getSslConfigBuilder()

public MysqlSslConfig.Builder getSslConfigBuilder()

SSL configuration for the MySQL connection.

.google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;

Returns
Type Description
MysqlSslConfig.Builder

getSslConfigOrBuilder()

public MysqlSslConfigOrBuilder getSslConfigOrBuilder()

SSL configuration for the MySQL connection.

.google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;

Returns
Type Description
MysqlSslConfigOrBuilder

getUsername()

public String getUsername()

Required. Username for the MySQL connection.

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

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Required. Username for the MySQL connection.

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

Returns
Type Description
ByteString

The bytes for username.

hasSslConfig()

public boolean hasSslConfig()

SSL configuration for the MySQL connection.

.google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;

Returns
Type Description
boolean

Whether the sslConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MysqlProfile other)

public MysqlProfile.Builder mergeFrom(MysqlProfile other)
Parameter
Name Description
other MysqlProfile
Returns
Type Description
MysqlProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MysqlProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MysqlProfile.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MysqlProfile.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MysqlProfile.Builder
Overrides

mergeSslConfig(MysqlSslConfig value)

public MysqlProfile.Builder mergeSslConfig(MysqlSslConfig value)

SSL configuration for the MySQL connection.

.google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;

Parameter
Name Description
value MysqlSslConfig
Returns
Type Description
MysqlProfile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MysqlProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MysqlProfile.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MysqlProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MysqlProfile.Builder
Overrides

setHostname(String value)

public MysqlProfile.Builder setHostname(String value)

Required. Hostname for the MySQL connection.

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

Parameter
Name Description
value String

The hostname to set.

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public MysqlProfile.Builder setHostnameBytes(ByteString value)

Required. Hostname for the MySQL connection.

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

Parameter
Name Description
value ByteString

The bytes for hostname to set.

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.

setPassword(String value)

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];

Parameter
Name Description
value String

The password to set.

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public MysqlProfile.Builder setPasswordBytes(ByteString value)

Required. Input only. Password for the MySQL connection.

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

Parameter
Name Description
value ByteString

The bytes for password to set.

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.

setPort(int value)

public MysqlProfile.Builder setPort(int value)

Port for the MySQL connection, default value is 3306.

int32 port = 2;

Parameter
Name Description
value int

The port to set.

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.

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

public MysqlProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MysqlProfile.Builder
Overrides

setSslConfig(MysqlSslConfig value)

public MysqlProfile.Builder setSslConfig(MysqlSslConfig value)

SSL configuration for the MySQL connection.

.google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;

Parameter
Name Description
value MysqlSslConfig
Returns
Type Description
MysqlProfile.Builder

setSslConfig(MysqlSslConfig.Builder builderForValue)

public MysqlProfile.Builder setSslConfig(MysqlSslConfig.Builder builderForValue)

SSL configuration for the MySQL connection.

.google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5;

Parameter
Name Description
builderForValue MysqlSslConfig.Builder
Returns
Type Description
MysqlProfile.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MysqlProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MysqlProfile.Builder
Overrides

setUsername(String value)

public MysqlProfile.Builder setUsername(String value)

Required. Username for the MySQL connection.

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

Parameter
Name Description
value String

The username to set.

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public MysqlProfile.Builder setUsernameBytes(ByteString value)

Required. Username for the MySQL connection.

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

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
MysqlProfile.Builder

This builder for chaining.