Class Batch.Builder

  • All Implemented Interfaces:
    BatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Batch

    public static final class Batch.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Batch.Builder>
    implements BatchOrBuilder
     A representation of a batch workload in the service.
     
    Protobuf type google.cloud.dataproc.v1.Batch
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Batch.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Batch.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Batch.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public String getName()
         Output only. The resource name of the batch.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface BatchOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name of the batch.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface BatchOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Batch.Builder setName​(String value)
         Output only. The resource name of the batch.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Batch.Builder clearName()
         Output only. The resource name of the batch.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Batch.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the batch.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getUuid

        public String getUuid()
         Output only. A batch UUID (Unique Universal Identifier). The service
         generates this value when it creates the batch.
         
        string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUuid in interface BatchOrBuilder
        Returns:
        The uuid.
      • getUuidBytes

        public com.google.protobuf.ByteString getUuidBytes()
         Output only. A batch UUID (Unique Universal Identifier). The service
         generates this value when it creates the batch.
         
        string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUuidBytes in interface BatchOrBuilder
        Returns:
        The bytes for uuid.
      • setUuid

        public Batch.Builder setUuid​(String value)
         Output only. A batch UUID (Unique Universal Identifier). The service
         generates this value when it creates the batch.
         
        string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The uuid to set.
        Returns:
        This builder for chaining.
      • clearUuid

        public Batch.Builder clearUuid()
         Output only. A batch UUID (Unique Universal Identifier). The service
         generates this value when it creates the batch.
         
        string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUuidBytes

        public Batch.Builder setUuidBytes​(com.google.protobuf.ByteString value)
         Output only. A batch UUID (Unique Universal Identifier). The service
         generates this value when it creates the batch.
         
        string uuid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for uuid to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time when the batch was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface BatchOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time when the batch was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface BatchOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Batch.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the batch was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Batch.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the batch was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Batch.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the batch was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Batch.Builder clearCreateTime()
         Output only. The time when the batch was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The time when the batch was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time when the batch was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface BatchOrBuilder
      • hasPysparkBatch

        public boolean hasPysparkBatch()
         Optional. PySpark batch config.
         
        .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasPysparkBatch in interface BatchOrBuilder
        Returns:
        Whether the pysparkBatch field is set.
      • getPysparkBatch

        public PySparkBatch getPysparkBatch()
         Optional. PySpark batch config.
         
        .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPysparkBatch in interface BatchOrBuilder
        Returns:
        The pysparkBatch.
      • setPysparkBatch

        public Batch.Builder setPysparkBatch​(PySparkBatch value)
         Optional. PySpark batch config.
         
        .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];
      • setPysparkBatch

        public Batch.Builder setPysparkBatch​(PySparkBatch.Builder builderForValue)
         Optional. PySpark batch config.
         
        .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];
      • mergePysparkBatch

        public Batch.Builder mergePysparkBatch​(PySparkBatch value)
         Optional. PySpark batch config.
         
        .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];
      • clearPysparkBatch

        public Batch.Builder clearPysparkBatch()
         Optional. PySpark batch config.
         
        .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getPysparkBatchBuilder

        public PySparkBatch.Builder getPysparkBatchBuilder()
         Optional. PySpark batch config.
         
        .google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];
      • hasSparkBatch

        public boolean hasSparkBatch()
         Optional. Spark batch config.
         
        .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSparkBatch in interface BatchOrBuilder
        Returns:
        Whether the sparkBatch field is set.
      • getSparkBatch

        public SparkBatch getSparkBatch()
         Optional. Spark batch config.
         
        .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSparkBatch in interface BatchOrBuilder
        Returns:
        The sparkBatch.
      • setSparkBatch

        public Batch.Builder setSparkBatch​(SparkBatch value)
         Optional. Spark batch config.
         
        .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];
      • setSparkBatch

        public Batch.Builder setSparkBatch​(SparkBatch.Builder builderForValue)
         Optional. Spark batch config.
         
        .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];
      • mergeSparkBatch

        public Batch.Builder mergeSparkBatch​(SparkBatch value)
         Optional. Spark batch config.
         
        .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];
      • clearSparkBatch

        public Batch.Builder clearSparkBatch()
         Optional. Spark batch config.
         
        .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getSparkBatchBuilder

        public SparkBatch.Builder getSparkBatchBuilder()
         Optional. Spark batch config.
         
        .google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];
      • hasSparkRBatch

        public boolean hasSparkRBatch()
         Optional. SparkR batch config.
         
        .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSparkRBatch in interface BatchOrBuilder
        Returns:
        Whether the sparkRBatch field is set.
      • getSparkRBatch

        public SparkRBatch getSparkRBatch()
         Optional. SparkR batch config.
         
        .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSparkRBatch in interface BatchOrBuilder
        Returns:
        The sparkRBatch.
      • setSparkRBatch

        public Batch.Builder setSparkRBatch​(SparkRBatch value)
         Optional. SparkR batch config.
         
        .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setSparkRBatch

        public Batch.Builder setSparkRBatch​(SparkRBatch.Builder builderForValue)
         Optional. SparkR batch config.
         
        .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];
      • mergeSparkRBatch

        public Batch.Builder mergeSparkRBatch​(SparkRBatch value)
         Optional. SparkR batch config.
         
        .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];
      • clearSparkRBatch

        public Batch.Builder clearSparkRBatch()
         Optional. SparkR batch config.
         
        .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getSparkRBatchBuilder

        public SparkRBatch.Builder getSparkRBatchBuilder()
         Optional. SparkR batch config.
         
        .google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];
      • hasSparkSqlBatch

        public boolean hasSparkSqlBatch()
         Optional. SparkSql batch config.
         
        .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSparkSqlBatch in interface BatchOrBuilder
        Returns:
        Whether the sparkSqlBatch field is set.
      • getSparkSqlBatch

        public SparkSqlBatch getSparkSqlBatch()
         Optional. SparkSql batch config.
         
        .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSparkSqlBatch in interface BatchOrBuilder
        Returns:
        The sparkSqlBatch.
      • setSparkSqlBatch

        public Batch.Builder setSparkSqlBatch​(SparkSqlBatch value)
         Optional. SparkSql batch config.
         
        .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];
      • setSparkSqlBatch

        public Batch.Builder setSparkSqlBatch​(SparkSqlBatch.Builder builderForValue)
         Optional. SparkSql batch config.
         
        .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];
      • mergeSparkSqlBatch

        public Batch.Builder mergeSparkSqlBatch​(SparkSqlBatch value)
         Optional. SparkSql batch config.
         
        .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];
      • clearSparkSqlBatch

        public Batch.Builder clearSparkSqlBatch()
         Optional. SparkSql batch config.
         
        .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];
      • getSparkSqlBatchBuilder

        public SparkSqlBatch.Builder getSparkSqlBatchBuilder()
         Optional. SparkSql batch config.
         
        .google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];
      • hasRuntimeInfo

        public boolean hasRuntimeInfo()
         Output only. Runtime information about batch execution.
         
        .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasRuntimeInfo in interface BatchOrBuilder
        Returns:
        Whether the runtimeInfo field is set.
      • getRuntimeInfo

        public RuntimeInfo getRuntimeInfo()
         Output only. Runtime information about batch execution.
         
        .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRuntimeInfo in interface BatchOrBuilder
        Returns:
        The runtimeInfo.
      • setRuntimeInfo

        public Batch.Builder setRuntimeInfo​(RuntimeInfo value)
         Output only. Runtime information about batch execution.
         
        .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setRuntimeInfo

        public Batch.Builder setRuntimeInfo​(RuntimeInfo.Builder builderForValue)
         Output only. Runtime information about batch execution.
         
        .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeRuntimeInfo

        public Batch.Builder mergeRuntimeInfo​(RuntimeInfo value)
         Output only. Runtime information about batch execution.
         
        .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearRuntimeInfo

        public Batch.Builder clearRuntimeInfo()
         Output only. Runtime information about batch execution.
         
        .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRuntimeInfoBuilder

        public RuntimeInfo.Builder getRuntimeInfoBuilder()
         Output only. Runtime information about batch execution.
         
        .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRuntimeInfoOrBuilder

        public RuntimeInfoOrBuilder getRuntimeInfoOrBuilder()
         Output only. Runtime information about batch execution.
         
        .google.cloud.dataproc.v1.RuntimeInfo runtime_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRuntimeInfoOrBuilder in interface BatchOrBuilder
      • getStateValue

        public int getStateValue()
         Output only. The state of the batch.
         
        .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface BatchOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Batch.Builder setStateValue​(int value)
         Output only. The state of the batch.
         
        .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Batch.State getState()
         Output only. The state of the batch.
         
        .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface BatchOrBuilder
        Returns:
        The state.
      • setState

        public Batch.Builder setState​(Batch.State value)
         Output only. The state of the batch.
         
        .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Batch.Builder clearState()
         Output only. The state of the batch.
         
        .google.cloud.dataproc.v1.Batch.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getStateMessage

        public String getStateMessage()
         Output only. Batch state details, such as a failure
         description if the state is `FAILED`.
         
        string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateMessage in interface BatchOrBuilder
        Returns:
        The stateMessage.
      • getStateMessageBytes

        public com.google.protobuf.ByteString getStateMessageBytes()
         Output only. Batch state details, such as a failure
         description if the state is `FAILED`.
         
        string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateMessageBytes in interface BatchOrBuilder
        Returns:
        The bytes for stateMessage.
      • setStateMessage

        public Batch.Builder setStateMessage​(String value)
         Output only. Batch state details, such as a failure
         description if the state is `FAILED`.
         
        string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The stateMessage to set.
        Returns:
        This builder for chaining.
      • clearStateMessage

        public Batch.Builder clearStateMessage()
         Output only. Batch state details, such as a failure
         description if the state is `FAILED`.
         
        string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setStateMessageBytes

        public Batch.Builder setStateMessageBytes​(com.google.protobuf.ByteString value)
         Output only. Batch state details, such as a failure
         description if the state is `FAILED`.
         
        string state_message = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for stateMessage to set.
        Returns:
        This builder for chaining.
      • hasStateTime

        public boolean hasStateTime()
         Output only. The time when the batch entered a current state.
         
        .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStateTime in interface BatchOrBuilder
        Returns:
        Whether the stateTime field is set.
      • getStateTime

        public com.google.protobuf.Timestamp getStateTime()
         Output only. The time when the batch entered a current state.
         
        .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateTime in interface BatchOrBuilder
        Returns:
        The stateTime.
      • setStateTime

        public Batch.Builder setStateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the batch entered a current state.
         
        .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStateTime

        public Batch.Builder setStateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when the batch entered a current state.
         
        .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeStateTime

        public Batch.Builder mergeStateTime​(com.google.protobuf.Timestamp value)
         Output only. The time when the batch entered a current state.
         
        .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStateTime

        public Batch.Builder clearStateTime()
         Output only. The time when the batch entered a current state.
         
        .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStateTimeBuilder()
         Output only. The time when the batch entered a current state.
         
        .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder()
         Output only. The time when the batch entered a current state.
         
        .google.protobuf.Timestamp state_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateTimeOrBuilder in interface BatchOrBuilder
      • getCreator

        public String getCreator()
         Output only. The email address of the user who created the batch.
         
        string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreator in interface BatchOrBuilder
        Returns:
        The creator.
      • getCreatorBytes

        public com.google.protobuf.ByteString getCreatorBytes()
         Output only. The email address of the user who created the batch.
         
        string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreatorBytes in interface BatchOrBuilder
        Returns:
        The bytes for creator.
      • setCreator

        public Batch.Builder setCreator​(String value)
         Output only. The email address of the user who created the batch.
         
        string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The creator to set.
        Returns:
        This builder for chaining.
      • clearCreator

        public Batch.Builder clearCreator()
         Output only. The email address of the user who created the batch.
         
        string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setCreatorBytes

        public Batch.Builder setCreatorBytes​(com.google.protobuf.ByteString value)
         Output only. The email address of the user who created the batch.
         
        string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for creator to set.
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: BatchOrBuilder
         Optional. The labels to associate with this batch.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a batch.
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface BatchOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. The labels to associate with this batch.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a batch.
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface BatchOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional. The labels to associate with this batch.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a batch.
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface BatchOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional. The labels to associate with this batch.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a batch.
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface BatchOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional. The labels to associate with this batch.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a batch.
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface BatchOrBuilder
      • removeLabels

        public Batch.Builder removeLabels​(String key)
         Optional. The labels to associate with this batch.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a batch.
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Batch.Builder putLabels​(String key,
                                       String value)
         Optional. The labels to associate with this batch.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a batch.
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      • putAllLabels

        public Batch.Builder putAllLabels​(Map<String,​String> values)
         Optional. The labels to associate with this batch.
         Label **keys** must contain 1 to 63 characters, and must conform to
         [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
         Label **values** may be empty, but, if present, must contain 1 to 63
         characters, and must conform to [RFC
         1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
         associated with a batch.
         
        map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      • hasRuntimeConfig

        public boolean hasRuntimeConfig()
         Optional. Runtime configuration for the batch execution.
         
        .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasRuntimeConfig in interface BatchOrBuilder
        Returns:
        Whether the runtimeConfig field is set.
      • getRuntimeConfig

        public RuntimeConfig getRuntimeConfig()
         Optional. Runtime configuration for the batch execution.
         
        .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRuntimeConfig in interface BatchOrBuilder
        Returns:
        The runtimeConfig.
      • setRuntimeConfig

        public Batch.Builder setRuntimeConfig​(RuntimeConfig value)
         Optional. Runtime configuration for the batch execution.
         
        .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];
      • setRuntimeConfig

        public Batch.Builder setRuntimeConfig​(RuntimeConfig.Builder builderForValue)
         Optional. Runtime configuration for the batch execution.
         
        .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];
      • mergeRuntimeConfig

        public Batch.Builder mergeRuntimeConfig​(RuntimeConfig value)
         Optional. Runtime configuration for the batch execution.
         
        .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];
      • clearRuntimeConfig

        public Batch.Builder clearRuntimeConfig()
         Optional. Runtime configuration for the batch execution.
         
        .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];
      • getRuntimeConfigBuilder

        public RuntimeConfig.Builder getRuntimeConfigBuilder()
         Optional. Runtime configuration for the batch execution.
         
        .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];
      • getRuntimeConfigOrBuilder

        public RuntimeConfigOrBuilder getRuntimeConfigOrBuilder()
         Optional. Runtime configuration for the batch execution.
         
        .google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRuntimeConfigOrBuilder in interface BatchOrBuilder
      • hasEnvironmentConfig

        public boolean hasEnvironmentConfig()
         Optional. Environment configuration for the batch execution.
         
        .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasEnvironmentConfig in interface BatchOrBuilder
        Returns:
        Whether the environmentConfig field is set.
      • getEnvironmentConfig

        public EnvironmentConfig getEnvironmentConfig()
         Optional. Environment configuration for the batch execution.
         
        .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEnvironmentConfig in interface BatchOrBuilder
        Returns:
        The environmentConfig.
      • setEnvironmentConfig

        public Batch.Builder setEnvironmentConfig​(EnvironmentConfig value)
         Optional. Environment configuration for the batch execution.
         
        .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];
      • setEnvironmentConfig

        public Batch.Builder setEnvironmentConfig​(EnvironmentConfig.Builder builderForValue)
         Optional. Environment configuration for the batch execution.
         
        .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];
      • mergeEnvironmentConfig

        public Batch.Builder mergeEnvironmentConfig​(EnvironmentConfig value)
         Optional. Environment configuration for the batch execution.
         
        .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];
      • clearEnvironmentConfig

        public Batch.Builder clearEnvironmentConfig()
         Optional. Environment configuration for the batch execution.
         
        .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];
      • getEnvironmentConfigBuilder

        public EnvironmentConfig.Builder getEnvironmentConfigBuilder()
         Optional. Environment configuration for the batch execution.
         
        .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];
      • getEnvironmentConfigOrBuilder

        public EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder()
         Optional. Environment configuration for the batch execution.
         
        .google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEnvironmentConfigOrBuilder in interface BatchOrBuilder
      • getOperation

        public String getOperation()
         Output only. The resource name of the operation associated with this batch.
         
        string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOperation in interface BatchOrBuilder
        Returns:
        The operation.
      • getOperationBytes

        public com.google.protobuf.ByteString getOperationBytes()
         Output only. The resource name of the operation associated with this batch.
         
        string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOperationBytes in interface BatchOrBuilder
        Returns:
        The bytes for operation.
      • setOperation

        public Batch.Builder setOperation​(String value)
         Output only. The resource name of the operation associated with this batch.
         
        string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The operation to set.
        Returns:
        This builder for chaining.
      • clearOperation

        public Batch.Builder clearOperation()
         Output only. The resource name of the operation associated with this batch.
         
        string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setOperationBytes

        public Batch.Builder setOperationBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of the operation associated with this batch.
         
        string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for operation to set.
        Returns:
        This builder for chaining.
      • getStateHistoryList

        public List<Batch.StateHistory> getStateHistoryList()
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateHistoryList in interface BatchOrBuilder
      • getStateHistoryCount

        public int getStateHistoryCount()
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateHistoryCount in interface BatchOrBuilder
      • getStateHistory

        public Batch.StateHistory getStateHistory​(int index)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateHistory in interface BatchOrBuilder
      • setStateHistory

        public Batch.Builder setStateHistory​(int index,
                                             Batch.StateHistory value)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStateHistory

        public Batch.Builder setStateHistory​(int index,
                                             Batch.StateHistory.Builder builderForValue)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStateHistory

        public Batch.Builder addStateHistory​(Batch.StateHistory value)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStateHistory

        public Batch.Builder addStateHistory​(int index,
                                             Batch.StateHistory value)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStateHistory

        public Batch.Builder addStateHistory​(Batch.StateHistory.Builder builderForValue)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStateHistory

        public Batch.Builder addStateHistory​(int index,
                                             Batch.StateHistory.Builder builderForValue)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllStateHistory

        public Batch.Builder addAllStateHistory​(Iterable<? extends Batch.StateHistory> values)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStateHistory

        public Batch.Builder clearStateHistory()
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeStateHistory

        public Batch.Builder removeStateHistory​(int index)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStateHistoryBuilder

        public Batch.StateHistory.Builder getStateHistoryBuilder​(int index)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStateHistoryOrBuilder

        public Batch.StateHistoryOrBuilder getStateHistoryOrBuilder​(int index)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateHistoryOrBuilder in interface BatchOrBuilder
      • addStateHistoryBuilder

        public Batch.StateHistory.Builder addStateHistoryBuilder()
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addStateHistoryBuilder

        public Batch.StateHistory.Builder addStateHistoryBuilder​(int index)
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStateHistoryBuilderList

        public List<Batch.StateHistory.Builder> getStateHistoryBuilderList()
         Output only. Historical state information for the batch.
         
        repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUnknownFields

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

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