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

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

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

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

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

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

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

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

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

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

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

        public ResizeNodeGroupRequest.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<ResizeNodeGroupRequest.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The name of the node group to resize.
         Format:
         `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface ResizeNodeGroupRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The name of the node group to resize.
         Format:
         `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface ResizeNodeGroupRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ResizeNodeGroupRequest.Builder setName​(String value)
         Required. The name of the node group to resize.
         Format:
         `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ResizeNodeGroupRequest.Builder clearName()
         Required. The name of the node group to resize.
         Format:
         `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public ResizeNodeGroupRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The name of the node group to resize.
         Format:
         `projects/{project}/regions/{region}/clusters/{cluster}/nodeGroups/{nodeGroup}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getSize

        public int getSize()
         Required. The number of running instances for the node group to maintain.
         The group adds or removes instances to maintain the number of instances
         specified by this parameter.
         
        int32 size = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSize in interface ResizeNodeGroupRequestOrBuilder
        Returns:
        The size.
      • setSize

        public ResizeNodeGroupRequest.Builder setSize​(int value)
         Required. The number of running instances for the node group to maintain.
         The group adds or removes instances to maintain the number of instances
         specified by this parameter.
         
        int32 size = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The size to set.
        Returns:
        This builder for chaining.
      • clearSize

        public ResizeNodeGroupRequest.Builder clearSize()
         Required. The number of running instances for the node group to maintain.
         The group adds or removes instances to maintain the number of instances
         specified by this parameter.
         
        int32 size = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getRequestId

        public String getRequestId()
         Optional. A unique ID used to identify the request. If the server receives
         two
         [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestId in interface ResizeNodeGroupRequestOrBuilder
        Returns:
        The requestId.
      • getRequestIdBytes

        public com.google.protobuf.ByteString getRequestIdBytes()
         Optional. A unique ID used to identify the request. If the server receives
         two
         [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRequestIdBytes in interface ResizeNodeGroupRequestOrBuilder
        Returns:
        The bytes for requestId.
      • setRequestId

        public ResizeNodeGroupRequest.Builder setRequestId​(String value)
         Optional. A unique ID used to identify the request. If the server receives
         two
         [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • clearRequestId

        public ResizeNodeGroupRequest.Builder clearRequestId()
         Optional. A unique ID used to identify the request. If the server receives
         two
         [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public ResizeNodeGroupRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         Optional. A unique ID used to identify the request. If the server receives
         two
         [ResizeNodeGroupRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
         with the same ID, the second request is ignored and the
         first [google.longrunning.Operation][google.longrunning.Operation] created
         and stored in the backend is returned.
        
         Recommendation: 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • hasGracefulDecommissionTimeout

        public boolean hasGracefulDecommissionTimeout()
         Optional. Timeout for graceful YARN decommissioning. [Graceful
         decommissioning]
         (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
         allows the removal of nodes from the Compute Engine node group
         without interrupting jobs in progress. This 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasGracefulDecommissionTimeout in interface ResizeNodeGroupRequestOrBuilder
        Returns:
        Whether the gracefulDecommissionTimeout field is set.
      • getGracefulDecommissionTimeout

        public com.google.protobuf.Duration getGracefulDecommissionTimeout()
         Optional. Timeout for graceful YARN decommissioning. [Graceful
         decommissioning]
         (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
         allows the removal of nodes from the Compute Engine node group
         without interrupting jobs in progress. This 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getGracefulDecommissionTimeout in interface ResizeNodeGroupRequestOrBuilder
        Returns:
        The gracefulDecommissionTimeout.
      • setGracefulDecommissionTimeout

        public ResizeNodeGroupRequest.Builder setGracefulDecommissionTimeout​(com.google.protobuf.Duration value)
         Optional. Timeout for graceful YARN decommissioning. [Graceful
         decommissioning]
         (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
         allows the removal of nodes from the Compute Engine node group
         without interrupting jobs in progress. This 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      • setGracefulDecommissionTimeout

        public ResizeNodeGroupRequest.Builder setGracefulDecommissionTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Optional. Timeout for graceful YARN decommissioning. [Graceful
         decommissioning]
         (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
         allows the removal of nodes from the Compute Engine node group
         without interrupting jobs in progress. This 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      • mergeGracefulDecommissionTimeout

        public ResizeNodeGroupRequest.Builder mergeGracefulDecommissionTimeout​(com.google.protobuf.Duration value)
         Optional. Timeout for graceful YARN decommissioning. [Graceful
         decommissioning]
         (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
         allows the removal of nodes from the Compute Engine node group
         without interrupting jobs in progress. This 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      • clearGracefulDecommissionTimeout

        public ResizeNodeGroupRequest.Builder clearGracefulDecommissionTimeout()
         Optional. Timeout for graceful YARN decommissioning. [Graceful
         decommissioning]
         (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
         allows the removal of nodes from the Compute Engine node group
         without interrupting jobs in progress. This 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getGracefulDecommissionTimeoutBuilder

        public com.google.protobuf.Duration.Builder getGracefulDecommissionTimeoutBuilder()
         Optional. Timeout for graceful YARN decommissioning. [Graceful
         decommissioning]
         (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
         allows the removal of nodes from the Compute Engine node group
         without interrupting jobs in progress. This 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getGracefulDecommissionTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder()
         Optional. Timeout for graceful YARN decommissioning. [Graceful
         decommissioning]
         (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-clusters#graceful_decommissioning)
         allows the removal of nodes from the Compute Engine node group
         without interrupting jobs in progress. This 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getGracefulDecommissionTimeoutOrBuilder in interface ResizeNodeGroupRequestOrBuilder
      • setUnknownFields

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

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