Class Batch.Builder (4.52.0)

public static final class Batch.Builder extends GeneratedMessageV3.Builder<Batch.Builder> implements BatchOrBuilder

A representation of a batch workload in the service.

Protobuf type google.cloud.dataproc.v1.Batch

Implements

BatchOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllStateHistory(Iterable<? extends Batch.StateHistory> values)

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];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dataproc.v1.Batch.StateHistory>
Returns
Type Description
Batch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Batch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Batch.Builder
Overrides

addStateHistory(Batch.StateHistory value)

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];

Parameter
Name Description
value Batch.StateHistory
Returns
Type Description
Batch.Builder

addStateHistory(Batch.StateHistory.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Batch.StateHistory.Builder
Returns
Type Description
Batch.Builder

addStateHistory(int index, Batch.StateHistory value)

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];

Parameters
Name Description
index int
value Batch.StateHistory
Returns
Type Description
Batch.Builder

addStateHistory(int index, Batch.StateHistory.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Batch.StateHistory.Builder
Returns
Type Description
Batch.Builder

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];

Returns
Type Description
Batch.StateHistory.Builder

addStateHistoryBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
Batch.StateHistory.Builder

build()

public Batch build()
Returns
Type Description
Batch

buildPartial()

public Batch buildPartial()
Returns
Type Description
Batch

clear()

public Batch.Builder clear()
Returns
Type Description
Batch.Builder
Overrides

clearBatchConfig()

public Batch.Builder clearBatchConfig()
Returns
Type Description
Batch.Builder

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];

Returns
Type Description
Batch.Builder

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
Type Description
Batch.Builder

This builder for chaining.

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];

Returns
Type Description
Batch.Builder

clearField(Descriptors.FieldDescriptor field)

public Batch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Batch.Builder
Overrides

clearLabels()

public Batch.Builder clearLabels()
Returns
Type Description
Batch.Builder

clearName()

public Batch.Builder clearName()

Output only. The resource name of the batch.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Batch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Batch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Batch.Builder
Overrides

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
Type Description
Batch.Builder

This builder for chaining.

clearPysparkBatch()

public Batch.Builder clearPysparkBatch()

Optional. PySpark batch config.

.google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Batch.Builder

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];

Returns
Type Description
Batch.Builder

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];

Returns
Type Description
Batch.Builder

clearSparkBatch()

public Batch.Builder clearSparkBatch()

Optional. Spark batch config.

.google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Batch.Builder

clearSparkRBatch()

public Batch.Builder clearSparkRBatch()

Optional. SparkR batch config.

.google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Batch.Builder

clearSparkSqlBatch()

public Batch.Builder clearSparkSqlBatch()

Optional. SparkSql batch config.

.google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Batch.Builder

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
Type Description
Batch.Builder

This builder for chaining.

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];

Returns
Type Description
Batch.Builder

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
Type Description
Batch.Builder

This builder for chaining.

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];

Returns
Type Description
Batch.Builder

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
Type Description
Batch.Builder

This builder for chaining.

clone()

public Batch.Builder clone()
Returns
Type Description
Batch.Builder
Overrides

containsLabels(String key)

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. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a batch.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getBatchConfigCase()

public Batch.BatchConfigCase getBatchConfigCase()
Returns
Type Description
Batch.BatchConfigCase

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the batch was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the batch was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the batch was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

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];

Returns
Type Description
String

The creator.

getCreatorBytes()

public ByteString getCreatorBytes()

Output only. The email address of the user who created the batch.

string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for creator.

getDefaultInstanceForType()

public Batch getDefaultInstanceForType()
Returns
Type Description
Batch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnvironmentConfig()

public EnvironmentConfig getEnvironmentConfig()

Optional. Environment configuration for the batch execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EnvironmentConfig

The environmentConfig.

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];

Returns
Type Description
EnvironmentConfig.Builder

getEnvironmentConfigOrBuilder()

public EnvironmentConfigOrBuilder getEnvironmentConfigOrBuilder()

Optional. Environment configuration for the batch execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EnvironmentConfigOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. The labels to associate with this batch. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a batch.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

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. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a batch.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

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. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a batch.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

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. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a batch.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Output only. The resource name of the batch.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the batch.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

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];

Returns
Type Description
String

The operation.

getOperationBytes()

