Class ServerTlsPolicy.MTLSPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
com.google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy.Builder
- All Implemented Interfaces:
ServerTlsPolicy.MTLSPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ServerTlsPolicy.MTLSPolicy
public static final class ServerTlsPolicy.MTLSPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
implements ServerTlsPolicy.MTLSPolicyOrBuilder
Specification of the MTLSPolicy.Protobuf type
google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllClientValidationCa(Iterable<? extends ValidationCA> values) Required if the policy is to be used with Traffic Director.addClientValidationCa(int index, ValidationCA value) Required if the policy is to be used with Traffic Director.addClientValidationCa(int index, ValidationCA.Builder builderForValue) Required if the policy is to be used with Traffic Director.Required if the policy is to be used with Traffic Director.addClientValidationCa(ValidationCA.Builder builderForValue) Required if the policy is to be used with Traffic Director.Required if the policy is to be used with Traffic Director.addClientValidationCaBuilder(int index) Required if the policy is to be used with Traffic Director.build()clear()Required if the policy is to be used with Traffic Director.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.Reference to the TrustConfig from certificatemanager.googleapis.com namespace.getClientValidationCa(int index) Required if the policy is to be used with Traffic Director.getClientValidationCaBuilder(int index) Required if the policy is to be used with Traffic Director.Required if the policy is to be used with Traffic Director.intRequired if the policy is to be used with Traffic Director.Required if the policy is to be used with Traffic Director.getClientValidationCaOrBuilder(int index) Required if the policy is to be used with Traffic Director.List<? extends ValidationCAOrBuilder>Required if the policy is to be used with Traffic Director.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.intWhen the client presents an invalid certificate or no certificate to the load balancer, the `client_validation_mode` specifies how the client connection is handled.Reference to the TrustConfig from certificatemanager.googleapis.com namespace.com.google.protobuf.ByteStringReference to the TrustConfig from certificatemanager.googleapis.com namespace.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeClientValidationCa(int index) Required if the policy is to be used with Traffic Director.setClientValidationCa(int index, ValidationCA value) Required if the policy is to be used with Traffic Director.setClientValidationCa(int index, ValidationCA.Builder builderForValue) Required if the policy is to be used with Traffic Director.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.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.Reference to the TrustConfig from certificatemanager.googleapis.com namespace.setClientValidationTrustConfigBytes(com.google.protobuf.ByteString value) Reference to the TrustConfig from certificatemanager.googleapis.com namespace.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
-
mergeFrom
public ServerTlsPolicy.MTLSPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>- Throws:
IOException
-
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;- Specified by:
getClientValidationModeValuein interfaceServerTlsPolicy.MTLSPolicyOrBuilder- Returns:
- The enum numeric value on the wire for clientValidationMode.
-
setClientValidationModeValue
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;- Parameters:
value- The enum numeric value on the wire for clientValidationMode to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getClientValidationModein interfaceServerTlsPolicy.MTLSPolicyOrBuilder- Returns:
- The clientValidationMode.
-
setClientValidationMode
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;- Parameters:
value- The clientValidationMode to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getClientValidationCaListin interfaceServerTlsPolicy.MTLSPolicyOrBuilder
-
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;- Specified by:
getClientValidationCaCountin interfaceServerTlsPolicy.MTLSPolicyOrBuilder
-
getClientValidationCa
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;- Specified by:
getClientValidationCain interfaceServerTlsPolicy.MTLSPolicyOrBuilder
-
setClientValidationCa
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; -
setClientValidationCa
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; -
addClientValidationCa
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; -
addClientValidationCa
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; -
addClientValidationCa
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; -
addClientValidationCa
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; -
addAllClientValidationCa
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; -
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; -
removeClientValidationCa
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; -
getClientValidationCaBuilder
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; -
getClientValidationCaOrBuilder
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;- Specified by:
getClientValidationCaOrBuilderin interfaceServerTlsPolicy.MTLSPolicyOrBuilder
-
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;- Specified by:
getClientValidationCaOrBuilderListin interfaceServerTlsPolicy.MTLSPolicyOrBuilder
-
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; -
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; -
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; -
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) = { ... }- Specified by:
getClientValidationTrustConfigin interfaceServerTlsPolicy.MTLSPolicyOrBuilder- Returns:
- The clientValidationTrustConfig.
-
getClientValidationTrustConfigBytes
public com.google.protobuf.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) = { ... }- Specified by:
getClientValidationTrustConfigBytesin interfaceServerTlsPolicy.MTLSPolicyOrBuilder- Returns:
- The bytes for clientValidationTrustConfig.
-
setClientValidationTrustConfig
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) = { ... }- Parameters:
value- The clientValidationTrustConfig to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setClientValidationTrustConfigBytes
public ServerTlsPolicy.MTLSPolicy.Builder setClientValidationTrustConfigBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for clientValidationTrustConfig to set.- Returns:
- This builder for chaining.
-