public static final class MysqlProfile.Builder extends GeneratedMessageV3.Builder<MysqlProfile.Builder> implements MysqlProfileOrBuilder
MySQL database profile.
Protobuf type google.events.cloud.datastream.v1.MysqlProfile
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MysqlProfile.BuilderImplements
MysqlProfileOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public MysqlProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
MysqlProfile.Builder |
clearHostname()
public MysqlProfile.Builder clearHostname()
Required. Hostname for the MySQL connection.
string hostname = 1;
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 |
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.events.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
Returns | |
---|---|
Type | Description |
MysqlProfile.Builder |
clearUsername()
public MysqlProfile.Builder clearUsername()
Required. Username for the MySQL connection.
string username = 3;
Returns | |
---|---|
Type | Description |
MysqlProfile.Builder |
This builder for chaining. |
clone()
public MysqlProfile.Builder clone()
Returns | |
---|---|
Type | Description |
MysqlProfile.Builder |
getDefaultInstanceForType()
public MysqlProfile getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MysqlProfile |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getHostname()
public String getHostname()
Required. Hostname for the MySQL connection.
string hostname = 1;
Returns | |
---|---|
Type | Description |
String |
The hostname. |
getHostnameBytes()
public ByteString getHostnameBytes()
Required. Hostname for the MySQL connection.
string hostname = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for hostname. |
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.events.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
Returns | |
---|---|
Type | Description |
MysqlSslConfig |
The sslConfig. |
getSslConfigBuilder()
public MysqlSslConfig.Builder getSslConfigBuilder()
SSL configuration for the MySQL connection.
.google.events.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
Returns | |
---|---|
Type | Description |
MysqlSslConfig.Builder |
getSslConfigOrBuilder()
public MysqlSslConfigOrBuilder getSslConfigOrBuilder()
SSL configuration for the MySQL connection.
.google.events.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
Returns | |
---|---|
Type | Description |
MysqlSslConfigOrBuilder |
getUsername()
public String getUsername()
Required. Username for the MySQL connection.
string username = 3;
Returns | |
---|---|
Type | Description |
String |
The username. |
getUsernameBytes()
public ByteString getUsernameBytes()
Required. Username for the MySQL connection.
string username = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for username. |
hasSslConfig()
public boolean hasSslConfig()
SSL configuration for the MySQL connection.
.google.events.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
Returns | |
---|---|
Type | Description |
boolean |
Whether the sslConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MysqlProfile.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
MysqlProfile.Builder |
mergeSslConfig(MysqlSslConfig value)
public MysqlProfile.Builder mergeSslConfig(MysqlSslConfig value)
SSL configuration for the MySQL connection.
.google.events.cloud.datastream.v1.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 |
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 |
setHostname(String value)
public MysqlProfile.Builder setHostname(String value)
Required. Hostname for the MySQL connection.
string hostname = 1;
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for hostname 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 |
setSslConfig(MysqlSslConfig value)
public MysqlProfile.Builder setSslConfig(MysqlSslConfig value)
SSL configuration for the MySQL connection.
.google.events.cloud.datastream.v1.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.events.cloud.datastream.v1.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 |
setUsername(String value)
public MysqlProfile.Builder setUsername(String value)
Required. Username for the MySQL connection.
string username = 3;
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for username to set. |
Returns | |
---|---|
Type | Description |
MysqlProfile.Builder |
This builder for chaining. |