public ByteString getOperationBytes()

Output only. The resource name of the operation associated with this batch.

string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for operation.

getPysparkBatch()

public PySparkBatch getPysparkBatch()

Optional. PySpark batch config.

.google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PySparkBatch

The pysparkBatch.

getPysparkBatchBuilder()

public PySparkBatch.Builder getPysparkBatchBuilder()

Optional. PySpark batch config.

.google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PySparkBatch.Builder

getPysparkBatchOrBuilder()

public PySparkBatchOrBuilder getPysparkBatchOrBuilder()

Optional. PySpark batch config.

.google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PySparkBatchOrBuilder

getRuntimeConfig()

public RuntimeConfig getRuntimeConfig()

Optional. Runtime configuration for the batch execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RuntimeConfig

The runtimeConfig.

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];

Returns
Type Description
RuntimeConfig.Builder

getRuntimeConfigOrBuilder()

public RuntimeConfigOrBuilder getRuntimeConfigOrBuilder()

Optional. Runtime configuration for the batch execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RuntimeConfigOrBuilder

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];

Returns
Type Description
RuntimeInfo

The runtimeInfo.

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];

Returns
Type Description
RuntimeInfo.Builder

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];

Returns
Type Description
RuntimeInfoOrBuilder

getSparkBatch()

public SparkBatch getSparkBatch()

Optional. Spark batch config.

.google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkBatch

The sparkBatch.

getSparkBatchBuilder()

public SparkBatch.Builder getSparkBatchBuilder()

Optional. Spark batch config.

.google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkBatch.Builder

getSparkBatchOrBuilder()

public SparkBatchOrBuilder getSparkBatchOrBuilder()

Optional. Spark batch config.

.google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkBatchOrBuilder

getSparkRBatch()

public SparkRBatch getSparkRBatch()

Optional. SparkR batch config.

.google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkRBatch

The sparkRBatch.

getSparkRBatchBuilder()

public SparkRBatch.Builder getSparkRBatchBuilder()

Optional. SparkR batch config.

.google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkRBatch.Builder

getSparkRBatchOrBuilder()

public SparkRBatchOrBuilder getSparkRBatchOrBuilder()

Optional. SparkR batch config.

.google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkRBatchOrBuilder

getSparkSqlBatch()

public SparkSqlBatch getSparkSqlBatch()

Optional. SparkSql batch config.

.google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkSqlBatch

The sparkSqlBatch.

getSparkSqlBatchBuilder()

public SparkSqlBatch.Builder getSparkSqlBatchBuilder()

Optional. SparkSql batch config.

.google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkSqlBatch.Builder

getSparkSqlBatchOrBuilder()

public SparkSqlBatchOrBuilder getSparkSqlBatchOrBuilder()

Optional. SparkSql batch config.

.google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkSqlBatchOrBuilder

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];

Returns
Type Description
Batch.State

The state.

getStateHistory(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
Batch.StateHistory

getStateHistoryBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
Batch.StateHistory.Builder

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];

Returns
Type Description
List<Builder>

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];

Returns
Type Description
int

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];

Returns
Type Description
List<StateHistory>

getStateHistoryOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
Batch.StateHistoryOrBuilder

getStateHistoryOrBuilderList()

public List<? extends Batch.StateHistoryOrBuilder> getStateHistoryOrBuilderList()

Output only. Historical state information for the batch.

repeated .google.cloud.dataproc.v1.Batch.StateHistory state_history = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.dataproc.v1.Batch.StateHistoryOrBuilder>

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];

Returns
Type Description
String

The stateMessage.

getStateMessageBytes()

public 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];

Returns
Type Description
ByteString

The bytes for stateMessage.

getStateTime()

public 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];

Returns
Type Description
Timestamp

The stateTime.

getStateTimeBuilder()

public 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];

Returns
Type Description
Builder

getStateTimeOrBuilder()

public 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];

Returns
Type Description
TimestampOrBuilder

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];

Returns
Type Description
int

The enum numeric value on the wire for state.

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];

Returns
Type Description
String

The uuid.

getUuidBytes()

public 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];

Returns
Type Description
ByteString

The bytes for uuid.

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];

Returns
Type Description
boolean

Whether the createTime field is set.

hasEnvironmentConfig()

public boolean hasEnvironmentConfig()

