Package com.google.cloud.datastream.v1
Class MysqlProfile.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
- com.google.cloud.datastream.v1.MysqlProfile.Builder
-
- All Implemented Interfaces:
MysqlProfileOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- MysqlProfile
public static final class MysqlProfile.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder> implements MysqlProfileOrBuilder
MySQL database profile.
Protobuf typegoogle.cloud.datastream.v1.MysqlProfile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MysqlProfile.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MysqlProfile
build()
MysqlProfile
buildPartial()
MysqlProfile.Builder
clear()
MysqlProfile.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MysqlProfile.Builder
clearHostname()
Required.MysqlProfile.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MysqlProfile.Builder
clearPassword()
Required.MysqlProfile.Builder
clearPort()
Port for the MySQL connection, default value is 3306.MysqlProfile.Builder
clearSslConfig()
SSL configuration for the MySQL connection.MysqlProfile.Builder
clearUsername()
Required.MysqlProfile.Builder
clone()
MysqlProfile
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getHostname()
Required.com.google.protobuf.ByteString
getHostnameBytes()
Required.String
getPassword()
Required.com.google.protobuf.ByteString
getPasswordBytes()
Required.int
getPort()
Port for the MySQL connection, default value is 3306.MysqlSslConfig
getSslConfig()
SSL configuration for the MySQL connection.MysqlSslConfig.Builder
getSslConfigBuilder()
SSL configuration for the MySQL connection.MysqlSslConfigOrBuilder
getSslConfigOrBuilder()
SSL configuration for the MySQL connection.String
getUsername()
Required.com.google.protobuf.ByteString
getUsernameBytes()
Required.boolean
hasSslConfig()
SSL configuration for the MySQL connection.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MysqlProfile.Builder
mergeFrom(MysqlProfile other)
MysqlProfile.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MysqlProfile.Builder
mergeFrom(com.google.protobuf.Message other)
MysqlProfile.Builder
mergeSslConfig(MysqlSslConfig value)
SSL configuration for the MySQL connection.MysqlProfile.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MysqlProfile.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MysqlProfile.Builder
setHostname(String value)
Required.MysqlProfile.Builder
setHostnameBytes(com.google.protobuf.ByteString value)
Required.MysqlProfile.Builder
setPassword(String value)
Required.MysqlProfile.Builder
setPasswordBytes(com.google.protobuf.ByteString value)
Required.MysqlProfile.Builder
setPort(int value)
Port for the MySQL connection, default value is 3306.MysqlProfile.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MysqlProfile.Builder
setSslConfig(MysqlSslConfig value)
SSL configuration for the MySQL connection.MysqlProfile.Builder
setSslConfig(MysqlSslConfig.Builder builderForValue)
SSL configuration for the MySQL connection.MysqlProfile.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MysqlProfile.Builder
setUsername(String value)
Required.MysqlProfile.Builder
setUsernameBytes(com.google.protobuf.ByteString value)
Required.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
clear
public MysqlProfile.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
getDefaultInstanceForType
public MysqlProfile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MysqlProfile build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MysqlProfile buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MysqlProfile.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
setField
public MysqlProfile.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
clearField
public MysqlProfile.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
clearOneof
public MysqlProfile.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
setRepeatedField
public MysqlProfile.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
addRepeatedField
public MysqlProfile.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
mergeFrom
public MysqlProfile.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MysqlProfile.Builder>
-
mergeFrom
public MysqlProfile.Builder mergeFrom(MysqlProfile other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
mergeFrom
public MysqlProfile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MysqlProfile.Builder>
- Throws:
IOException
-
getHostname
public String getHostname()
Required. Hostname for the MySQL connection.
string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getHostname
in interfaceMysqlProfileOrBuilder
- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
Required. Hostname for the MySQL connection.
string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getHostnameBytes
in interfaceMysqlProfileOrBuilder
- Returns:
- The bytes for hostname.
-
setHostname
public MysqlProfile.Builder setHostname(String value)
Required. Hostname for the MySQL connection.
string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
public MysqlProfile.Builder clearHostname()
Required. Hostname for the MySQL connection.
string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setHostnameBytes
public MysqlProfile.Builder setHostnameBytes(com.google.protobuf.ByteString value)
Required. Hostname for the MySQL connection.
string hostname = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
getPort
public int getPort()
Port for the MySQL connection, default value is 3306.
int32 port = 2;
- Specified by:
getPort
in interfaceMysqlProfileOrBuilder
- Returns:
- The port.
-
setPort
public MysqlProfile.Builder setPort(int value)
Port for the MySQL connection, default value is 3306.
int32 port = 2;
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public MysqlProfile.Builder clearPort()
Port for the MySQL connection, default value is 3306.
int32 port = 2;
- Returns:
- This builder for chaining.
-
getUsername
public String getUsername()
Required. Username for the MySQL connection.
string username = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getUsername
in interfaceMysqlProfileOrBuilder
- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()
Required. Username for the MySQL connection.
string username = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getUsernameBytes
in interfaceMysqlProfileOrBuilder
- Returns:
- The bytes for username.
-
setUsername
public MysqlProfile.Builder setUsername(String value)
Required. Username for the MySQL connection.
string username = 3 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The username to set.- Returns:
- This builder for chaining.
-
clearUsername
public MysqlProfile.Builder clearUsername()
Required. Username for the MySQL connection.
string username = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setUsernameBytes
public MysqlProfile.Builder setUsernameBytes(com.google.protobuf.ByteString value)
Required. Username for the MySQL connection.
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. Password for the MySQL connection.
string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getPassword
in interfaceMysqlProfileOrBuilder
- Returns:
- The password.
-
getPasswordBytes
public com.google.protobuf.ByteString getPasswordBytes()
Required. Input only. Password for the MySQL connection.
string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getPasswordBytes
in interfaceMysqlProfileOrBuilder
- Returns:
- The bytes for password.
-
setPassword
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];
- Parameters:
value
- The password to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPasswordBytes
public MysqlProfile.Builder setPasswordBytes(com.google.protobuf.ByteString value)
Required. Input only. Password for the MySQL connection.
string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The bytes for password to set.- Returns:
- This builder for chaining.
-
hasSslConfig
public boolean hasSslConfig()
SSL configuration for the MySQL connection.
.google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
- Specified by:
hasSslConfig
in interfaceMysqlProfileOrBuilder
- Returns:
- Whether the sslConfig field is set.
-
getSslConfig
public MysqlSslConfig getSslConfig()
SSL configuration for the MySQL connection.
.google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
- Specified by:
getSslConfig
in interfaceMysqlProfileOrBuilder
- Returns:
- The sslConfig.
-
setSslConfig
public MysqlProfile.Builder setSslConfig(MysqlSslConfig value)
SSL configuration for the MySQL connection.
.google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
-
setSslConfig
public MysqlProfile.Builder setSslConfig(MysqlSslConfig.Builder builderForValue)
SSL configuration for the MySQL connection.
.google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
-
mergeSslConfig
public MysqlProfile.Builder mergeSslConfig(MysqlSslConfig value)
SSL configuration for the MySQL connection.
.google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
-
clearSslConfig
public MysqlProfile.Builder clearSslConfig()
SSL configuration for the MySQL connection.
.google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
-
getSslConfigBuilder
public MysqlSslConfig.Builder getSslConfigBuilder()
SSL configuration for the MySQL connection.
.google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
-
getSslConfigOrBuilder
public MysqlSslConfigOrBuilder getSslConfigOrBuilder()
SSL configuration for the MySQL connection.
.google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5;
- Specified by:
getSslConfigOrBuilder
in interfaceMysqlProfileOrBuilder
-
setUnknownFields
public final MysqlProfile.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
mergeUnknownFields
public final MysqlProfile.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlProfile.Builder>
-
-