Class Cluster.Builder

  • All Implemented Interfaces:
    ClusterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Cluster

    public static final class Cluster.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
    implements ClusterOrBuilder
     Describes the identifying information, config, and status of
     a Dataproc cluster
     
    Protobuf type google.cloud.dataproc.v1.Cluster
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

        public Cluster.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<Cluster.Builder>
      • setField

        public Cluster.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<Cluster.Builder>
      • clearField

        public Cluster.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<Cluster.Builder>
      • clearOneof

        public Cluster.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<Cluster.Builder>
      • setRepeatedField

        public Cluster.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<Cluster.Builder>
      • addRepeatedField

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

        public Cluster.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<Cluster.Builder>
      • isInitialized

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

        public Cluster.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<Cluster.Builder>
        Throws:
        IOException
      • getProjectId

        public String getProjectId()
         Required. The Google Cloud Platform project ID that the cluster belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectId in interface ClusterOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Required. The Google Cloud Platform project ID that the cluster belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProjectIdBytes in interface ClusterOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public Cluster.Builder setProjectId​(String value)
         Required. The Google Cloud Platform project ID that the cluster belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public Cluster.Builder clearProjectId()
         Required. The Google Cloud Platform project ID that the cluster belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public Cluster.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Required. The Google Cloud Platform project ID that the cluster belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getClusterName

        public String getClusterName()
         Required. The cluster name, which must be unique within a project.
         The name must start with a lowercase letter, and can contain
         up to 51 lowercase letters, numbers, and hyphens. It cannot end
         with a hyphen. The name of a deleted cluster can be reused.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getClusterName in interface ClusterOrBuilder
        Returns:
        The clusterName.
      • getClusterNameBytes

        public com.google.protobuf.ByteString getClusterNameBytes()
         Required. The cluster name, which must be unique within a project.
         The name must start with a lowercase letter, and can contain
         up to 51 lowercase letters, numbers, and hyphens. It cannot end
         with a hyphen. The name of a deleted cluster can be reused.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getClusterNameBytes in interface ClusterOrBuilder
        Returns:
        The bytes for clusterName.
      • setClusterName

        public Cluster.Builder setClusterName​(String value)
         Required. The cluster name, which must be unique within a project.
         The name must start with a lowercase letter, and can contain
         up to 51 lowercase letters, numbers, and hyphens. It cannot end
         with a hyphen. The name of a deleted cluster can be reused.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The clusterName to set.
        Returns:
        This builder for chaining.
      • clearClusterName

        public Cluster.Builder clearClusterName()
         Required. The cluster name, which must be unique within a project.
         The name must start with a lowercase letter, and can contain
         up to 51 lowercase letters, numbers, and hyphens. It cannot end
         with a hyphen. The name of a deleted cluster can be reused.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setClusterNameBytes

        public Cluster.Builder setClusterNameBytes​(com.google.protobuf.ByteString value)
         Required. The cluster name, which must be unique within a project.
         The name must start with a lowercase letter, and can contain
         up to 51 lowercase letters, numbers, and hyphens. It cannot end
         with a hyphen. The name of a deleted cluster can be reused.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for clusterName to set.
        Returns:
        This builder for chaining.
      • hasConfig

        public boolean hasConfig()
         Optional. The cluster config for a cluster of Compute Engine Instances.
         Note that Dataproc may set default values, and values may change
         when clusters are updated.
        
         Exactly one of ClusterConfig or VirtualClusterConfig must be specified.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasConfig in interface ClusterOrBuilder
        Returns:
        Whether the config field is set.
      • getConfig

        public ClusterConfig getConfig()
         Optional. The cluster config for a cluster of Compute Engine Instances.
         Note that Dataproc may set default values, and values may change
         when clusters are updated.
        
         Exactly one of ClusterConfig or VirtualClusterConfig must be specified.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getConfig in interface ClusterOrBuilder
        Returns:
        The config.
      • setConfig

        public Cluster.Builder setConfig​(ClusterConfig value)
         Optional. The cluster config for a cluster of Compute Engine Instances.
         Note that Dataproc may set default values, and values may change
         when clusters are updated.
        
         Exactly one of ClusterConfig or VirtualClusterConfig must be specified.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
      • setConfig

        public Cluster.Builder setConfig​(ClusterConfig.Builder builderForValue)
         Optional. The cluster config for a cluster of Compute Engine Instances.
         Note that Dataproc may set default values, and values may change
         when clusters are updated.
        
         Exactly one of ClusterConfig or VirtualClusterConfig must be specified.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
      • mergeConfig

        public Cluster.Builder mergeConfig​(ClusterConfig value)
         Optional. The cluster config for a cluster of Compute Engine Instances.
         Note that Dataproc may set default values, and values may change
         when clusters are updated.
        
         Exactly one of ClusterConfig or VirtualClusterConfig must be specified.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
      • clearConfig

        public Cluster.Builder clearConfig()
         Optional. The cluster config for a cluster of Compute Engine Instances.
         Note that Dataproc may set default values, and values may change
         when clusters are updated.
        
         Exactly one of ClusterConfig or VirtualClusterConfig must be specified.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getConfigBuilder

        public ClusterConfig.Builder getConfigBuilder()
         Optional. The cluster config for a cluster of Compute Engine Instances.
         Note that Dataproc may set default values, and values may change
         when clusters are updated.
        
         Exactly one of ClusterConfig or VirtualClusterConfig must be specified.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getConfigOrBuilder

        public ClusterConfigOrBuilder getConfigOrBuilder()
         Optional. The cluster config for a cluster of Compute Engine Instances.
         Note that Dataproc may set default values, and values may change
         when clusters are updated.
        
         Exactly one of ClusterConfig or VirtualClusterConfig must be specified.
         
        .google.cloud.dataproc.v1.ClusterConfig config = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getConfigOrBuilder in interface ClusterOrBuilder
      • hasVirtualClusterConfig

        public boolean hasVirtualClusterConfig()
         Optional. The virtual cluster config is used when creating a Dataproc
         cluster that does not directly control the underlying compute resources,
         for example, when creating a [Dataproc-on-GKE
         cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).
         Dataproc may set default values, and values may change when
         clusters are updated. Exactly one of
         [config][google.cloud.dataproc.v1.Cluster.config] or
         [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
         must be specified.
         
        .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasVirtualClusterConfig in interface ClusterOrBuilder
        Returns:
        Whether the virtualClusterConfig field is set.
      • getVirtualClusterConfig

        public VirtualClusterConfig getVirtualClusterConfig()
         Optional. The virtual cluster config is used when creating a Dataproc
         cluster that does not directly control the underlying compute resources,
         for example, when creating a [Dataproc-on-GKE
         cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).
         Dataproc may set default values, and values may change when
         clusters are updated. Exactly one of
         [config][google.cloud.dataproc.v1.Cluster.config] or
         [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
         must be specified.
         
        .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getVirtualClusterConfig in interface ClusterOrBuilder
        Returns:
        The virtualClusterConfig.
      • setVirtualClusterConfig

        public Cluster.Builder setVirtualClusterConfig​(VirtualClusterConfig value)
         Optional. The virtual cluster config is used when creating a Dataproc
         cluster that does not directly control the underlying compute resources,
         for example, when creating a [Dataproc-on-GKE
         cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).
         Dataproc may set default values, and values may change when
         clusters are updated. Exactly one of
         [config][google.cloud.dataproc.v1.Cluster.config] or
         [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
         must be specified.
         
        .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      • setVirtualClusterConfig

        public Cluster.Builder setVirtualClusterConfig​(VirtualClusterConfig.Builder builderForValue)
         Optional. The virtual cluster config is used when creating a Dataproc
         cluster that does not directly control the underlying compute resources,
         for example, when creating a [Dataproc-on-GKE
         cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).
         Dataproc may set default values, and values may change when
         clusters are updated. Exactly one of
         [config][google.cloud.dataproc.v1.Cluster.config] or
         [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
         must be specified.
         
        .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      • mergeVirtualClusterConfig

        public Cluster.Builder mergeVirtualClusterConfig​(VirtualClusterConfig value)
         Optional. The virtual cluster config is used when creating a Dataproc
         cluster that does not directly control the underlying compute resources,
         for example, when creating a [Dataproc-on-GKE
         cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).
         Dataproc may set default values, and values may change when
         clusters are updated. Exactly one of
         [config][google.cloud.dataproc.v1.Cluster.config] or
         [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
         must be specified.
         
        .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      • clearVirtualClusterConfig

        public Cluster.Builder clearVirtualClusterConfig()
         Optional. The virtual cluster config is used when creating a Dataproc
         cluster that does not directly control the underlying compute resources,
         for example, when creating a [Dataproc-on-GKE
         cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).
         Dataproc may set default values, and values may change when
         clusters are updated. Exactly one of
         [config][google.cloud.dataproc.v1.Cluster.config] or
         [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
         must be specified.
         
        .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      • getVirtualClusterConfigBuilder

        public VirtualClusterConfig.Builder getVirtualClusterConfigBuilder()
         Optional. The virtual cluster config is used when creating a Dataproc
         cluster that does not directly control the underlying compute resources,
         for example, when creating a [Dataproc-on-GKE
         cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).
         Dataproc may set default values, and values may change when
         clusters are updated. Exactly one of
         [config][google.cloud.dataproc.v1.Cluster.config] or
         [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
         must be specified.
         
        .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
      • getVirtualClusterConfigOrBuilder

        public VirtualClusterConfigOrBuilder getVirtualClusterConfigOrBuilder()
         Optional. The virtual cluster config is used when creating a Dataproc
         cluster that does not directly control the underlying compute resources,
         for example, when creating a [Dataproc-on-GKE
         cluster](https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview).
         Dataproc may set default values, and values may change when
         clusters are updated. Exactly one of
         [config][google.cloud.dataproc.v1.Cluster.config] or
         [virtual_cluster_config][google.cloud.dataproc.v1.Cluster.virtual_cluster_config]
         must be specified.
         
        .google.cloud.dataproc.v1.VirtualClusterConfig virtual_cluster_config = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getVirtualClusterConfigOrBuilder in interface ClusterOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: ClusterOrBuilder
         Optional. The labels to associate with this cluster.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a cluster.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface ClusterOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. The labels to associate with this cluster.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a cluster.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface ClusterOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional. The labels to associate with this cluster.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a cluster.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface ClusterOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional. The labels to associate with this cluster.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a cluster.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface ClusterOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional. The labels to associate with this cluster.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a cluster.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface ClusterOrBuilder
      • removeLabels

        public Cluster.Builder removeLabels​(String key)
         Optional. The labels to associate with this cluster.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a cluster.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableLabels

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

        public Cluster.Builder putLabels​(String key,
                                         String value)
         Optional. The labels to associate with this cluster.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a cluster.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      • putAllLabels

        public Cluster.Builder putAllLabels​(Map<String,​String> values)
         Optional. The labels to associate with this cluster.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a cluster.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      • hasStatus

        public boolean hasStatus()
         Output only. Cluster status.
         
        .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStatus in interface ClusterOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public ClusterStatus getStatus()
         Output only. Cluster status.
         
        .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatus in interface ClusterOrBuilder
        Returns:
        The status.
      • setStatus

        public Cluster.Builder setStatus​(ClusterStatus value)
         Output only. Cluster status.
         
        .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStatus

        public Cluster.Builder setStatus​(ClusterStatus.Builder builderForValue)
         Output only. Cluster status.
         
        .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeStatus

        public Cluster.Builder mergeStatus​(ClusterStatus value)
         Output only. Cluster status.
         
        .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStatus

        public Cluster.Builder clearStatus()
         Output only. Cluster status.
         
        .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusBuilder

        public ClusterStatus.Builder getStatusBuilder()
         Output only. Cluster status.
         
        .google.cloud.dataproc.v1.ClusterStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusHistoryList

        public List<ClusterStatus> getStatusHistoryList()
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusHistoryList in interface ClusterOrBuilder
      • getStatusHistoryCount

        public int getStatusHistoryCount()
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusHistoryCount in interface ClusterOrBuilder
      • getStatusHistory

        public ClusterStatus getStatusHistory​(int index)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusHistory in interface ClusterOrBuilder
      • setStatusHistory

        public Cluster.Builder setStatusHistory​(int index,
                                                ClusterStatus value)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStatusHistory

        public Cluster.Builder setStatusHistory​(int index,
                                                ClusterStatus.Builder builderForValue)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStatusHistory

        public Cluster.Builder addStatusHistory​(ClusterStatus value)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStatusHistory

        public Cluster.Builder addStatusHistory​(int index,
                                                ClusterStatus value)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStatusHistory

        public Cluster.Builder addStatusHistory​(ClusterStatus.Builder builderForValue)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStatusHistory

        public Cluster.Builder addStatusHistory​(int index,
                                                ClusterStatus.Builder builderForValue)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllStatusHistory

        public Cluster.Builder addAllStatusHistory​(Iterable<? extends ClusterStatus> values)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStatusHistory

        public Cluster.Builder clearStatusHistory()
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeStatusHistory

        public Cluster.Builder removeStatusHistory​(int index)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusHistoryBuilder

        public ClusterStatus.Builder getStatusHistoryBuilder​(int index)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusHistoryOrBuilder

        public ClusterStatusOrBuilder getStatusHistoryOrBuilder​(int index)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusHistoryOrBuilder in interface ClusterOrBuilder
      • addStatusHistoryBuilder

        public ClusterStatus.Builder addStatusHistoryBuilder()
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStatusHistoryBuilder

        public ClusterStatus.Builder addStatusHistoryBuilder​(int index)
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusHistoryBuilderList

        public List<ClusterStatus.Builder> getStatusHistoryBuilderList()
         Output only. The previous cluster status.
         
        repeated .google.cloud.dataproc.v1.ClusterStatus status_history = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getClusterUuid

        public String getClusterUuid()
         Output only. A cluster UUID (Unique Universal Identifier). Dataproc
         generates this value when it creates the cluster.
         
        string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterUuid in interface ClusterOrBuilder
        Returns:
        The clusterUuid.
      • getClusterUuidBytes

        public com.google.protobuf.ByteString getClusterUuidBytes()
         Output only. A cluster UUID (Unique Universal Identifier). Dataproc
         generates this value when it creates the cluster.
         
        string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getClusterUuidBytes in interface ClusterOrBuilder
        Returns:
        The bytes for clusterUuid.
      • setClusterUuid

        public Cluster.Builder setClusterUuid​(String value)
         Output only. A cluster UUID (Unique Universal Identifier). Dataproc
         generates this value when it creates the cluster.
         
        string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The clusterUuid to set.
        Returns:
        This builder for chaining.
      • clearClusterUuid

        public Cluster.Builder clearClusterUuid()
         Output only. A cluster UUID (Unique Universal Identifier). Dataproc
         generates this value when it creates the cluster.
         
        string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setClusterUuidBytes

        public Cluster.Builder setClusterUuidBytes​(com.google.protobuf.ByteString value)
         Output only. A cluster UUID (Unique Universal Identifier). Dataproc
         generates this value when it creates the cluster.
         
        string cluster_uuid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for clusterUuid to set.
        Returns:
        This builder for chaining.
      • hasMetrics

        public boolean hasMetrics()
         Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
        
         **Beta Feature**: This report is available for testing purposes only. It
         may be changed before final release.
         
        .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasMetrics in interface ClusterOrBuilder
        Returns:
        Whether the metrics field is set.
      • getMetrics

        public ClusterMetrics getMetrics()
         Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
        
         **Beta Feature**: This report is available for testing purposes only. It
         may be changed before final release.
         
        .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMetrics in interface ClusterOrBuilder
        Returns:
        The metrics.
      • setMetrics

        public Cluster.Builder setMetrics​(ClusterMetrics value)
         Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
        
         **Beta Feature**: This report is available for testing purposes only. It
         may be changed before final release.
         
        .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setMetrics

        public Cluster.Builder setMetrics​(ClusterMetrics.Builder builderForValue)
         Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
        
         **Beta Feature**: This report is available for testing purposes only. It
         may be changed before final release.
         
        .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeMetrics

        public Cluster.Builder mergeMetrics​(ClusterMetrics value)
         Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
        
         **Beta Feature**: This report is available for testing purposes only. It
         may be changed before final release.
         
        .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearMetrics

        public Cluster.Builder clearMetrics()
         Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
        
         **Beta Feature**: This report is available for testing purposes only. It
         may be changed before final release.
         
        .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMetricsBuilder

        public ClusterMetrics.Builder getMetricsBuilder()
         Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
        
         **Beta Feature**: This report is available for testing purposes only. It
         may be changed before final release.
         
        .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMetricsOrBuilder

        public ClusterMetricsOrBuilder getMetricsOrBuilder()
         Output only. Contains cluster daemon metrics such as HDFS and YARN stats.
        
         **Beta Feature**: This report is available for testing purposes only. It
         may be changed before final release.
         
        .google.cloud.dataproc.v1.ClusterMetrics metrics = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMetricsOrBuilder in interface ClusterOrBuilder
      • setUnknownFields

        public final Cluster.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<Cluster.Builder>
      • mergeUnknownFields

        public final Cluster.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<Cluster.Builder>