Class ServerTlsPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.Builder>
com.google.cloud.networksecurity.v1.ServerTlsPolicy.Builder
All Implemented Interfaces:
ServerTlsPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ServerTlsPolicy

public static final class ServerTlsPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.Builder> implements ServerTlsPolicyOrBuilder
 ServerTlsPolicy is a resource that specifies how a server should authenticate
 incoming requests. This resource itself does not affect configuration unless
 it is attached to a target HTTPS proxy or endpoint config selector resource.

 ServerTlsPolicy in the form accepted by Application Load Balancers can
 be attached only to TargetHttpsProxy with an `EXTERNAL`, `EXTERNAL_MANAGED`
 or `INTERNAL_MANAGED` load balancing scheme. Traffic Director compatible
 ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with
 Traffic Director `INTERNAL_SELF_MANAGED` load balancing scheme.
 
Protobuf type google.cloud.networksecurity.v1.ServerTlsPolicy
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.Builder>
    • internalGetFieldAccessorTable

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

      public ServerTlsPolicy.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.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.Builder>
    • getDefaultInstanceForType

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

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

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

      public ServerTlsPolicy.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.Builder>
    • mergeFrom

      public ServerTlsPolicy.Builder mergeFrom(ServerTlsPolicy other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ServerTlsPolicy.Builder>
    • mergeFrom

      public ServerTlsPolicy.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.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Name of the ServerTlsPolicy resource. It matches the pattern
       `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface ServerTlsPolicyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Name of the ServerTlsPolicy resource. It matches the pattern
       `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface ServerTlsPolicyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ServerTlsPolicy.Builder setName(String value)
       Required. Name of the ServerTlsPolicy resource. It matches the pattern
       `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ServerTlsPolicy.Builder clearName()
       Required. Name of the ServerTlsPolicy resource. It matches the pattern
       `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ServerTlsPolicy.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Name of the ServerTlsPolicy resource. It matches the pattern
       `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Free-text description of the resource.
       
      string description = 2;
      Specified by:
      getDescription in interface ServerTlsPolicyOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Free-text description of the resource.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface ServerTlsPolicyOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public ServerTlsPolicy.Builder setDescription(String value)
       Free-text description of the resource.
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public ServerTlsPolicy.Builder clearDescription()
       Free-text description of the resource.
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public ServerTlsPolicy.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Free-text description of the resource.
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ServerTlsPolicyOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ServerTlsPolicyOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public ServerTlsPolicy.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public ServerTlsPolicy.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public ServerTlsPolicy.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public ServerTlsPolicy.Builder clearCreateTime()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The timestamp when the resource was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ServerTlsPolicyOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ServerTlsPolicyOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ServerTlsPolicyOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public ServerTlsPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public ServerTlsPolicy.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public ServerTlsPolicy.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public ServerTlsPolicy.Builder clearUpdateTime()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The timestamp when the resource was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ServerTlsPolicyOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ServerTlsPolicyOrBuilder
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsCount in interface ServerTlsPolicyOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
      Specified by:
      containsLabels in interface ServerTlsPolicyOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ServerTlsPolicyOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsMap in interface ServerTlsPolicyOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsOrDefault in interface ServerTlsPolicyOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
      Specified by:
      getLabelsOrThrow in interface ServerTlsPolicyOrBuilder
    • clearLabels

      public ServerTlsPolicy.Builder clearLabels()
    • removeLabels

      public ServerTlsPolicy.Builder removeLabels(String key)
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public ServerTlsPolicy.Builder putLabels(String key, String value)
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
    • putAllLabels

      public ServerTlsPolicy.Builder putAllLabels(Map<String,String> values)
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
    • getAllowOpen

      public boolean getAllowOpen()
       This field applies only for Traffic Director policies. It is must be set to
       false for Application Load Balancer policies.
      
       Determines if server allows plaintext connections. If set to true, server
       allows plain text connections. By default, it is set to false. This setting
       is not exclusive of other encryption modes. For example, if `allow_open`
       and `mtls_policy` are set, server allows both plain text and mTLS
       connections. See documentation of other encryption modes to confirm
       compatibility.
      
       Consider using it if you wish to upgrade in place your deployment to TLS
       while having mixed TLS and non-TLS traffic reaching port :80.
       
      bool allow_open = 6;
      Specified by:
      getAllowOpen in interface ServerTlsPolicyOrBuilder
      Returns:
      The allowOpen.
    • setAllowOpen

      public ServerTlsPolicy.Builder setAllowOpen(boolean value)
       This field applies only for Traffic Director policies. It is must be set to
       false for Application Load Balancer policies.
      
       Determines if server allows plaintext connections. If set to true, server
       allows plain text connections. By default, it is set to false. This setting
       is not exclusive of other encryption modes. For example, if `allow_open`
       and `mtls_policy` are set, server allows both plain text and mTLS
       connections. See documentation of other encryption modes to confirm
       compatibility.
      
       Consider using it if you wish to upgrade in place your deployment to TLS
       while having mixed TLS and non-TLS traffic reaching port :80.
       
      bool allow_open = 6;
      Parameters:
      value - The allowOpen to set.
      Returns:
      This builder for chaining.
    • clearAllowOpen

      public ServerTlsPolicy.Builder clearAllowOpen()
       This field applies only for Traffic Director policies. It is must be set to
       false for Application Load Balancer policies.
      
       Determines if server allows plaintext connections. If set to true, server
       allows plain text connections. By default, it is set to false. This setting
       is not exclusive of other encryption modes. For example, if `allow_open`
       and `mtls_policy` are set, server allows both plain text and mTLS
       connections. See documentation of other encryption modes to confirm
       compatibility.
      
       Consider using it if you wish to upgrade in place your deployment to TLS
       while having mixed TLS and non-TLS traffic reaching port :80.
       
      bool allow_open = 6;
      Returns:
      This builder for chaining.
    • hasServerCertificate

      public boolean hasServerCertificate()
       Optional if policy is to be used with Traffic Director. For Application
       Load Balancers must be empty.
      
       Defines a mechanism to provision server identity (public and private keys).
       Cannot be combined with `allow_open` as a permissive mode that allows both
       plain text and TLS is not supported.
       
      .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
      Specified by:
      hasServerCertificate in interface ServerTlsPolicyOrBuilder
      Returns:
      Whether the serverCertificate field is set.
    • getServerCertificate

      public CertificateProvider getServerCertificate()
       Optional if policy is to be used with Traffic Director. For Application
       Load Balancers must be empty.
      
       Defines a mechanism to provision server identity (public and private keys).
       Cannot be combined with `allow_open` as a permissive mode that allows both
       plain text and TLS is not supported.
       
      .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
      Specified by:
      getServerCertificate in interface ServerTlsPolicyOrBuilder
      Returns:
      The serverCertificate.
    • setServerCertificate

      public ServerTlsPolicy.Builder setServerCertificate(CertificateProvider value)
       Optional if policy is to be used with Traffic Director. For Application
       Load Balancers must be empty.
      
       Defines a mechanism to provision server identity (public and private keys).
       Cannot be combined with `allow_open` as a permissive mode that allows both
       plain text and TLS is not supported.
       
      .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
    • setServerCertificate

      public ServerTlsPolicy.Builder setServerCertificate(CertificateProvider.Builder builderForValue)
       Optional if policy is to be used with Traffic Director. For Application
       Load Balancers must be empty.
      
       Defines a mechanism to provision server identity (public and private keys).
       Cannot be combined with `allow_open` as a permissive mode that allows both
       plain text and TLS is not supported.
       
      .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
    • mergeServerCertificate

      public ServerTlsPolicy.Builder mergeServerCertificate(CertificateProvider value)
       Optional if policy is to be used with Traffic Director. For Application
       Load Balancers must be empty.
      
       Defines a mechanism to provision server identity (public and private keys).
       Cannot be combined with `allow_open` as a permissive mode that allows both
       plain text and TLS is not supported.
       
      .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
    • clearServerCertificate

      public ServerTlsPolicy.Builder clearServerCertificate()
       Optional if policy is to be used with Traffic Director. For Application
       Load Balancers must be empty.
      
       Defines a mechanism to provision server identity (public and private keys).
       Cannot be combined with `allow_open` as a permissive mode that allows both
       plain text and TLS is not supported.
       
      .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
    • getServerCertificateBuilder

      public CertificateProvider.Builder getServerCertificateBuilder()
       Optional if policy is to be used with Traffic Director. For Application
       Load Balancers must be empty.
      
       Defines a mechanism to provision server identity (public and private keys).
       Cannot be combined with `allow_open` as a permissive mode that allows both
       plain text and TLS is not supported.
       
      .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
    • getServerCertificateOrBuilder

      public CertificateProviderOrBuilder getServerCertificateOrBuilder()
       Optional if policy is to be used with Traffic Director. For Application
       Load Balancers must be empty.
      
       Defines a mechanism to provision server identity (public and private keys).
       Cannot be combined with `allow_open` as a permissive mode that allows both
       plain text and TLS is not supported.
       
      .google.cloud.networksecurity.v1.CertificateProvider server_certificate = 7;
      Specified by:
      getServerCertificateOrBuilder in interface ServerTlsPolicyOrBuilder
    • hasMtlsPolicy

      public boolean hasMtlsPolicy()
       This field is required if the policy is used with Application Load
       Balancers. This field can be empty for Traffic Director.
      
       Defines a mechanism to provision peer validation certificates for peer to
       peer authentication (Mutual TLS - mTLS). If not specified, client
       certificate will not be requested. The connection is treated as TLS and not
       mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain
       text and mTLS connections.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
      Specified by:
      hasMtlsPolicy in interface ServerTlsPolicyOrBuilder
      Returns:
      Whether the mtlsPolicy field is set.
    • getMtlsPolicy

      public ServerTlsPolicy.MTLSPolicy getMtlsPolicy()
       This field is required if the policy is used with Application Load
       Balancers. This field can be empty for Traffic Director.
      
       Defines a mechanism to provision peer validation certificates for peer to
       peer authentication (Mutual TLS - mTLS). If not specified, client
       certificate will not be requested. The connection is treated as TLS and not
       mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain
       text and mTLS connections.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
      Specified by:
      getMtlsPolicy in interface ServerTlsPolicyOrBuilder
      Returns:
      The mtlsPolicy.
    • setMtlsPolicy

       This field is required if the policy is used with Application Load
       Balancers. This field can be empty for Traffic Director.
      
       Defines a mechanism to provision peer validation certificates for peer to
       peer authentication (Mutual TLS - mTLS). If not specified, client
       certificate will not be requested. The connection is treated as TLS and not
       mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain
       text and mTLS connections.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
    • setMtlsPolicy

      public ServerTlsPolicy.Builder setMtlsPolicy(ServerTlsPolicy.MTLSPolicy.Builder builderForValue)
       This field is required if the policy is used with Application Load
       Balancers. This field can be empty for Traffic Director.
      
       Defines a mechanism to provision peer validation certificates for peer to
       peer authentication (Mutual TLS - mTLS). If not specified, client
       certificate will not be requested. The connection is treated as TLS and not
       mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain
       text and mTLS connections.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
    • mergeMtlsPolicy

      public ServerTlsPolicy.Builder mergeMtlsPolicy(ServerTlsPolicy.MTLSPolicy value)
       This field is required if the policy is used with Application Load
       Balancers. This field can be empty for Traffic Director.
      
       Defines a mechanism to provision peer validation certificates for peer to
       peer authentication (Mutual TLS - mTLS). If not specified, client
       certificate will not be requested. The connection is treated as TLS and not
       mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain
       text and mTLS connections.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
    • clearMtlsPolicy

      public ServerTlsPolicy.Builder clearMtlsPolicy()
       This field is required if the policy is used with Application Load
       Balancers. This field can be empty for Traffic Director.
      
       Defines a mechanism to provision peer validation certificates for peer to
       peer authentication (Mutual TLS - mTLS). If not specified, client
       certificate will not be requested. The connection is treated as TLS and not
       mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain
       text and mTLS connections.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
    • getMtlsPolicyBuilder

      public ServerTlsPolicy.MTLSPolicy.Builder getMtlsPolicyBuilder()
       This field is required if the policy is used with Application Load
       Balancers. This field can be empty for Traffic Director.
      
       Defines a mechanism to provision peer validation certificates for peer to
       peer authentication (Mutual TLS - mTLS). If not specified, client
       certificate will not be requested. The connection is treated as TLS and not
       mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain
       text and mTLS connections.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
    • getMtlsPolicyOrBuilder

      public ServerTlsPolicy.MTLSPolicyOrBuilder getMtlsPolicyOrBuilder()
       This field is required if the policy is used with Application Load
       Balancers. This field can be empty for Traffic Director.
      
       Defines a mechanism to provision peer validation certificates for peer to
       peer authentication (Mutual TLS - mTLS). If not specified, client
       certificate will not be requested. The connection is treated as TLS and not
       mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain
       text and mTLS connections.
       
      .google.cloud.networksecurity.v1.ServerTlsPolicy.MTLSPolicy mtls_policy = 8;
      Specified by:
      getMtlsPolicyOrBuilder in interface ServerTlsPolicyOrBuilder