Class Batch.Builder (3.1.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.Batch.StateHistory>
Returns
TypeDescription
Batch.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Batch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueBatch.StateHistory
Returns
TypeDescription
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
NameDescription
builderForValueBatch.StateHistory.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBatch.StateHistory
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatch.StateHistory.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Batch.StateHistory.Builder

build()

public Batch build()
Returns
TypeDescription
Batch

buildPartial()

public Batch buildPartial()
Returns
TypeDescription
Batch

clear()

public Batch.Builder clear()
Returns
TypeDescription
Batch.Builder
Overrides

clearBatchConfig()

public Batch.Builder clearBatchConfig()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Batch.Builder

clearField(Descriptors.FieldDescriptor field)

public Batch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Batch.Builder
Overrides

clearLabels()

public Batch.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
Batch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Batch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Batch.Builder

This builder for chaining.

clone()

public Batch.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getBatchConfigCase()

public Batch.BatchConfigCase getBatchConfigCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for creator.

getDefaultInstanceForType()

public Batch getDefaultInstanceForType()
Returns
TypeDescription
Batch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
EnvironmentConfigOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PySparkBatch.Builder

getPysparkBatchOrBuilder()

public PySparkBatchOrBuilder getPysparkBatchOrBuilder()

Optional. PySpark batch config.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RuntimeInfoOrBuilder

getSparkBatch()

public SparkBatch getSparkBatch()

Optional. Spark batch config.

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

Returns
TypeDescription
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
TypeDescription
SparkBatch.Builder

getSparkBatchOrBuilder()

public SparkBatchOrBuilder getSparkBatchOrBuilder()

Optional. Spark batch config.

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

Returns
TypeDescription
SparkBatchOrBuilder

getSparkRBatch()

public SparkRBatch getSparkRBatch()

Optional. SparkR batch config.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SparkRBatchOrBuilder

getSparkSqlBatch()

public SparkSqlBatch getSparkSqlBatch()

Optional. SparkSql batch config.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the stateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueEnvironmentConfig
Returns
TypeDescription
Batch.Builder

mergeFrom(Batch other)

public Batch.Builder mergeFrom(Batch other)
Parameter
NameDescription
otherBatch
Returns
TypeDescription
Batch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Batch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Batch.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Batch.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePySparkBatch
Returns
TypeDescription
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
NameDescription
valueRuntimeConfig
Returns
TypeDescription
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
NameDescription
valueRuntimeInfo
Returns
TypeDescription
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
NameDescription
valueSparkBatch
Returns
TypeDescription
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
NameDescription
valueSparkRBatch
Returns
TypeDescription
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
NameDescription
valueSparkSqlBatch
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Batch.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Batch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The creator to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for creator to set.

Returns
TypeDescription
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
NameDescription
valueEnvironmentConfig
Returns
TypeDescription
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
NameDescription
builderForValueEnvironmentConfig.Builder
Returns
TypeDescription
Batch.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Batch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The operation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for operation to set.

Returns
TypeDescription
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
NameDescription
valuePySparkBatch
Returns
TypeDescription
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
NameDescription
builderForValuePySparkBatch.Builder
Returns
TypeDescription
Batch.Builder

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

public Batch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRuntimeConfig
Returns
TypeDescription
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
NameDescription
builderForValueRuntimeConfig.Builder
Returns
TypeDescription
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
NameDescription
valueRuntimeInfo
Returns
TypeDescription
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
NameDescription
builderForValueRuntimeInfo.Builder
Returns
TypeDescription
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
NameDescription
valueSparkBatch
Returns
TypeDescription
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
NameDescription
builderForValueSparkBatch.Builder
Returns
TypeDescription
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
NameDescription
valueSparkRBatch
Returns
TypeDescription
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
NameDescription
builderForValueSparkRBatch.Builder
Returns
TypeDescription
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
NameDescription
valueSparkSqlBatch
Returns
TypeDescription
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
NameDescription
builderForValueSparkSqlBatch.Builder
Returns
TypeDescription
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
NameDescription
valueBatch.State

The state to set.

Returns
TypeDescription
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
NameDescription
indexint
valueBatch.StateHistory
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatch.StateHistory.Builder
Returns
TypeDescription
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
NameDescription
valueString

The stateMessage to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for stateMessage to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Batch.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Batch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The uuid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uuid to set.

Returns
TypeDescription
Batch.Builder

This builder for chaining.