Class SslConfig.Builder (0.72.0)

public static final class SslConfig.Builder extends GeneratedMessage.Builder<SslConfig.Builder> implements SslConfigOrBuilder

SSL configuration.

Protobuf type google.cloud.alloydb.v1beta.SslConfig

Implements

SslConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public SslConfig build()
Returns
Type Description
SslConfig

buildPartial()

public SslConfig buildPartial()
Returns
Type Description
SslConfig

clear()

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

clearCaSource()

public SslConfig.Builder clearCaSource()

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.

.google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SslConfig.Builder

This builder for chaining.

clearSslMode()

public SslConfig.Builder clearSslMode()

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.

.google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SslConfig.Builder

This builder for chaining.

getCaSource()

public SslConfig.CaSource getCaSource()

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.

.google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SslConfig.CaSource

The caSource.

getCaSourceValue()

public int getCaSourceValue()

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.

.google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for caSource.

getDefaultInstanceForType()

public SslConfig getDefaultInstanceForType()
Returns
Type Description
SslConfig

getDescriptorForType()

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

getSslMode()

public SslConfig.SslMode getSslMode()

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.

.google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SslConfig.SslMode

The sslMode.

getSslModeValue()

public int getSslModeValue()

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.

.google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for sslMode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SslConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCaSource(SslConfig.CaSource value)

public SslConfig.Builder setCaSource(SslConfig.CaSource value)

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.

.google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SslConfig.CaSource

The caSource to set.

Returns
Type Description
SslConfig.Builder

This builder for chaining.

setCaSourceValue(int value)

public SslConfig.Builder setCaSourceValue(int value)

Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value.

.google.cloud.alloydb.v1beta.SslConfig.CaSource ca_source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for caSource to set.

Returns
Type Description
SslConfig.Builder

This builder for chaining.

setSslMode(SslConfig.SslMode value)

public SslConfig.Builder setSslMode(SslConfig.SslMode value)

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.

.google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SslConfig.SslMode

The sslMode to set.

Returns
Type Description
SslConfig.Builder

This builder for chaining.

setSslModeValue(int value)

public SslConfig.Builder setSslModeValue(int value)

Optional. SSL mode. Specifies client-server SSL/TLS connection behavior.

.google.cloud.alloydb.v1beta.SslConfig.SslMode ssl_mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for sslMode to set.

Returns
Type Description
SslConfig.Builder

This builder for chaining.