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

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

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

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

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

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

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

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

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

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

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

        public CreateBatchRequest.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateBatchRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        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<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:
        getParent in interface CreateBatchRequestOrBuilder
        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:
        getParentBytes in interface CreateBatchRequestOrBuilder
        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:
        hasBatch in interface CreateBatchRequestOrBuilder
        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:
        getBatch in interface CreateBatchRequestOrBuilder
        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];
      • 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:
        getBatchId in interface CreateBatchRequestOrBuilder
        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:
        getBatchIdBytes in interface CreateBatchRequestOrBuilder
        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:
        getRequestId in interface CreateBatchRequestOrBuilder
        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:
        getRequestIdBytes in interface CreateBatchRequestOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateBatchRequest.Builder>
      • mergeUnknownFields

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