Package com.google.cloud.dataproc.v1
Class CreateBatchRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CreateBatchRequest.Builder>
-
- com.google.cloud.dataproc.v1.CreateBatchRequest.Builder
-
- All Implemented Interfaces:
CreateBatchRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CreateBatchRequest
public static final class CreateBatchRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateBatchRequest.Builder> implements CreateBatchRequestOrBuilder
A request to create a batch workload.
Protobuf typegoogle.cloud.dataproc.v1.CreateBatchRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateBatchRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CreateBatchRequestbuild()CreateBatchRequestbuildPartial()CreateBatchRequest.Builderclear()CreateBatchRequest.BuilderclearBatch()Required.CreateBatchRequest.BuilderclearBatchId()Optional.CreateBatchRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CreateBatchRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CreateBatchRequest.BuilderclearParent()Required.CreateBatchRequest.BuilderclearRequestId()Optional.CreateBatchRequest.Builderclone()BatchgetBatch()Required.Batch.BuildergetBatchBuilder()Required.StringgetBatchId()Optional.com.google.protobuf.ByteStringgetBatchIdBytes()Optional.BatchOrBuildergetBatchOrBuilder()Required.CreateBatchRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.StringgetRequestId()Optional.com.google.protobuf.ByteStringgetRequestIdBytes()Optional.booleanhasBatch()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CreateBatchRequest.BuildermergeBatch(Batch value)Required.CreateBatchRequest.BuildermergeFrom(CreateBatchRequest other)CreateBatchRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CreateBatchRequest.BuildermergeFrom(com.google.protobuf.Message other)CreateBatchRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CreateBatchRequest.BuildersetBatch(Batch value)Required.CreateBatchRequest.BuildersetBatch(Batch.Builder builderForValue)Required.CreateBatchRequest.BuildersetBatchId(String value)Optional.CreateBatchRequest.BuildersetBatchIdBytes(com.google.protobuf.ByteString value)Optional.CreateBatchRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CreateBatchRequest.BuildersetParent(String value)Required.CreateBatchRequest.BuildersetParentBytes(com.google.protobuf.ByteString value)Required.CreateBatchRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CreateBatchRequest.BuildersetRequestId(String value)Optional.CreateBatchRequest.BuildersetRequestIdBytes(com.google.protobuf.ByteString value)Optional.CreateBatchRequest.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<CreateBatchRequest.Builder>
-
clear
public CreateBatchRequest.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<CreateBatchRequest.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<CreateBatchRequest.Builder>
-
getDefaultInstanceForType
public CreateBatchRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CreateBatchRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CreateBatchRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CreateBatchRequest.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<CreateBatchRequest.Builder>
-
setField
public CreateBatchRequest.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<CreateBatchRequest.Builder>
-
clearField
public CreateBatchRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateBatchRequest.Builder>
-
clearOneof
public CreateBatchRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateBatchRequest.Builder>
-
setRepeatedField
public CreateBatchRequest.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<CreateBatchRequest.Builder>
-
addRepeatedField
public CreateBatchRequest.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<CreateBatchRequest.Builder>
-
mergeFrom
public CreateBatchRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateBatchRequest.Builder>
-
mergeFrom
public CreateBatchRequest.Builder mergeFrom(CreateBatchRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateBatchRequest.Builder>
-
mergeFrom
public CreateBatchRequest.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<CreateBatchRequest.Builder>- Throws:
IOException
-
getParent
public String getParent()
Required. The parent resource where this batch will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceCreateBatchRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. The parent resource where this batch will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceCreateBatchRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
public CreateBatchRequest.Builder setParent(String value)
Required. The parent resource where this batch will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public CreateBatchRequest.Builder clearParent()
Required. The parent resource where this batch will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
public CreateBatchRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The parent resource where this batch will be created.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasBatch
public boolean hasBatch()
Required. The batch to create.
.google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasBatchin interfaceCreateBatchRequestOrBuilder- Returns:
- Whether the batch field is set.
-
getBatch
public Batch getBatch()
Required. The batch to create.
.google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBatchin interfaceCreateBatchRequestOrBuilder- Returns:
- The batch.
-
setBatch
public CreateBatchRequest.Builder setBatch(Batch value)
Required. The batch to create.
.google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED];
-
setBatch
public CreateBatchRequest.Builder setBatch(Batch.Builder builderForValue)
Required. The batch to create.
.google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED];
-
mergeBatch
public CreateBatchRequest.Builder mergeBatch(Batch value)
Required. The batch to create.
.google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED];
-
clearBatch
public CreateBatchRequest.Builder clearBatch()
Required. The batch to create.
.google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED];
-
getBatchBuilder
public Batch.Builder getBatchBuilder()
Required. The batch to create.
.google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED];
-
getBatchOrBuilder
public BatchOrBuilder getBatchOrBuilder()
Required. The batch to create.
.google.cloud.dataproc.v1.Batch batch = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBatchOrBuilderin interfaceCreateBatchRequestOrBuilder
-
getBatchId
public String getBatchId()
Optional. The ID to use for the batch, which will become the final component of the batch's resource name. This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBatchIdin interfaceCreateBatchRequestOrBuilder- Returns:
- The batchId.
-
getBatchIdBytes
public com.google.protobuf.ByteString getBatchIdBytes()
Optional. The ID to use for the batch, which will become the final component of the batch's resource name. This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBatchIdBytesin interfaceCreateBatchRequestOrBuilder- Returns:
- The bytes for batchId.
-
setBatchId
public CreateBatchRequest.Builder setBatchId(String value)
Optional. The ID to use for the batch, which will become the final component of the batch's resource name. This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The batchId to set.- Returns:
- This builder for chaining.
-
clearBatchId
public CreateBatchRequest.Builder clearBatchId()
Optional. The ID to use for the batch, which will become the final component of the batch's resource name. This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setBatchIdBytes
public CreateBatchRequest.Builder setBatchIdBytes(com.google.protobuf.ByteString value)
Optional. The ID to use for the batch, which will become the final component of the batch's resource name. This value must be 4-63 characters. Valid characters are `/[a-z][0-9]-/`.
string batch_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for batchId to set.- Returns:
- This builder for chaining.
-
getRequestId
public String getRequestId()
Optional. A unique ID used to identify the request. If the service receives two [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first Batch created and stored in the backend is returned. Recommendation: Set this value to a [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestIdin interfaceCreateBatchRequestOrBuilder- Returns:
- The requestId.
-
getRequestIdBytes
public com.google.protobuf.ByteString getRequestIdBytes()
Optional. A unique ID used to identify the request. If the service receives two [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first Batch created and stored in the backend is returned. Recommendation: Set this value to a [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestIdBytesin interfaceCreateBatchRequestOrBuilder- Returns:
- The bytes for requestId.
-
setRequestId
public CreateBatchRequest.Builder setRequestId(String value)
Optional. A unique ID used to identify the request. If the service receives two [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first Batch created and stored in the backend is returned. Recommendation: Set this value to a [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The requestId to set.- Returns:
- This builder for chaining.
-
clearRequestId
public CreateBatchRequest.Builder clearRequestId()
Optional. A unique ID used to identify the request. If the service receives two [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first Batch created and stored in the backend is returned. Recommendation: Set this value to a [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setRequestIdBytes
public CreateBatchRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
Optional. A unique ID used to identify the request. If the service receives two [CreateBatchRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateBatchRequest)s with the same request_id, the second request is ignored and the Operation that corresponds to the first Batch created and stored in the backend is returned. Recommendation: Set this value to a [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). The value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for requestId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CreateBatchRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateBatchRequest.Builder>
-
mergeUnknownFields
public final CreateBatchRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CreateBatchRequest.Builder>
-
-