Package com.google.cloud.dataproc.v1
Class StopClusterRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
- com.google.cloud.dataproc.v1.StopClusterRequest.Builder
-
- All Implemented Interfaces:
StopClusterRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StopClusterRequest
public static final class StopClusterRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder> implements StopClusterRequestOrBuilder
A request to stop a cluster.
Protobuf typegoogle.cloud.dataproc.v1.StopClusterRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StopClusterRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StopClusterRequestbuild()StopClusterRequestbuildPartial()StopClusterRequest.Builderclear()StopClusterRequest.BuilderclearClusterName()Required.StopClusterRequest.BuilderclearClusterUuid()Optional.StopClusterRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)StopClusterRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)StopClusterRequest.BuilderclearProjectId()Required.StopClusterRequest.BuilderclearRegion()Required.StopClusterRequest.BuilderclearRequestId()Optional.StopClusterRequest.Builderclone()StringgetClusterName()Required.com.google.protobuf.ByteStringgetClusterNameBytes()Required.StringgetClusterUuid()Optional.com.google.protobuf.ByteStringgetClusterUuidBytes()Optional.StopClusterRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetProjectId()Required.com.google.protobuf.ByteStringgetProjectIdBytes()Required.StringgetRegion()Required.com.google.protobuf.ByteStringgetRegionBytes()Required.StringgetRequestId()Optional.com.google.protobuf.ByteStringgetRequestIdBytes()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()StopClusterRequest.BuildermergeFrom(StopClusterRequest other)StopClusterRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)StopClusterRequest.BuildermergeFrom(com.google.protobuf.Message other)StopClusterRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)StopClusterRequest.BuildersetClusterName(String value)Required.StopClusterRequest.BuildersetClusterNameBytes(com.google.protobuf.ByteString value)Required.StopClusterRequest.BuildersetClusterUuid(String value)Optional.StopClusterRequest.BuildersetClusterUuidBytes(com.google.protobuf.ByteString value)Optional.StopClusterRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StopClusterRequest.BuildersetProjectId(String value)Required.StopClusterRequest.BuildersetProjectIdBytes(com.google.protobuf.ByteString value)Required.StopClusterRequest.BuildersetRegion(String value)Required.StopClusterRequest.BuildersetRegionBytes(com.google.protobuf.ByteString value)Required.StopClusterRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)StopClusterRequest.BuildersetRequestId(String value)Optional.StopClusterRequest.BuildersetRequestIdBytes(com.google.protobuf.ByteString value)Optional.StopClusterRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
clear
public StopClusterRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
getDefaultInstanceForType
public StopClusterRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public StopClusterRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StopClusterRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StopClusterRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
setField
public StopClusterRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
clearField
public StopClusterRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
clearOneof
public StopClusterRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
setRepeatedField
public StopClusterRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
addRepeatedField
public StopClusterRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
mergeFrom
public StopClusterRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StopClusterRequest.Builder>
-
mergeFrom
public StopClusterRequest.Builder mergeFrom(StopClusterRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
mergeFrom
public StopClusterRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StopClusterRequest.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:
getProjectIdin interfaceStopClusterRequestOrBuilder- 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:
getProjectIdBytesin interfaceStopClusterRequestOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
public StopClusterRequest.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 StopClusterRequest.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 StopClusterRequest.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 = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRegionin interfaceStopClusterRequestOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
Required. The Dataproc region in which to handle the request.
string region = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRegionBytesin interfaceStopClusterRequestOrBuilder- Returns:
- The bytes for region.
-
setRegion
public StopClusterRequest.Builder setRegion(String value)
Required. The Dataproc region in which to handle the request.
string region = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
public StopClusterRequest.Builder clearRegion()
Required. The Dataproc region in which to handle the request.
string region = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setRegionBytes
public StopClusterRequest.Builder setRegionBytes(com.google.protobuf.ByteString value)
Required. The Dataproc region in which to handle the request.
string region = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
getClusterName
public String getClusterName()
Required. The cluster name.
string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getClusterNamein interfaceStopClusterRequestOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.ByteString getClusterNameBytes()
Required. The cluster name.
string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getClusterNameBytesin interfaceStopClusterRequestOrBuilder- Returns:
- The bytes for clusterName.
-
setClusterName
public StopClusterRequest.Builder setClusterName(String value)
Required. The cluster name.
string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The clusterName to set.- Returns:
- This builder for chaining.
-
clearClusterName
public StopClusterRequest.Builder clearClusterName()
Required. The cluster name.
string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setClusterNameBytes
public StopClusterRequest.Builder setClusterNameBytes(com.google.protobuf.ByteString value)
Required. The cluster name.
string cluster_name = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for clusterName to set.- Returns:
- This builder for chaining.
-
getClusterUuid
public String getClusterUuid()
Optional. Specifying the `cluster_uuid` means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getClusterUuidin interfaceStopClusterRequestOrBuilder- Returns:
- The clusterUuid.
-
getClusterUuidBytes
public com.google.protobuf.ByteString getClusterUuidBytes()
Optional. Specifying the `cluster_uuid` means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getClusterUuidBytesin interfaceStopClusterRequestOrBuilder- Returns:
- The bytes for clusterUuid.
-
setClusterUuid
public StopClusterRequest.Builder setClusterUuid(String value)
Optional. Specifying the `cluster_uuid` means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The clusterUuid to set.- Returns:
- This builder for chaining.
-
clearClusterUuid
public StopClusterRequest.Builder clearClusterUuid()
Optional. Specifying the `cluster_uuid` means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setClusterUuidBytes
public StopClusterRequest.Builder setClusterUuidBytes(com.google.protobuf.ByteString value)
Optional. Specifying the `cluster_uuid` means the RPC will fail (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
string cluster_uuid = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for clusterUuid to set.- Returns:
- This builder for chaining.
-
getRequestId
public String getRequestId()
Optional. A unique ID used to identify the request. If the server receives two [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)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. 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 = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestIdin interfaceStopClusterRequestOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()
Optional. A unique ID used to identify the request. If the server receives two [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)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. 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 = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestIdBytesin interfaceStopClusterRequestOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
public StopClusterRequest.Builder setRequestId(String value)
Optional. A unique ID used to identify the request. If the server receives two [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)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. 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 = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
public StopClusterRequest.Builder clearRequestId()
Optional. A unique ID used to identify the request. If the server receives two [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)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. 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 = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setRequestIdBytes
public StopClusterRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
Optional. A unique ID used to identify the request. If the server receives two [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)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. 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 = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final StopClusterRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
mergeUnknownFields
public final StopClusterRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StopClusterRequest.Builder>
-
-