Class MysqlProfile.Builder (1.5.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MysqlProfile build()
Returns
TypeDescription
MysqlProfile

buildPartial()

public MysqlProfile buildPartial()
Returns
TypeDescription
MysqlProfile

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHostname()

public MysqlProfile.Builder clearHostname()

Required. Hostname for the MySQL connection.

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

Returns
TypeDescription
MysqlProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MysqlProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
MysqlProfile.Builder

This builder for chaining.

clearPort()

public MysqlProfile.Builder clearPort()

Port for the MySQL connection, default value is 3306.

int32 port = 2;

Returns
TypeDescription
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
TypeDescription
MysqlProfile.Builder

clearUsername()

public MysqlProfile.Builder clearUsername()

Required. Username for the MySQL connection.

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

Returns
TypeDescription
MysqlProfile.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MysqlProfile getDefaultInstanceForType()
Returns
TypeDescription
MysqlProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHostname()

public String getHostname()

Required. Hostname for the MySQL connection.

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

Returns
TypeDescription
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

Required. Hostname for the MySQL connection.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for password.

getPort()

public int getPort()

Port for the MySQL connection, default value is 3306.

int32 port = 2;

Returns
TypeDescription
int

The port.

getSslConfig()

public MysqlSslConfig getSslConfig()

SSL configuration for the MySQL connection.

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

Returns
TypeDescription
MysqlSslConfig

The sslConfig.

getSslConfigBuilder()

public MysqlSslConfig.Builder getSslConfigBuilder()

SSL configuration for the MySQL connection.

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

Returns
TypeDescription
MysqlSslConfig.Builder

getSslConfigOrBuilder()

public MysqlSslConfigOrBuilder getSslConfigOrBuilder()

SSL configuration for the MySQL connection.

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

Returns
TypeDescription
MysqlSslConfigOrBuilder

getUsername()

public String getUsername()

Required. Username for the MySQL connection.

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

Returns
TypeDescription
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Required. Username for the MySQL connection.

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

Returns
TypeDescription
ByteString

The bytes for username.

hasSslConfig()

public boolean hasSslConfig()

SSL configuration for the MySQL connection.

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

Returns
TypeDescription
boolean

Whether the sslConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MysqlProfile other)

public MysqlProfile.Builder mergeFrom(MysqlProfile other)
Parameter
NameDescription
otherMysqlProfile
Returns
TypeDescription
MysqlProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MysqlProfile.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMysqlSslConfig
Returns
TypeDescription
MysqlProfile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public MysqlProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The hostname to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for hostname to set.

Returns
TypeDescription
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
NameDescription
valueString

The password to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for password to set.

Returns
TypeDescription
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
NameDescription
valueint

The port to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueMysqlSslConfig
Returns
TypeDescription
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
NameDescription
builderForValueMysqlSslConfig.Builder
Returns
TypeDescription
MysqlProfile.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MysqlProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The username to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for username to set.

Returns
TypeDescription
MysqlProfile.Builder

This builder for chaining.