Class ServerTlsPolicy.MTLSPolicy.Builder (0.94.0)

public static final class ServerTlsPolicy.MTLSPolicy.Builder extends GeneratedMessage.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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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()

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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

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()

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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

clearClientValidationMode()

public ServerTlsPolicy.MTLSPolicy.Builder clearClientValidationMode()

When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_mode specifies how the client connection is handled.

Required if the policy is to be used with the Application Load Balancers. For Traffic Director it must be empty.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2;

Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

This builder for chaining.

clearClientValidationTrustConfig()

public ServerTlsPolicy.MTLSPolicy.Builder clearClientValidationTrustConfig()

Reference to the TrustConfig from certificatemanager.googleapis.com namespace.

If specified, the chain validation will be performed against certificates configured in the given TrustConfig.

Allowed only if the policy is to be used with Application Load Balancers.

string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

This builder for chaining.

getClientValidationCa(int index)

public ValidationCA getClientValidationCa(int index)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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()

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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()

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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()

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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()

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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>

getClientValidationMode()

public ServerTlsPolicy.MTLSPolicy.ClientValidationMode getClientValidationMode()

When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_mode specifies how the client connection is handled.

Required if the policy is to be used with the Application Load Balancers. For Traffic Director it must be empty.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2;

Returns
Type Description
ServerTlsPolicy.MTLSPolicy.ClientValidationMode

The clientValidationMode.

getClientValidationModeValue()

public int getClientValidationModeValue()

When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_mode specifies how the client connection is handled.

Required if the policy is to be used with the Application Load Balancers. For Traffic Director it must be empty.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2;

Returns
Type Description
int

The enum numeric value on the wire for clientValidationMode.

getClientValidationTrustConfig()

public String getClientValidationTrustConfig()

Reference to the TrustConfig from certificatemanager.googleapis.com namespace.

If specified, the chain validation will be performed against certificates configured in the given TrustConfig.

Allowed only if the policy is to be used with Application Load Balancers.

string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The clientValidationTrustConfig.

getClientValidationTrustConfigBytes()

public ByteString getClientValidationTrustConfigBytes()

Reference to the TrustConfig from certificatemanager.googleapis.com namespace.

If specified, the chain validation will be performed against certificates configured in the given TrustConfig.

Allowed only if the policy is to be used with Application Load Balancers.

string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for clientValidationTrustConfig.

getDefaultInstanceForType()

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

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessage.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

removeClientValidationCa(int index)

public ServerTlsPolicy.MTLSPolicy.Builder removeClientValidationCa(int index)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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)

Required if the policy is to be used with Traffic Director. For Application Load Balancers it must be empty.

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

setClientValidationMode(ServerTlsPolicy.MTLSPolicy.ClientValidationMode value)

public ServerTlsPolicy.MTLSPolicy.Builder setClientValidationMode(ServerTlsPolicy.MTLSPolicy.ClientValidationMode value)

When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_mode specifies how the client connection is handled.

Required if the policy is to be used with the Application Load Balancers. For Traffic Director it must be empty.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2;

Parameter
Name Description
value ServerTlsPolicy.MTLSPolicy.ClientValidationMode

The clientValidationMode to set.

Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

This builder for chaining.

setClientValidationModeValue(int value)

public ServerTlsPolicy.MTLSPolicy.Builder setClientValidationModeValue(int value)

When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_mode specifies how the client connection is handled.

Required if the policy is to be used with the Application Load Balancers. For Traffic Director it must be empty.

.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.ClientValidationMode client_validation_mode = 2;

Parameter
Name Description
value int

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

Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

This builder for chaining.

setClientValidationTrustConfig(String value)

public ServerTlsPolicy.MTLSPolicy.Builder setClientValidationTrustConfig(String value)

Reference to the TrustConfig from certificatemanager.googleapis.com namespace.

If specified, the chain validation will be performed against certificates configured in the given TrustConfig.

Allowed only if the policy is to be used with Application Load Balancers.

string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The clientValidationTrustConfig to set.

Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

This builder for chaining.

setClientValidationTrustConfigBytes(ByteString value)

public ServerTlsPolicy.MTLSPolicy.Builder setClientValidationTrustConfigBytes(ByteString value)

Reference to the TrustConfig from certificatemanager.googleapis.com namespace.

If specified, the chain validation will be performed against certificates configured in the given TrustConfig.

Allowed only if the policy is to be used with Application Load Balancers.

string client_validation_trust_config = 4 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for clientValidationTrustConfig to set.

Returns
Type Description
ServerTlsPolicy.MTLSPolicy.Builder

This builder for chaining.