Class MongodbSslConfig.Builder (1.71.0)

public static final class MongodbSslConfig.Builder extends GeneratedMessageV3.Builder<MongodbSslConfig.Builder> implements MongodbSslConfigOrBuilder

MongoDB SSL configuration information.

Protobuf type google.cloud.datastream.v1.MongodbSslConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MongodbSslConfig build()
Returns
Type Description
MongodbSslConfig

buildPartial()

public MongodbSslConfig buildPartial()
Returns
Type Description
MongodbSslConfig

clear()

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

clearCaCertificate()

public MongodbSslConfig.Builder clearCaCertificate()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

clearCaCertificateSet()

public MongodbSslConfig.Builder clearCaCertificateSet()

Output only. Indicates whether the ca_certificate field is set.

bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

clearClientCertificate()

public MongodbSslConfig.Builder clearClientCertificate()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

clearClientCertificateSet()

public MongodbSslConfig.Builder clearClientCertificateSet()

Output only. Indicates whether the client_certificate field is set.

bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

clearClientKey()

public MongodbSslConfig.Builder clearClientKey()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

clearClientKeySet()

public MongodbSslConfig.Builder clearClientKeySet()

Output only. Indicates whether the client_key field is set.

bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecretManagerStoredClientKey()

public MongodbSslConfig.Builder clearSecretManagerStoredClientKey()

Optional. Input only. A reference to a Secret Manager resource name storing the 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. Mutually exclusive with the client_key field.

string secret_manager_stored_client_key = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

clone()

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

getCaCertificate()

public String getCaCertificate()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The caCertificate.

getCaCertificateBytes()

public ByteString getCaCertificateBytes()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for caCertificate.

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

Returns
Type Description
boolean

The caCertificateSet.

getClientCertificate()

public String getClientCertificate()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The clientCertificate.

getClientCertificateBytes()

public ByteString getClientCertificateBytes()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for clientCertificate.

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

Returns
Type Description
boolean

The clientCertificateSet.

getClientKey()

public String getClientKey()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The clientKey.

getClientKeyBytes()

public ByteString getClientKeyBytes()

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for clientKey.

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

Returns
Type Description
boolean

The clientKeySet.

getDefaultInstanceForType()

public MongodbSslConfig getDefaultInstanceForType()
Returns
Type Description
MongodbSslConfig

getDescriptorForType()

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

getSecretManagerStoredClientKey()

public String getSecretManagerStoredClientKey()

Optional. Input only. A reference to a Secret Manager resource name storing the 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. Mutually exclusive with the client_key field.

string secret_manager_stored_client_key = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The secretManagerStoredClientKey.

getSecretManagerStoredClientKeyBytes()

public ByteString getSecretManagerStoredClientKeyBytes()

Optional. Input only. A reference to a Secret Manager resource name storing the 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. Mutually exclusive with the client_key field.

string secret_manager_stored_client_key = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for secretManagerStoredClientKey.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MongodbSslConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCaCertificate(String value)

public MongodbSslConfig.Builder setCaCertificate(String value)

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The caCertificate to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setCaCertificateBytes(ByteString value)

public MongodbSslConfig.Builder setCaCertificateBytes(ByteString value)

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for caCertificate to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setCaCertificateSet(boolean value)

public MongodbSslConfig.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];

Parameter
Name Description
value boolean

The caCertificateSet to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setClientCertificate(String value)

public MongodbSslConfig.Builder setClientCertificate(String value)

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The clientCertificate to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setClientCertificateBytes(ByteString value)

public MongodbSslConfig.Builder setClientCertificateBytes(ByteString value)

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for clientCertificate to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setClientCertificateSet(boolean value)

public MongodbSslConfig.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];

Parameter
Name Description
value boolean

The clientCertificateSet to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setClientKey(String value)

public MongodbSslConfig.Builder setClientKey(String value)

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The clientKey to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setClientKeyBytes(ByteString value)

public MongodbSslConfig.Builder setClientKeyBytes(ByteString value)

Optional. 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, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for clientKey to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setClientKeySet(boolean value)

public MongodbSslConfig.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];

Parameter
Name Description
value boolean

The clientKeySet to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSecretManagerStoredClientKey(String value)

public MongodbSslConfig.Builder setSecretManagerStoredClientKey(String value)

Optional. Input only. A reference to a Secret Manager resource name storing the 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. Mutually exclusive with the client_key field.

string secret_manager_stored_client_key = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The secretManagerStoredClientKey to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setSecretManagerStoredClientKeyBytes(ByteString value)

public MongodbSslConfig.Builder setSecretManagerStoredClientKeyBytes(ByteString value)

Optional. Input only. A reference to a Secret Manager resource name storing the 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. Mutually exclusive with the client_key field.

string secret_manager_stored_client_key = 7 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for secretManagerStoredClientKey to set.

Returns
Type Description
MongodbSslConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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