Class ServerTlsPolicy.MTLSPolicy.Builder (0.52.0)

public static final class ServerTlsPolicy.MTLSPolicy.Builder extends GeneratedMessageV3.Builder<ServerTlsPolicy.MTLSPolicy.Builder> implements ServerTlsPolicy.MTLSPolicyOrBuilder

Specification of the MTLSPolicy.

Protobuf type google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy

Static Methods

getDescriptor()

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

Methods

addAllClientValidationCa(Iterable<? extends ValidationCA> values)

public ServerTlsPolicy.MTLSPolicy.Builder addAllClientValidationCa(Iterable<? extends ValidationCA> values)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.networksecurity.v1.ValidationCA>
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

addClientValidationCa(ValidationCA value)

public ServerTlsPolicy.MTLSPolicy.Builder addClientValidationCa(ValidationCA value)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameter
Name Description
value ValidationCA
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

addClientValidationCa(ValidationCA.Builder builderForValue)

public ServerTlsPolicy.MTLSPolicy.Builder addClientValidationCa(ValidationCA.Builder builderForValue)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameter
Name Description
builderForValue ValidationCA.Builder
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

addClientValidationCa(int index, ValidationCA value)

public ServerTlsPolicy.MTLSPolicy.Builder addClientValidationCa(int index, ValidationCA value)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameters
Name Description
index int
value ValidationCA
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

addClientValidationCa(int index, ValidationCA.Builder builderForValue)

public ServerTlsPolicy.MTLSPolicy.Builder addClientValidationCa(int index, ValidationCA.Builder builderForValue)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameters
Name Description
index int
builderForValue ValidationCA.Builder
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

addClientValidationCaBuilder()

public ValidationCA.Builder addClientValidationCaBuilder()

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Returns
Type Description
ValidationCA.Builder

addClientValidationCaBuilder(int index)

public ValidationCA.Builder addClientValidationCaBuilder(int index)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameter
Name Description
index int
Returns
Type Description
ValidationCA.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServerTlsPolicy.MTLSPolicy build()
Returns
Type Description
ServerTlsPolicy.MTLSPolicy

buildPartial()

public ServerTlsPolicy.MTLSPolicy buildPartial()
Returns
Type Description
ServerTlsPolicy.MTLSPolicy

clear()

public ServerTlsPolicy.MTLSPolicy.Builder clear()
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder
Overrides

clearClientValidationCa()

public ServerTlsPolicy.MTLSPolicy.Builder clearClientValidationCa()

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ServerTlsPolicy.MTLSPolicy.Builder clone()
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder
Overrides

getClientValidationCa(int index)

public ValidationCA getClientValidationCa(int index)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameter
Name Description
index int
Returns
Type Description
ValidationCA

getClientValidationCaBuilder(int index)

public ValidationCA.Builder getClientValidationCaBuilder(int index)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameter
Name Description
index int
Returns
Type Description
ValidationCA.Builder

getClientValidationCaBuilderList()

public List<ValidationCA.Builder> getClientValidationCaBuilderList()

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Returns
Type Description
List<Builder>

getClientValidationCaCount()

public int getClientValidationCaCount()

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Returns
Type Description
int

getClientValidationCaList()

public List<ValidationCA> getClientValidationCaList()

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Returns
Type Description
List<ValidationCA>

getClientValidationCaOrBuilder(int index)

public ValidationCAOrBuilder getClientValidationCaOrBuilder(int index)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameter
Name Description
index int
Returns
Type Description
ValidationCAOrBuilder

getClientValidationCaOrBuilderList()

public List<? extends ValidationCAOrBuilder> getClientValidationCaOrBuilderList()

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.ValidationCAOrBuilder>

getDefaultInstanceForType()

public ServerTlsPolicy.MTLSPolicy getDefaultInstanceForType()
Returns
Type Description
ServerTlsPolicy.MTLSPolicy

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServerTlsPolicy.MTLSPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeClientValidationCa(int index)

public ServerTlsPolicy.MTLSPolicy.Builder removeClientValidationCa(int index)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameter
Name Description
index int
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

setClientValidationCa(int index, ValidationCA value)

public ServerTlsPolicy.MTLSPolicy.Builder setClientValidationCa(int index, ValidationCA value)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameters
Name Description
index int
value ValidationCA
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

setClientValidationCa(int index, ValidationCA.Builder builderForValue)

public ServerTlsPolicy.MTLSPolicy.Builder setClientValidationCa(int index, ValidationCA.Builder builderForValue)

Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.

repeated .google.cloud.networksecurity.v1.ValidationCA client_validation_ca = 1;

Parameters
Name Description
index int
builderForValue ValidationCA.Builder
Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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