Package com.google.cloud.datastream.v1
Class MysqlSslConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
- com.google.cloud.datastream.v1.MysqlSslConfig.Builder
-
- All Implemented Interfaces:
MysqlSslConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- MysqlSslConfig
public static final class MysqlSslConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder> implements MysqlSslConfigOrBuilder
MySQL SSL configuration information.
Protobuf typegoogle.cloud.datastream.v1.MysqlSslConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MysqlSslConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MysqlSslConfig
build()
MysqlSslConfig
buildPartial()
MysqlSslConfig.Builder
clear()
MysqlSslConfig.Builder
clearCaCertificate()
Input only.MysqlSslConfig.Builder
clearCaCertificateSet()
Output only.MysqlSslConfig.Builder
clearClientCertificate()
Input only.MysqlSslConfig.Builder
clearClientCertificateSet()
Output only.MysqlSslConfig.Builder
clearClientKey()
Input only.MysqlSslConfig.Builder
clearClientKeySet()
Output only.MysqlSslConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MysqlSslConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MysqlSslConfig.Builder
clone()
String
getCaCertificate()
Input only.com.google.protobuf.ByteString
getCaCertificateBytes()
Input only.boolean
getCaCertificateSet()
Output only.String
getClientCertificate()
Input only.com.google.protobuf.ByteString
getClientCertificateBytes()
Input only.boolean
getClientCertificateSet()
Output only.String
getClientKey()
Input only.com.google.protobuf.ByteString
getClientKeyBytes()
Input only.boolean
getClientKeySet()
Output only.MysqlSslConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MysqlSslConfig.Builder
mergeFrom(MysqlSslConfig other)
MysqlSslConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MysqlSslConfig.Builder
mergeFrom(com.google.protobuf.Message other)
MysqlSslConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MysqlSslConfig.Builder
setCaCertificate(String value)
Input only.MysqlSslConfig.Builder
setCaCertificateBytes(com.google.protobuf.ByteString value)
Input only.MysqlSslConfig.Builder
setCaCertificateSet(boolean value)
Output only.MysqlSslConfig.Builder
setClientCertificate(String value)
Input only.MysqlSslConfig.Builder
setClientCertificateBytes(com.google.protobuf.ByteString value)
Input only.MysqlSslConfig.Builder
setClientCertificateSet(boolean value)
Output only.MysqlSslConfig.Builder
setClientKey(String value)
Input only.MysqlSslConfig.Builder
setClientKeyBytes(com.google.protobuf.ByteString value)
Input only.MysqlSslConfig.Builder
setClientKeySet(boolean value)
Output only.MysqlSslConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MysqlSslConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MysqlSslConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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<MysqlSslConfig.Builder>
-
clear
public MysqlSslConfig.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<MysqlSslConfig.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<MysqlSslConfig.Builder>
-
getDefaultInstanceForType
public MysqlSslConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MysqlSslConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MysqlSslConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
setField
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
clearField
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
clearOneof
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
setRepeatedField
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
addRepeatedField
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
mergeFrom
public MysqlSslConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MysqlSslConfig.Builder>
-
mergeFrom
public MysqlSslConfig.Builder mergeFrom(MysqlSslConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
mergeFrom
public MysqlSslConfig.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<MysqlSslConfig.Builder>
- Throws:
IOException
-
getClientKey
public String getClientKey()
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getClientKey
in interfaceMysqlSslConfigOrBuilder
- Returns:
- The clientKey.
-
getClientKeyBytes
public com.google.protobuf.ByteString getClientKeyBytes()
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getClientKeyBytes
in interfaceMysqlSslConfigOrBuilder
- Returns:
- The bytes for clientKey.
-
setClientKey
public MysqlSslConfig.Builder setClientKey(String value)
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The clientKey to set.- Returns:
- This builder for chaining.
-
clearClientKey
public MysqlSslConfig.Builder clearClientKey()
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
- Returns:
- This builder for chaining.
-
setClientKeyBytes
public MysqlSslConfig.Builder setClientKeyBytes(com.google.protobuf.ByteString value)
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The bytes for clientKey to set.- Returns:
- This builder for chaining.
-
getClientKeySet
public boolean getClientKeySet()
Output only. Indicates whether the client_key field is set.
bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getClientKeySet
in interfaceMysqlSslConfigOrBuilder
- Returns:
- The clientKeySet.
-
setClientKeySet
public MysqlSslConfig.Builder setClientKeySet(boolean value)
Output only. Indicates whether the client_key field is set.
bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The clientKeySet to set.- Returns:
- This builder for chaining.
-
clearClientKeySet
public MysqlSslConfig.Builder clearClientKeySet()
Output only. Indicates whether the client_key field is set.
bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getClientCertificate
public String getClientCertificate()
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getClientCertificate
in interfaceMysqlSslConfigOrBuilder
- Returns:
- The clientCertificate.
-
getClientCertificateBytes
public com.google.protobuf.ByteString getClientCertificateBytes()
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getClientCertificateBytes
in interfaceMysqlSslConfigOrBuilder
- Returns:
- The bytes for clientCertificate.
-
setClientCertificate
public MysqlSslConfig.Builder setClientCertificate(String value)
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The clientCertificate to set.- Returns:
- This builder for chaining.
-
clearClientCertificate
public MysqlSslConfig.Builder clearClientCertificate()
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
- Returns:
- This builder for chaining.
-
setClientCertificateBytes
public MysqlSslConfig.Builder setClientCertificateBytes(com.google.protobuf.ByteString value)
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The bytes for clientCertificate to set.- Returns:
- This builder for chaining.
-
getClientCertificateSet
public boolean getClientCertificateSet()
Output only. Indicates whether the client_certificate field is set.
bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getClientCertificateSet
in interfaceMysqlSslConfigOrBuilder
- Returns:
- The clientCertificateSet.
-
setClientCertificateSet
public MysqlSslConfig.Builder setClientCertificateSet(boolean value)
Output only. Indicates whether the client_certificate field is set.
bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The clientCertificateSet to set.- Returns:
- This builder for chaining.
-
clearClientCertificateSet
public MysqlSslConfig.Builder clearClientCertificateSet()
Output only. Indicates whether the client_certificate field is set.
bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getCaCertificate
public String getCaCertificate()
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getCaCertificate
in interfaceMysqlSslConfigOrBuilder
- Returns:
- The caCertificate.
-
getCaCertificateBytes
public com.google.protobuf.ByteString getCaCertificateBytes()
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getCaCertificateBytes
in interfaceMysqlSslConfigOrBuilder
- Returns:
- The bytes for caCertificate.
-
setCaCertificate
public MysqlSslConfig.Builder setCaCertificate(String value)
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The caCertificate to set.- Returns:
- This builder for chaining.
-
clearCaCertificate
public MysqlSslConfig.Builder clearCaCertificate()
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
- Returns:
- This builder for chaining.
-
setCaCertificateBytes
public MysqlSslConfig.Builder setCaCertificateBytes(com.google.protobuf.ByteString value)
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The bytes for caCertificate to set.- Returns:
- This builder for chaining.
-
getCaCertificateSet
public boolean getCaCertificateSet()
Output only. Indicates whether the ca_certificate field is set.
bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCaCertificateSet
in interfaceMysqlSslConfigOrBuilder
- Returns:
- The caCertificateSet.
-
setCaCertificateSet
public MysqlSslConfig.Builder setCaCertificateSet(boolean value)
Output only. Indicates whether the ca_certificate field is set.
bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The caCertificateSet to set.- Returns:
- This builder for chaining.
-
clearCaCertificateSet
public MysqlSslConfig.Builder clearCaCertificateSet()
Output only. Indicates whether the ca_certificate field is set.
bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final MysqlSslConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
mergeUnknownFields
public final MysqlSslConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
-