Optional. Environment configuration for the batch execution.

.google.cloud.dataproc.v1.EnvironmentConfig environment_config = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the environmentConfig field is set.

hasPysparkBatch()

public boolean hasPysparkBatch()

Optional. PySpark batch config.

.google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pysparkBatch field is set.

hasRuntimeConfig()

public boolean hasRuntimeConfig()

Optional. Runtime configuration for the batch execution.

.google.cloud.dataproc.v1.RuntimeConfig runtime_config = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the runtimeConfig field is set.

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];

Returns
Type Description
boolean

Whether the runtimeInfo field is set.

hasSparkBatch()

public boolean hasSparkBatch()

Optional. Spark batch config.

.google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sparkBatch field is set.

hasSparkRBatch()

public boolean hasSparkRBatch()

Optional. SparkR batch config.

.google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sparkRBatch field is set.

hasSparkSqlBatch()

public boolean hasSparkSqlBatch()

Optional. SparkSql batch config.

.google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sparkSqlBatch field is set.

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];

Returns
Type Description
boolean

Whether the stateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Batch.Builder mergeCreateTime(Timestamp value)

Output only. The time when the batch was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Batch.Builder

mergeEnvironmentConfig(EnvironmentConfig value)

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];

Parameter
Name Description
value EnvironmentConfig
Returns
Type Description
Batch.Builder

mergeFrom(Batch other)

public Batch.Builder mergeFrom(Batch other)
Parameter
Name Description
other Batch
Returns
Type Description
Batch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Batch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Batch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Batch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Batch.Builder
Overrides

mergePysparkBatch(PySparkBatch value)

public Batch.Builder mergePysparkBatch(PySparkBatch value)

Optional. PySpark batch config.

.google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PySparkBatch
Returns
Type Description
Batch.Builder

mergeRuntimeConfig(RuntimeConfig value)

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];

Parameter
Name Description
value RuntimeConfig
Returns
Type Description
Batch.Builder

mergeRuntimeInfo(RuntimeInfo value)

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];

Parameter
Name Description
value RuntimeInfo
Returns
Type Description
Batch.Builder

mergeSparkBatch(SparkBatch value)

public Batch.Builder mergeSparkBatch(SparkBatch value)

Optional. Spark batch config.

.google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkBatch
Returns
Type Description
Batch.Builder

mergeSparkRBatch(SparkRBatch value)

public Batch.Builder mergeSparkRBatch(SparkRBatch value)

Optional. SparkR batch config.

.google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkRBatch
Returns
Type Description
Batch.Builder

mergeSparkSqlBatch(SparkSqlBatch value)

public Batch.Builder mergeSparkSqlBatch(SparkSqlBatch value)

Optional. SparkSql batch config.

.google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkSqlBatch
Returns
Type Description
Batch.Builder

mergeStateTime(Timestamp value)

public Batch.Builder mergeStateTime(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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Batch.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Batch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Batch.Builder
Overrides

putAllLabels(Map<String,String> values)

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. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a batch.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Batch.Builder

putLabels(String key, String value)

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. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a batch.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Batch.Builder

removeLabels(String key)

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. Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035. No more than 32 labels can be associated with a batch.

map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Batch.Builder

removeStateHistory(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
Batch.Builder

setCreateTime(Timestamp value)

public Batch.Builder setCreateTime(Timestamp value)

Output only. The time when the batch was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Batch.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Batch.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the batch was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Batch.Builder

setCreator(String value)

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];

Parameter
Name Description
value String

The creator to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setCreatorBytes(ByteString value)

public Batch.Builder setCreatorBytes(ByteString value)

Output only. The email address of the user who created the batch.

string creator = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for creator to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setEnvironmentConfig(EnvironmentConfig value)

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];

Parameter
Name Description
value EnvironmentConfig
Returns
Type Description
Batch.Builder

setEnvironmentConfig(EnvironmentConfig.Builder builderForValue)

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];

Parameter
Name Description
builderForValue EnvironmentConfig.Builder
Returns
Type Description
Batch.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Batch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Batch.Builder
Overrides

setName(String value)

public Batch.Builder setName(String value)

Output only. The resource name of the batch.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Batch.Builder setNameBytes(ByteString value)

Output only. The resource name of the batch.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setOperation(String value)

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];

