Interface ServerTlsPolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ServerTlsPolicy, ServerTlsPolicy.Builder

@Generated public interface ServerTlsPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      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];
      Returns:
      The name.
    • getNameBytes

      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];
      Returns:
      The bytes for name.
    • getDescription

      String getDescription()
       Free-text description of the resource.
       
      string description = 2;
      Returns:
      The description.
    • getDescriptionBytes

      com.google.protobuf.ByteString getDescriptionBytes()
       Free-text description of the resource.
       
      string description = 2;
      Returns:
      The bytes for description.
    • hasCreateTime

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

      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];
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

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

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

      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];
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

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

      int getLabelsCount()
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
    • containsLabels

      boolean containsLabels(String key)
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
    • getLabels

      Deprecated.
      Use getLabelsMap() instead.
    • getLabelsMap

      Map<String,String> getLabelsMap()
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
    • getLabelsOrDefault

      String getLabelsOrDefault(String key, String defaultValue)
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
    • getLabelsOrThrow

      String getLabelsOrThrow(String key)
       Set of label tags associated with the resource.
       
      map<string, string> labels = 5;
    • getAllowOpen

      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;
      Returns:
      The allowOpen.
    • hasServerCertificate

      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;
      Returns:
      Whether the serverCertificate field is set.
    • getServerCertificate

      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;
      Returns:
      The serverCertificate.
    • getServerCertificateOrBuilder

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

      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;
      Returns:
      Whether the mtlsPolicy field is set.
    • 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;
      Returns:
      The mtlsPolicy.
    • getMtlsPolicyOrBuilder

      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;