Class GkeCluster.Builder

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

public static final class GkeCluster.Builder extends com.google.protobuf.GeneratedMessage.Builder<GkeCluster.Builder> implements GkeClusterOrBuilder
 Information specifying a GKE Cluster.
 
Protobuf type google.cloud.deploy.v1.GkeCluster
  • 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<GkeCluster.Builder>
    • clear

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

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

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

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

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

      public GkeCluster.Builder mergeFrom(GkeCluster other)
    • isInitialized

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

      public GkeCluster.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<GkeCluster.Builder>
      Throws:
      IOException
    • getCluster

      public String getCluster()
       Optional. Information specifying a GKE Cluster. Format is
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
       
      string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCluster in interface GkeClusterOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Optional. Information specifying a GKE Cluster. Format is
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
       
      string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getClusterBytes in interface GkeClusterOrBuilder
      Returns:
      The bytes for cluster.
    • setCluster

      public GkeCluster.Builder setCluster(String value)
       Optional. Information specifying a GKE Cluster. Format is
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
       
      string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

      public GkeCluster.Builder clearCluster()
       Optional. Information specifying a GKE Cluster. Format is
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
       
      string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setClusterBytes

      public GkeCluster.Builder setClusterBytes(com.google.protobuf.ByteString value)
       Optional. Information specifying a GKE Cluster. Format is
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`.
       
      string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • getInternalIp

      public boolean getInternalIp()
       Optional. If true, `cluster` is accessed using the private IP address of
       the control plane endpoint. Otherwise, the default IP address of the
       control plane endpoint is used. The default IP address is the private IP
       address for clusters with private control-plane endpoints and the public IP
       address otherwise.
      
       Only specify this option when `cluster` is a [private GKE
       cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
       Note that `internal_ip` and `dns_endpoint` cannot both be set to true.
       
      bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInternalIp in interface GkeClusterOrBuilder
      Returns:
      The internalIp.
    • setInternalIp

      public GkeCluster.Builder setInternalIp(boolean value)
       Optional. If true, `cluster` is accessed using the private IP address of
       the control plane endpoint. Otherwise, the default IP address of the
       control plane endpoint is used. The default IP address is the private IP
       address for clusters with private control-plane endpoints and the public IP
       address otherwise.
      
       Only specify this option when `cluster` is a [private GKE
       cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
       Note that `internal_ip` and `dns_endpoint` cannot both be set to true.
       
      bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The internalIp to set.
      Returns:
      This builder for chaining.
    • clearInternalIp

      public GkeCluster.Builder clearInternalIp()
       Optional. If true, `cluster` is accessed using the private IP address of
       the control plane endpoint. Otherwise, the default IP address of the
       control plane endpoint is used. The default IP address is the private IP
       address for clusters with private control-plane endpoints and the public IP
       address otherwise.
      
       Only specify this option when `cluster` is a [private GKE
       cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
       Note that `internal_ip` and `dns_endpoint` cannot both be set to true.
       
      bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getProxyUrl

      public String getProxyUrl()
       Optional. If set, used to configure a
       [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
       to the Kubernetes server.
       
      string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProxyUrl in interface GkeClusterOrBuilder
      Returns:
      The proxyUrl.
    • getProxyUrlBytes

      public com.google.protobuf.ByteString getProxyUrlBytes()
       Optional. If set, used to configure a
       [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
       to the Kubernetes server.
       
      string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProxyUrlBytes in interface GkeClusterOrBuilder
      Returns:
      The bytes for proxyUrl.
    • setProxyUrl

      public GkeCluster.Builder setProxyUrl(String value)
       Optional. If set, used to configure a
       [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
       to the Kubernetes server.
       
      string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The proxyUrl to set.
      Returns:
      This builder for chaining.
    • clearProxyUrl

      public GkeCluster.Builder clearProxyUrl()
       Optional. If set, used to configure a
       [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
       to the Kubernetes server.
       
      string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setProxyUrlBytes

      public GkeCluster.Builder setProxyUrlBytes(com.google.protobuf.ByteString value)
       Optional. If set, used to configure a
       [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy)
       to the Kubernetes server.
       
      string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for proxyUrl to set.
      Returns:
      This builder for chaining.
    • getDnsEndpoint

      public boolean getDnsEndpoint()
       Optional. If set, the cluster will be accessed using the DNS endpoint. Note
       that both `dns_endpoint` and `internal_ip` cannot be set to true.
       
      bool dns_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDnsEndpoint in interface GkeClusterOrBuilder
      Returns:
      The dnsEndpoint.
    • setDnsEndpoint

      public GkeCluster.Builder setDnsEndpoint(boolean value)
       Optional. If set, the cluster will be accessed using the DNS endpoint. Note
       that both `dns_endpoint` and `internal_ip` cannot be set to true.
       
      bool dns_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dnsEndpoint to set.
      Returns:
      This builder for chaining.
    • clearDnsEndpoint

      public GkeCluster.Builder clearDnsEndpoint()
       Optional. If set, the cluster will be accessed using the DNS endpoint. Note
       that both `dns_endpoint` and `internal_ip` cannot be set to true.
       
      bool dns_endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.