Google Cloud Dataproc V1 Client - Class Batch (3.4.0)

Reference documentation and code samples for the Google Cloud Dataproc V1 Client class Batch.

A representation of a batch workload in the service.

Generated from protobuf message google.cloud.dataproc.v1.Batch

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the batch.

↳ uuid string

Output only. A batch UUID (Unique Universal Identifier). The service generates this value when it creates the batch.

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the batch was created.

↳ pyspark_batch Google\Cloud\Dataproc\V1\PySparkBatch

Optional. PySpark batch config.

↳ spark_batch Google\Cloud\Dataproc\V1\SparkBatch

Optional. Spark batch config.

↳ spark_r_batch Google\Cloud\Dataproc\V1\SparkRBatch

Optional. SparkR batch config.

↳ spark_sql_batch Google\Cloud\Dataproc\V1\SparkSqlBatch

Optional. SparkSql batch config.

↳ runtime_info Google\Cloud\Dataproc\V1\RuntimeInfo

Output only. Runtime information about batch execution.

↳ state int

Output only. The state of the batch.

↳ state_message string

Output only. Batch state details, such as a failure description if the state is FAILED.

↳ state_time Google\Protobuf\Timestamp

Output only. The time when the batch entered a current state.

↳ creator string

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

↳ labels array|Google\Protobuf\Internal\MapField

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.

↳ runtime_config Google\Cloud\Dataproc\V1\RuntimeConfig

Optional. Runtime configuration for the batch execution.

↳ environment_config Google\Cloud\Dataproc\V1\EnvironmentConfig

Optional. Environment configuration for the batch execution.

↳ operation string

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

↳ state_history array<Google\Cloud\Dataproc\V1\Batch\StateHistory>

Output only. Historical state information for the batch.

getName

Output only. The resource name of the batch.

Returns
TypeDescription
string

setName

Output only. The resource name of the batch.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUuid

Output only. A batch UUID (Unique Universal Identifier). The service generates this value when it creates the batch.

Returns
TypeDescription
string

setUuid

Output only. A batch UUID (Unique Universal Identifier). The service generates this value when it creates the batch.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The time when the batch was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the batch was created.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getPysparkBatch

Optional. PySpark batch config.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\PySparkBatch|null

hasPysparkBatch

setPysparkBatch

Optional. PySpark batch config.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\PySparkBatch
Returns
TypeDescription
$this

getSparkBatch

Optional. Spark batch config.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\SparkBatch|null

hasSparkBatch

setSparkBatch

Optional. Spark batch config.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\SparkBatch
Returns
TypeDescription
$this

getSparkRBatch

Optional. SparkR batch config.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\SparkRBatch|null

hasSparkRBatch

setSparkRBatch

Optional. SparkR batch config.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\SparkRBatch
Returns
TypeDescription
$this

getSparkSqlBatch

Optional. SparkSql batch config.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\SparkSqlBatch|null

hasSparkSqlBatch

setSparkSqlBatch

Optional. SparkSql batch config.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\SparkSqlBatch
Returns
TypeDescription
$this

getRuntimeInfo

Output only. Runtime information about batch execution.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\RuntimeInfo|null

hasRuntimeInfo

clearRuntimeInfo

setRuntimeInfo

Output only. Runtime information about batch execution.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\RuntimeInfo
Returns
TypeDescription
$this

getState

Output only. The state of the batch.

Returns
TypeDescription
int

setState

Output only. The state of the batch.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateMessage

Output only. Batch state details, such as a failure description if the state is FAILED.

Returns
TypeDescription
string

setStateMessage

Output only. Batch state details, such as a failure description if the state is FAILED.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStateTime

Output only. The time when the batch entered a current state.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStateTime

clearStateTime

setStateTime

Output only. The time when the batch entered a current state.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCreator

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

Returns
TypeDescription
string

setCreator

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLabels

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.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

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.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getRuntimeConfig

Optional. Runtime configuration for the batch execution.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\RuntimeConfig|null

hasRuntimeConfig

clearRuntimeConfig

setRuntimeConfig

Optional. Runtime configuration for the batch execution.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\RuntimeConfig
Returns
TypeDescription
$this

getEnvironmentConfig

Optional. Environment configuration for the batch execution.

Returns
TypeDescription
Google\Cloud\Dataproc\V1\EnvironmentConfig|null

hasEnvironmentConfig

clearEnvironmentConfig

setEnvironmentConfig

Optional. Environment configuration for the batch execution.

Parameter
NameDescription
var Google\Cloud\Dataproc\V1\EnvironmentConfig
Returns
TypeDescription
$this

getOperation

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

Returns
TypeDescription
string

setOperation

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStateHistory

Output only. Historical state information for the batch.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setStateHistory

Output only. Historical state information for the batch.

Parameter
NameDescription
var array<Google\Cloud\Dataproc\V1\Batch\StateHistory>
Returns
TypeDescription
$this

getBatchConfig

Returns
TypeDescription
string