Class 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.GeneratedMessageV3.Builder<GkeCluster.Builder>
    implements GkeClusterOrBuilder
     Information specifying a GKE Cluster.
     
    Protobuf type google.cloud.deploy.v1.GkeCluster
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public GkeCluster.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GkeCluster.Builder>
      • setField

        public GkeCluster.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GkeCluster.Builder>
      • clearField

        public GkeCluster.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GkeCluster.Builder>
      • clearOneof

        public GkeCluster.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GkeCluster.Builder>
      • setRepeatedField

        public GkeCluster.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GkeCluster.Builder>
      • addRepeatedField

        public GkeCluster.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GkeCluster.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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()
         Information specifying a GKE Cluster. Format is
         `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
         
        string cluster = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getCluster in interface GkeClusterOrBuilder
        Returns:
        The cluster.
      • getClusterBytes

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

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

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

        public GkeCluster.Builder setClusterBytes​(com.google.protobuf.ByteString value)
         Information specifying a GKE Cluster. Format is
         `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
         
        string cluster = 1 [(.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).
         
        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).
         
        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).
         
        bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GkeCluster.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GkeCluster.Builder>
      • mergeUnknownFields

        public final GkeCluster.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GkeCluster.Builder>