Class SslConfig.Builder (0.29.0)

public static final class SslConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SslConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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