Parameter
Name Description
value String

The operation to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setOperationBytes(ByteString value)

public Batch.Builder setOperationBytes(ByteString value)

Output only. The resource name of the operation associated with this batch.

string operation = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for operation to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setPysparkBatch(PySparkBatch value)

public Batch.Builder setPysparkBatch(PySparkBatch value)

Optional. PySpark batch config.

.google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PySparkBatch
Returns
Type Description
Batch.Builder

setPysparkBatch(PySparkBatch.Builder builderForValue)

public Batch.Builder setPysparkBatch(PySparkBatch.Builder builderForValue)

Optional. PySpark batch config.

.google.cloud.dataproc.v1.PySparkBatch pyspark_batch = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue PySparkBatch.Builder
Returns
Type Description
Batch.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Batch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Batch.Builder
Overrides

setRuntimeConfig(RuntimeConfig value)

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];

Parameter
Name Description
value RuntimeConfig
Returns
Type Description
Batch.Builder

setRuntimeConfig(RuntimeConfig.Builder builderForValue)

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];

Parameter
Name Description
builderForValue RuntimeConfig.Builder
Returns
Type Description
Batch.Builder

setRuntimeInfo(RuntimeInfo value)

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];

Parameter
Name Description
value RuntimeInfo
Returns
Type Description
Batch.Builder

setRuntimeInfo(RuntimeInfo.Builder builderForValue)

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];

Parameter
Name Description
builderForValue RuntimeInfo.Builder
Returns
Type Description
Batch.Builder

setSparkBatch(SparkBatch value)

public Batch.Builder setSparkBatch(SparkBatch value)

Optional. Spark batch config.

.google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkBatch
Returns
Type Description
Batch.Builder

setSparkBatch(SparkBatch.Builder builderForValue)

public Batch.Builder setSparkBatch(SparkBatch.Builder builderForValue)

Optional. Spark batch config.

.google.cloud.dataproc.v1.SparkBatch spark_batch = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SparkBatch.Builder
Returns
Type Description
Batch.Builder

setSparkRBatch(SparkRBatch value)

public Batch.Builder setSparkRBatch(SparkRBatch value)

Optional. SparkR batch config.

.google.cloud.dataproc.v1.SparkRBatch spark_r_batch = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkRBatch
Returns
Type Description
Batch.Builder

setSparkRBatch(SparkRBatch.Builder builderForValue)

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];

Parameter
Name Description
builderForValue SparkRBatch.Builder
Returns
Type Description
Batch.Builder

setSparkSqlBatch(SparkSqlBatch value)

public Batch.Builder setSparkSqlBatch(SparkSqlBatch value)

Optional. SparkSql batch config.

.google.cloud.dataproc.v1.SparkSqlBatch spark_sql_batch = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkSqlBatch
Returns
Type Description
Batch.Builder

setSparkSqlBatch(SparkSqlBatch.Builder builderForValue)

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];

Parameter
Name Description
builderForValue SparkSqlBatch.Builder
Returns
Type Description
Batch.Builder

setState(Batch.State value)

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];

Parameter
Name Description
value Batch.State

The state to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setStateHistory(int index, Batch.StateHistory value)

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];

Parameters
Name Description
index int
value Batch.StateHistory
Returns
Type Description
Batch.Builder

setStateHistory(int index, Batch.StateHistory.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Batch.StateHistory.Builder
Returns
Type Description
Batch.Builder

setStateMessage(String value)

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];

Parameter
Name Description
value String

The stateMessage to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setStateMessageBytes(ByteString value)

public Batch.Builder setStateMessageBytes(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];

Parameter
Name Description
value ByteString

The bytes for stateMessage to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setStateTime(Timestamp value)

public Batch.Builder setStateTime(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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Batch.Builder

setStateTime(Timestamp.Builder builderForValue)

public Batch.Builder setStateTime(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Batch.Builder

setStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Batch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Batch.Builder
Overrides

setUuid(String value)

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];

Parameter
Name Description
value String

The uuid to set.

Returns
Type Description
Batch.Builder

This builder for chaining.

setUuidBytes(ByteString value)

public Batch.Builder setUuidBytes(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];

Parameter
Name Description
value ByteString

The bytes for uuid to set.

Returns
Type Description
Batch.Builder

This builder for chaining.