Class UpdateClusterRequest.Builder

    • 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<UpdateClusterRequest.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public UpdateClusterRequest.Builder setProjectId​(String value)
         Required. The ID of the Google Cloud Platform project 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 UpdateClusterRequest.Builder clearProjectId()
         Required. The ID of the Google Cloud Platform project the
         cluster belongs to.
         
        string project_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public UpdateClusterRequest.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID of the Google Cloud Platform project 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.
      • getRegion

        public String getRegion()
         Required. The Dataproc region in which to handle the request.
         
        string region = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRegion in interface UpdateClusterRequestOrBuilder
        Returns:
        The region.
      • getRegionBytes

        public com.google.protobuf.ByteString getRegionBytes()
         Required. The Dataproc region in which to handle the request.
         
        string region = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRegionBytes in interface UpdateClusterRequestOrBuilder
        Returns:
        The bytes for region.
      • setRegion

        public UpdateClusterRequest.Builder setRegion​(String value)
         Required. The Dataproc region in which to handle the request.
         
        string region = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The region to set.
        Returns:
        This builder for chaining.
      • clearRegion

        public UpdateClusterRequest.Builder clearRegion()
         Required. The Dataproc region in which to handle the request.
         
        string region = 5 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setRegionBytes

        public UpdateClusterRequest.Builder setRegionBytes​(com.google.protobuf.ByteString value)
         Required. The Dataproc region in which to handle the request.
         
        string region = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for region to set.
        Returns:
        This builder for chaining.
      • getClusterNameBytes

        public com.google.protobuf.ByteString getClusterNameBytes()
         Required. The cluster name.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getClusterNameBytes in interface UpdateClusterRequestOrBuilder
        Returns:
        The bytes for clusterName.
      • setClusterName

        public UpdateClusterRequest.Builder setClusterName​(String value)
         Required. The cluster name.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The clusterName to set.
        Returns:
        This builder for chaining.
      • clearClusterName

        public UpdateClusterRequest.Builder clearClusterName()
         Required. The cluster name.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setClusterNameBytes

        public UpdateClusterRequest.Builder setClusterNameBytes​(com.google.protobuf.ByteString value)
         Required. The cluster name.
         
        string cluster_name = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for clusterName to set.
        Returns:
        This builder for chaining.
      • hasCluster

        public boolean hasCluster()
         Required. The changes to the cluster.
         
        .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasCluster in interface UpdateClusterRequestOrBuilder
        Returns:
        Whether the cluster field is set.
      • getCluster

        public Cluster getCluster()
         Required. The changes to the cluster.
         
        .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCluster in interface UpdateClusterRequestOrBuilder
        Returns:
        The cluster.
      • setCluster

        public UpdateClusterRequest.Builder setCluster​(Cluster value)
         Required. The changes to the cluster.
         
        .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      • setCluster

        public UpdateClusterRequest.Builder setCluster​(Cluster.Builder builderForValue)
         Required. The changes to the cluster.
         
        .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      • mergeCluster

        public UpdateClusterRequest.Builder mergeCluster​(Cluster value)
         Required. The changes to the cluster.
         
        .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      • clearCluster

        public UpdateClusterRequest.Builder clearCluster()
         Required. The changes to the cluster.
         
        .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      • getClusterBuilder

        public Cluster.Builder getClusterBuilder()
         Required. The changes to the cluster.
         
        .google.cloud.dataproc.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      • hasGracefulDecommissionTimeout

        public boolean hasGracefulDecommissionTimeout()
         Optional. Timeout for graceful YARN decommissioning. Graceful
         decommissioning allows removing nodes from the cluster without
         interrupting jobs in progress. Timeout specifies how long to wait for jobs
         in progress to finish before forcefully removing nodes (and potentially
         interrupting jobs). Default timeout is 0 (for forceful decommission), and
         the maximum allowed timeout is 1 day. (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Only supported on Dataproc image versions 1.2 and higher.
         
        .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasGracefulDecommissionTimeout in interface UpdateClusterRequestOrBuilder
        Returns:
        Whether the gracefulDecommissionTimeout field is set.
      • getGracefulDecommissionTimeout

        public com.google.protobuf.Duration getGracefulDecommissionTimeout()
         Optional. Timeout for graceful YARN decommissioning. Graceful
         decommissioning allows removing nodes from the cluster without
         interrupting jobs in progress. Timeout specifies how long to wait for jobs
         in progress to finish before forcefully removing nodes (and potentially
         interrupting jobs). Default timeout is 0 (for forceful decommission), and
         the maximum allowed timeout is 1 day. (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Only supported on Dataproc image versions 1.2 and higher.
         
        .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getGracefulDecommissionTimeout in interface UpdateClusterRequestOrBuilder
        Returns:
        The gracefulDecommissionTimeout.
      • setGracefulDecommissionTimeout

        public UpdateClusterRequest.Builder setGracefulDecommissionTimeout​(com.google.protobuf.Duration value)
         Optional. Timeout for graceful YARN decommissioning. Graceful
         decommissioning allows removing nodes from the cluster without
         interrupting jobs in progress. Timeout specifies how long to wait for jobs
         in progress to finish before forcefully removing nodes (and potentially
         interrupting jobs). Default timeout is 0 (for forceful decommission), and
         the maximum allowed timeout is 1 day. (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Only supported on Dataproc image versions 1.2 and higher.
         
        .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setGracefulDecommissionTimeout

        public UpdateClusterRequest.Builder setGracefulDecommissionTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Optional. Timeout for graceful YARN decommissioning. Graceful
         decommissioning allows removing nodes from the cluster without
         interrupting jobs in progress. Timeout specifies how long to wait for jobs
         in progress to finish before forcefully removing nodes (and potentially
         interrupting jobs). Default timeout is 0 (for forceful decommission), and
         the maximum allowed timeout is 1 day. (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Only supported on Dataproc image versions 1.2 and higher.
         
        .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
      • mergeGracefulDecommissionTimeout

        public UpdateClusterRequest.Builder mergeGracefulDecommissionTimeout​(com.google.protobuf.Duration value)
         Optional. Timeout for graceful YARN decommissioning. Graceful
         decommissioning allows removing nodes from the cluster without
         interrupting jobs in progress. Timeout specifies how long to wait for jobs
         in progress to finish before forcefully removing nodes (and potentially
         interrupting jobs). Default timeout is 0 (for forceful decommission), and
         the maximum allowed timeout is 1 day. (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Only supported on Dataproc image versions 1.2 and higher.
         
        .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
      • clearGracefulDecommissionTimeout

        public UpdateClusterRequest.Builder clearGracefulDecommissionTimeout()
         Optional. Timeout for graceful YARN decommissioning. Graceful
         decommissioning allows removing nodes from the cluster without
         interrupting jobs in progress. Timeout specifies how long to wait for jobs
         in progress to finish before forcefully removing nodes (and potentially
         interrupting jobs). Default timeout is 0 (for forceful decommission), and
         the maximum allowed timeout is 1 day. (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Only supported on Dataproc image versions 1.2 and higher.
         
        .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getGracefulDecommissionTimeoutBuilder

        public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder()
         Optional. Timeout for graceful YARN decommissioning. Graceful
         decommissioning allows removing nodes from the cluster without
         interrupting jobs in progress. Timeout specifies how long to wait for jobs
         in progress to finish before forcefully removing nodes (and potentially
         interrupting jobs). Default timeout is 0 (for forceful decommission), and
         the maximum allowed timeout is 1 day. (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Only supported on Dataproc image versions 1.2 and higher.
         
        .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getGracefulDecommissionTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder()
         Optional. Timeout for graceful YARN decommissioning. Graceful
         decommissioning allows removing nodes from the cluster without
         interrupting jobs in progress. Timeout specifies how long to wait for jobs
         in progress to finish before forcefully removing nodes (and potentially
         interrupting jobs). Default timeout is 0 (for forceful decommission), and
         the maximum allowed timeout is 1 day. (see JSON representation of
         [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).
        
         Only supported on Dataproc image versions 1.2 and higher.
         
        .google.protobuf.Duration graceful_decommission_timeout = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getGracefulDecommissionTimeoutOrBuilder in interface UpdateClusterRequestOrBuilder
      • hasUpdateMask

        public boolean hasUpdateMask()
         Required. Specifies the path, relative to `Cluster`, of
         the field to update. For example, to change the number of workers
         in a cluster to 5, the `update_mask` parameter would be
         specified as `config.worker_config.num_instances`,
         and the `PATCH` request body would specify the new value, as follows:
        
             {
               "config":{
                 "workerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         Similarly, to change the number of preemptible workers in a cluster to 5,
         the `update_mask` parameter would be
         `config.secondary_worker_config.num_instances`, and the `PATCH` request
         body would be set as follows:
        
             {
               "config":{
                 "secondaryWorkerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         <strong>Note:</strong> Currently, only the following fields can be updated:
        
          <table>
          <tbody>
          <tr>
          <td><strong>Mask</strong></td>
          <td><strong>Purpose</strong></td>
          </tr>
          <tr>
          <td><strong><em>labels</em></strong></td>
          <td>Update labels</td>
          </tr>
          <tr>
          <td><strong><em>config.worker_config.num_instances</em></strong></td>
          <td>Resize primary worker group</td>
          </tr>
          <tr>
          <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
          <td>Resize secondary worker group</td>
          </tr>
          <tr>
          <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
          change autoscaling policies</td>
          </tr>
          </tbody>
          </table>
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasUpdateMask in interface UpdateClusterRequestOrBuilder
        Returns:
        Whether the updateMask field is set.
      • getUpdateMask

        public com.google.protobuf.FieldMask getUpdateMask()
         Required. Specifies the path, relative to `Cluster`, of
         the field to update. For example, to change the number of workers
         in a cluster to 5, the `update_mask` parameter would be
         specified as `config.worker_config.num_instances`,
         and the `PATCH` request body would specify the new value, as follows:
        
             {
               "config":{
                 "workerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         Similarly, to change the number of preemptible workers in a cluster to 5,
         the `update_mask` parameter would be
         `config.secondary_worker_config.num_instances`, and the `PATCH` request
         body would be set as follows:
        
             {
               "config":{
                 "secondaryWorkerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         <strong>Note:</strong> Currently, only the following fields can be updated:
        
          <table>
          <tbody>
          <tr>
          <td><strong>Mask</strong></td>
          <td><strong>Purpose</strong></td>
          </tr>
          <tr>
          <td><strong><em>labels</em></strong></td>
          <td>Update labels</td>
          </tr>
          <tr>
          <td><strong><em>config.worker_config.num_instances</em></strong></td>
          <td>Resize primary worker group</td>
          </tr>
          <tr>
          <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
          <td>Resize secondary worker group</td>
          </tr>
          <tr>
          <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
          change autoscaling policies</td>
          </tr>
          </tbody>
          </table>
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUpdateMask in interface UpdateClusterRequestOrBuilder
        Returns:
        The updateMask.
      • setUpdateMask

        public UpdateClusterRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask value)
         Required. Specifies the path, relative to `Cluster`, of
         the field to update. For example, to change the number of workers
         in a cluster to 5, the `update_mask` parameter would be
         specified as `config.worker_config.num_instances`,
         and the `PATCH` request body would specify the new value, as follows:
        
             {
               "config":{
                 "workerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         Similarly, to change the number of preemptible workers in a cluster to 5,
         the `update_mask` parameter would be
         `config.secondary_worker_config.num_instances`, and the `PATCH` request
         body would be set as follows:
        
             {
               "config":{
                 "secondaryWorkerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         <strong>Note:</strong> Currently, only the following fields can be updated:
        
          <table>
          <tbody>
          <tr>
          <td><strong>Mask</strong></td>
          <td><strong>Purpose</strong></td>
          </tr>
          <tr>
          <td><strong><em>labels</em></strong></td>
          <td>Update labels</td>
          </tr>
          <tr>
          <td><strong><em>config.worker_config.num_instances</em></strong></td>
          <td>Resize primary worker group</td>
          </tr>
          <tr>
          <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
          <td>Resize secondary worker group</td>
          </tr>
          <tr>
          <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
          change autoscaling policies</td>
          </tr>
          </tbody>
          </table>
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      • setUpdateMask

        public UpdateClusterRequest.Builder setUpdateMask​(com.google.protobuf.FieldMask.Builder builderForValue)
         Required. Specifies the path, relative to `Cluster`, of
         the field to update. For example, to change the number of workers
         in a cluster to 5, the `update_mask` parameter would be
         specified as `config.worker_config.num_instances`,
         and the `PATCH` request body would specify the new value, as follows:
        
             {
               "config":{
                 "workerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         Similarly, to change the number of preemptible workers in a cluster to 5,
         the `update_mask` parameter would be
         `config.secondary_worker_config.num_instances`, and the `PATCH` request
         body would be set as follows:
        
             {
               "config":{
                 "secondaryWorkerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         <strong>Note:</strong> Currently, only the following fields can be updated:
        
          <table>
          <tbody>
          <tr>
          <td><strong>Mask</strong></td>
          <td><strong>Purpose</strong></td>
          </tr>
          <tr>
          <td><strong><em>labels</em></strong></td>
          <td>Update labels</td>
          </tr>
          <tr>
          <td><strong><em>config.worker_config.num_instances</em></strong></td>
          <td>Resize primary worker group</td>
          </tr>
          <tr>
          <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
          <td>Resize secondary worker group</td>
          </tr>
          <tr>
          <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
          change autoscaling policies</td>
          </tr>
          </tbody>
          </table>
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      • mergeUpdateMask

        public UpdateClusterRequest.Builder mergeUpdateMask​(com.google.protobuf.FieldMask value)
         Required. Specifies the path, relative to `Cluster`, of
         the field to update. For example, to change the number of workers
         in a cluster to 5, the `update_mask` parameter would be
         specified as `config.worker_config.num_instances`,
         and the `PATCH` request body would specify the new value, as follows:
        
             {
               "config":{
                 "workerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         Similarly, to change the number of preemptible workers in a cluster to 5,
         the `update_mask` parameter would be
         `config.secondary_worker_config.num_instances`, and the `PATCH` request
         body would be set as follows:
        
             {
               "config":{
                 "secondaryWorkerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         <strong>Note:</strong> Currently, only the following fields can be updated:
        
          <table>
          <tbody>
          <tr>
          <td><strong>Mask</strong></td>
          <td><strong>Purpose</strong></td>
          </tr>
          <tr>
          <td><strong><em>labels</em></strong></td>
          <td>Update labels</td>
          </tr>
          <tr>
          <td><strong><em>config.worker_config.num_instances</em></strong></td>
          <td>Resize primary worker group</td>
          </tr>
          <tr>
          <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
          <td>Resize secondary worker group</td>
          </tr>
          <tr>
          <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
          change autoscaling policies</td>
          </tr>
          </tbody>
          </table>
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      • clearUpdateMask

        public UpdateClusterRequest.Builder clearUpdateMask()
         Required. Specifies the path, relative to `Cluster`, of
         the field to update. For example, to change the number of workers
         in a cluster to 5, the `update_mask` parameter would be
         specified as `config.worker_config.num_instances`,
         and the `PATCH` request body would specify the new value, as follows:
        
             {
               "config":{
                 "workerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         Similarly, to change the number of preemptible workers in a cluster to 5,
         the `update_mask` parameter would be
         `config.secondary_worker_config.num_instances`, and the `PATCH` request
         body would be set as follows:
        
             {
               "config":{
                 "secondaryWorkerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         <strong>Note:</strong> Currently, only the following fields can be updated:
        
          <table>
          <tbody>
          <tr>
          <td><strong>Mask</strong></td>
          <td><strong>Purpose</strong></td>
          </tr>
          <tr>
          <td><strong><em>labels</em></strong></td>
          <td>Update labels</td>
          </tr>
          <tr>
          <td><strong><em>config.worker_config.num_instances</em></strong></td>
          <td>Resize primary worker group</td>
          </tr>
          <tr>
          <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
          <td>Resize secondary worker group</td>
          </tr>
          <tr>
          <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
          change autoscaling policies</td>
          </tr>
          </tbody>
          </table>
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      • getUpdateMaskBuilder

        public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
         Required. Specifies the path, relative to `Cluster`, of
         the field to update. For example, to change the number of workers
         in a cluster to 5, the `update_mask` parameter would be
         specified as `config.worker_config.num_instances`,
         and the `PATCH` request body would specify the new value, as follows:
        
             {
               "config":{
                 "workerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         Similarly, to change the number of preemptible workers in a cluster to 5,
         the `update_mask` parameter would be
         `config.secondary_worker_config.num_instances`, and the `PATCH` request
         body would be set as follows:
        
             {
               "config":{
                 "secondaryWorkerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         <strong>Note:</strong> Currently, only the following fields can be updated:
        
          <table>
          <tbody>
          <tr>
          <td><strong>Mask</strong></td>
          <td><strong>Purpose</strong></td>
          </tr>
          <tr>
          <td><strong><em>labels</em></strong></td>
          <td>Update labels</td>
          </tr>
          <tr>
          <td><strong><em>config.worker_config.num_instances</em></strong></td>
          <td>Resize primary worker group</td>
          </tr>
          <tr>
          <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
          <td>Resize secondary worker group</td>
          </tr>
          <tr>
          <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
          change autoscaling policies</td>
          </tr>
          </tbody>
          </table>
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
      • getUpdateMaskOrBuilder

        public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
         Required. Specifies the path, relative to `Cluster`, of
         the field to update. For example, to change the number of workers
         in a cluster to 5, the `update_mask` parameter would be
         specified as `config.worker_config.num_instances`,
         and the `PATCH` request body would specify the new value, as follows:
        
             {
               "config":{
                 "workerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         Similarly, to change the number of preemptible workers in a cluster to 5,
         the `update_mask` parameter would be
         `config.secondary_worker_config.num_instances`, and the `PATCH` request
         body would be set as follows:
        
             {
               "config":{
                 "secondaryWorkerConfig":{
                   "numInstances":"5"
                 }
               }
             }
         <strong>Note:</strong> Currently, only the following fields can be updated:
        
          <table>
          <tbody>
          <tr>
          <td><strong>Mask</strong></td>
          <td><strong>Purpose</strong></td>
          </tr>
          <tr>
          <td><strong><em>labels</em></strong></td>
          <td>Update labels</td>
          </tr>
          <tr>
          <td><strong><em>config.worker_config.num_instances</em></strong></td>
          <td>Resize primary worker group</td>
          </tr>
          <tr>
          <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
          <td>Resize secondary worker group</td>
          </tr>
          <tr>
          <td>config.autoscaling_config.policy_uri</td><td>Use, stop using, or
          change autoscaling policies</td>
          </tr>
          </tbody>
          </table>
         
        .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getUpdateMaskOrBuilder in interface UpdateClusterRequestOrBuilder
      • getRequestId

        public String getRequestId()
         Optional. A unique ID used to identify the request. If the server
         receives two
         [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestId in interface UpdateClusterRequestOrBuilder
        Returns:
        The requestId.
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         Optional. A unique ID used to identify the request. If the server
         receives two
         [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestIdBytes in interface UpdateClusterRequestOrBuilder
        Returns:
        The bytes for requestId.
      • setRequestId

        public UpdateClusterRequest.Builder setRequestId​(String value)
         Optional. A unique ID used to identify the request. If the server
         receives two
         [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public UpdateClusterRequest.Builder clearRequestId()
         Optional. A unique ID used to identify the request. If the server
         receives two
         [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public UpdateClusterRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         Optional. A unique ID used to identify the request. If the server
         receives two
         [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
         with the same id, then the second request will be ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         It is recommended to always set this value to a
         [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). The maximum length is 40 characters.
         
        string request_id = 7 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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