Class ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder>
com.google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder
All Implemented Interfaces:
ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ControlPlaneEndpointsConfig.DNSEndpointConfig

public static final class ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder> implements ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder
 Describes the configuration of a DNS endpoint.
 
Protobuf type google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig
  • 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<ControlPlaneEndpointsConfig.DNSEndpointConfig.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<ControlPlaneEndpointsConfig.DNSEndpointConfig.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<ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder>
    • getDefaultInstanceForType

      public ControlPlaneEndpointsConfig.DNSEndpointConfig 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

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

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

      public ControlPlaneEndpointsConfig.DNSEndpointConfig.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<ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder>
      Throws:
      IOException
    • getEndpoint

      public String getEndpoint()
       Output only. The cluster's DNS endpoint configuration.
       A DNS format address. This is accessible from the public internet.
       Ex: uid.us-central1.gke.goog.
       Always present, but the behavior may change according to the value of
       [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
       
      string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndpoint in interface ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder
      Returns:
      The endpoint.
    • getEndpointBytes

      public com.google.protobuf.ByteString getEndpointBytes()
       Output only. The cluster's DNS endpoint configuration.
       A DNS format address. This is accessible from the public internet.
       Ex: uid.us-central1.gke.goog.
       Always present, but the behavior may change according to the value of
       [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
       
      string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEndpointBytes in interface ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder
      Returns:
      The bytes for endpoint.
    • setEndpoint

       Output only. The cluster's DNS endpoint configuration.
       A DNS format address. This is accessible from the public internet.
       Ex: uid.us-central1.gke.goog.
       Always present, but the behavior may change according to the value of
       [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
       
      string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The endpoint to set.
      Returns:
      This builder for chaining.
    • clearEndpoint

       Output only. The cluster's DNS endpoint configuration.
       A DNS format address. This is accessible from the public internet.
       Ex: uid.us-central1.gke.goog.
       Always present, but the behavior may change according to the value of
       [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
       
      string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEndpointBytes

      public ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder setEndpointBytes(com.google.protobuf.ByteString value)
       Output only. The cluster's DNS endpoint configuration.
       A DNS format address. This is accessible from the public internet.
       Ex: uid.us-central1.gke.goog.
       Always present, but the behavior may change according to the value of
       [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic].
       
      string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for endpoint to set.
      Returns:
      This builder for chaining.
    • hasAllowExternalTraffic

      public boolean hasAllowExternalTraffic()
       Controls whether user traffic is allowed over this endpoint. Note that
       Google-managed services may still use the endpoint even if this is false.
       
      optional bool allow_external_traffic = 3;
      Specified by:
      hasAllowExternalTraffic in interface ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder
      Returns:
      Whether the allowExternalTraffic field is set.
    • getAllowExternalTraffic

      public boolean getAllowExternalTraffic()
       Controls whether user traffic is allowed over this endpoint. Note that
       Google-managed services may still use the endpoint even if this is false.
       
      optional bool allow_external_traffic = 3;
      Specified by:
      getAllowExternalTraffic in interface ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder
      Returns:
      The allowExternalTraffic.
    • setAllowExternalTraffic

      public ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder setAllowExternalTraffic(boolean value)
       Controls whether user traffic is allowed over this endpoint. Note that
       Google-managed services may still use the endpoint even if this is false.
       
      optional bool allow_external_traffic = 3;
      Parameters:
      value - The allowExternalTraffic to set.
      Returns:
      This builder for chaining.
    • clearAllowExternalTraffic

      public ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder clearAllowExternalTraffic()
       Controls whether user traffic is allowed over this endpoint. Note that
       Google-managed services may still use the endpoint even if this is false.
       
      optional bool allow_external_traffic = 3;
      Returns:
      This builder for chaining.
    • hasEnableK8STokensViaDns

      public boolean hasEnableK8STokensViaDns()
       Controls whether the k8s token auth is allowed via DNS.
       
      optional bool enable_k8s_tokens_via_dns = 5;
      Specified by:
      hasEnableK8STokensViaDns in interface ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder
      Returns:
      Whether the enableK8sTokensViaDns field is set.
    • getEnableK8STokensViaDns

      public boolean getEnableK8STokensViaDns()
       Controls whether the k8s token auth is allowed via DNS.
       
      optional bool enable_k8s_tokens_via_dns = 5;
      Specified by:
      getEnableK8STokensViaDns in interface ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder
      Returns:
      The enableK8sTokensViaDns.
    • setEnableK8STokensViaDns

      public ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder setEnableK8STokensViaDns(boolean value)
       Controls whether the k8s token auth is allowed via DNS.
       
      optional bool enable_k8s_tokens_via_dns = 5;
      Parameters:
      value - The enableK8sTokensViaDns to set.
      Returns:
      This builder for chaining.
    • clearEnableK8STokensViaDns

      public ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder clearEnableK8STokensViaDns()
       Controls whether the k8s token auth is allowed via DNS.
       
      optional bool enable_k8s_tokens_via_dns = 5;
      Returns:
      This builder for chaining.
    • hasEnableK8SCertsViaDns

      public boolean hasEnableK8SCertsViaDns()
       Controls whether the k8s certs auth is allowed via DNS.
       
      optional bool enable_k8s_certs_via_dns = 6;
      Specified by:
      hasEnableK8SCertsViaDns in interface ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder
      Returns:
      Whether the enableK8sCertsViaDns field is set.
    • getEnableK8SCertsViaDns

      public boolean getEnableK8SCertsViaDns()
       Controls whether the k8s certs auth is allowed via DNS.
       
      optional bool enable_k8s_certs_via_dns = 6;
      Specified by:
      getEnableK8SCertsViaDns in interface ControlPlaneEndpointsConfig.DNSEndpointConfigOrBuilder
      Returns:
      The enableK8sCertsViaDns.
    • setEnableK8SCertsViaDns

      public ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder setEnableK8SCertsViaDns(boolean value)
       Controls whether the k8s certs auth is allowed via DNS.
       
      optional bool enable_k8s_certs_via_dns = 6;
      Parameters:
      value - The enableK8sCertsViaDns to set.
      Returns:
      This builder for chaining.
    • clearEnableK8SCertsViaDns

      public ControlPlaneEndpointsConfig.DNSEndpointConfig.Builder clearEnableK8SCertsViaDns()
       Controls whether the k8s certs auth is allowed via DNS.
       
      optional bool enable_k8s_certs_via_dns = 6;
      Returns:
      This builder for chaining.