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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
    • getDefaultInstanceForType

      public ServerTlsPolicy.MTLSPolicy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ServerTlsPolicy.MTLSPolicy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ServerTlsPolicy.MTLSPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServerTlsPolicy.MTLSPolicy.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getClientValidationModeValue in interface ServerTlsPolicy.MTLSPolicyOrBuilder
      Returns:
      The enum numeric value on the wire for clientValidationMode.
    • setClientValidationModeValue

      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;
      Parameters:
      value - The enum numeric value on the wire for clientValidationMode to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getClientValidationMode in interface ServerTlsPolicy.MTLSPolicyOrBuilder
      Returns:
      The clientValidationMode.
    • setClientValidationMode

       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

      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:
      This builder for chaining.
    • 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;
      Specified by:
      getClientValidationCaList in interface ServerTlsPolicy.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:
      getClientValidationCaCount in interface ServerTlsPolicy.MTLSPolicyOrBuilder
    • getClientValidationCa

      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;
      Specified by:
      getClientValidationCa in interface ServerTlsPolicy.MTLSPolicyOrBuilder
    • setClientValidationCa

      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;
    • 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

      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;
    • addClientValidationCa

      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;
    • 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

      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;
    • removeClientValidationCa

      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;
    • getClientValidationCaBuilder

      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;
    • getClientValidationCaOrBuilder

      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;
      Specified by:
      getClientValidationCaOrBuilder in interface ServerTlsPolicy.MTLSPolicyOrBuilder
    • 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;
      Specified by:
      getClientValidationCaOrBuilderList in interface ServerTlsPolicy.MTLSPolicyOrBuilder
    • 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;
    • addClientValidationCaBuilder

      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;
    • 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;
    • 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) = { ... }
      Specified by:
      getClientValidationTrustConfig in interface ServerTlsPolicy.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:
      getClientValidationTrustConfigBytes in interface ServerTlsPolicy.MTLSPolicyOrBuilder
      Returns:
      The bytes for clientValidationTrustConfig.
    • setClientValidationTrustConfig

      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) = { ... }
      Parameters:
      value - The clientValidationTrustConfig to set.
      Returns:
      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:
      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.