Class Job.Builder (4.49.0)

public static final class Job.Builder extends GeneratedMessageV3.Builder<Job.Builder> implements JobOrBuilder

A Dataproc job resource.

Protobuf type google.cloud.dataproc.v1.Job

Implements

JobOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllStatusHistory(Iterable<? extends JobStatus> values)

public Job.Builder addAllStatusHistory(Iterable<? extends JobStatus> values)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addAllYarnApplications(Iterable<? extends YarnApplication> values)

public Job.Builder addAllYarnApplications(Iterable<? extends YarnApplication> values)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStatusHistory(JobStatus value)

public Job.Builder addStatusHistory(JobStatus value)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value JobStatus
Returns
Type Description
Job.Builder

addStatusHistory(JobStatus.Builder builderForValue)

public Job.Builder addStatusHistory(JobStatus.Builder builderForValue)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue JobStatus.Builder
Returns
Type Description
Job.Builder

addStatusHistory(int index, JobStatus value)

public Job.Builder addStatusHistory(int index, JobStatus value)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value JobStatus
Returns
Type Description
Job.Builder

addStatusHistory(int index, JobStatus.Builder builderForValue)

public Job.Builder addStatusHistory(int index, JobStatus.Builder builderForValue)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue JobStatus.Builder
Returns
Type Description
Job.Builder

addStatusHistoryBuilder()

public JobStatus.Builder addStatusHistoryBuilder()

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobStatus.Builder

addStatusHistoryBuilder(int index)

public JobStatus.Builder addStatusHistoryBuilder(int index)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
JobStatus.Builder

addYarnApplications(YarnApplication value)

public Job.Builder addYarnApplications(YarnApplication value)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value YarnApplication
Returns
Type Description
Job.Builder

addYarnApplications(YarnApplication.Builder builderForValue)

public Job.Builder addYarnApplications(YarnApplication.Builder builderForValue)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue YarnApplication.Builder
Returns
Type Description
Job.Builder

addYarnApplications(int index, YarnApplication value)

public Job.Builder addYarnApplications(int index, YarnApplication value)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value YarnApplication
Returns
Type Description
Job.Builder

addYarnApplications(int index, YarnApplication.Builder builderForValue)

public Job.Builder addYarnApplications(int index, YarnApplication.Builder builderForValue)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue YarnApplication.Builder
Returns
Type Description
Job.Builder

addYarnApplicationsBuilder()

public YarnApplication.Builder addYarnApplicationsBuilder()

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
YarnApplication.Builder

addYarnApplicationsBuilder(int index)

public YarnApplication.Builder addYarnApplicationsBuilder(int index)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
YarnApplication.Builder

build()

public Job build()
Returns
Type Description
Job

buildPartial()

public Job buildPartial()
Returns
Type Description
Job

clear()

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

clearDone()

public Job.Builder clearDone()

Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.

bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

This builder for chaining.

clearDriverControlFilesUri()

public Job.Builder clearDriverControlFilesUri()

Output only. If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri.

string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

This builder for chaining.

clearDriverOutputResourceUri()

public Job.Builder clearDriverOutputResourceUri()

Output only. A URI pointing to the location of the stdout of the job's driver program.

string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

This builder for chaining.

clearDriverSchedulingConfig()

public Job.Builder clearDriverSchedulingConfig()

Optional. Driver scheduling configuration.

.google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFlinkJob()

public Job.Builder clearFlinkJob()

Optional. Job is a Flink job.

.google.cloud.dataproc.v1.FlinkJob flink_job = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearHadoopJob()

public Job.Builder clearHadoopJob()

Optional. Job is a Hadoop job.

.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearHiveJob()

public Job.Builder clearHiveJob()

Optional. Job is a Hive job.

.google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearJobUuid()

public Job.Builder clearJobUuid()

Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time.

string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

This builder for chaining.

clearLabels()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPigJob()

public Job.Builder clearPigJob()

Optional. Job is a Pig job.

.google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearPlacement()

public Job.Builder clearPlacement()

Required. Job information, including how, when, and where to run the job.

.google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Job.Builder

clearPrestoJob()

public Job.Builder clearPrestoJob()

Optional. Job is a Presto job.

.google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearPysparkJob()

public Job.Builder clearPysparkJob()

Optional. Job is a PySpark job.

.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearReference()

public Job.Builder clearReference()

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>.

.google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearScheduling()

public Job.Builder clearScheduling()

Optional. Job scheduling configuration.

.google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearSparkJob()

public Job.Builder clearSparkJob()

Optional. Job is a Spark job.

.google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearSparkRJob()

public Job.Builder clearSparkRJob()

Optional. Job is a SparkR job.

.google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearSparkSqlJob()

public Job.Builder clearSparkSqlJob()

Optional. Job is a SparkSql job.

.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearStatus()

public Job.Builder clearStatus()

Output only. The job status. Additional application-specific status information might be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.

.google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

clearStatusHistory()

public Job.Builder clearStatusHistory()

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

clearTrinoJob()

public Job.Builder clearTrinoJob()

Optional. Job is a Trino job.

.google.cloud.dataproc.v1.TrinoJob trino_job = 28 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Job.Builder

clearTypeJob()

public Job.Builder clearTypeJob()
Returns
Type Description
Job.Builder

clearYarnApplications()

public Job.Builder clearYarnApplications()

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Job.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can 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 job.

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

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public Job getDefaultInstanceForType()
Returns
Type Description
Job

getDescriptorForType()

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

getDone()

public boolean getDone()

Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.

bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The done.

getDriverControlFilesUri()

public String getDriverControlFilesUri()

Output only. If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri.

string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The driverControlFilesUri.

getDriverControlFilesUriBytes()

public ByteString getDriverControlFilesUriBytes()

Output only. If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri.

string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for driverControlFilesUri.

getDriverOutputResourceUri()

public String getDriverOutputResourceUri()

Output only. A URI pointing to the location of the stdout of the job's driver program.

string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The driverOutputResourceUri.

getDriverOutputResourceUriBytes()

public ByteString getDriverOutputResourceUriBytes()

Output only. A URI pointing to the location of the stdout of the job's driver program.

string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for driverOutputResourceUri.

getDriverSchedulingConfig()

public DriverSchedulingConfig getDriverSchedulingConfig()

Optional. Driver scheduling configuration.

.google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DriverSchedulingConfig

The driverSchedulingConfig.

getDriverSchedulingConfigBuilder()

public DriverSchedulingConfig.Builder getDriverSchedulingConfigBuilder()

Optional. Driver scheduling configuration.

.google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DriverSchedulingConfig.Builder

getDriverSchedulingConfigOrBuilder()

public DriverSchedulingConfigOrBuilder getDriverSchedulingConfigOrBuilder()

Optional. Driver scheduling configuration.

.google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DriverSchedulingConfigOrBuilder

getFlinkJob()

public FlinkJob getFlinkJob()

Optional. Job is a Flink job.

.google.cloud.dataproc.v1.FlinkJob flink_job = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FlinkJob

The flinkJob.

getFlinkJobBuilder()

public FlinkJob.Builder getFlinkJobBuilder()

Optional. Job is a Flink job.

.google.cloud.dataproc.v1.FlinkJob flink_job = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FlinkJob.Builder

getFlinkJobOrBuilder()

public FlinkJobOrBuilder getFlinkJobOrBuilder()

Optional. Job is a Flink job.

.google.cloud.dataproc.v1.FlinkJob flink_job = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FlinkJobOrBuilder

getHadoopJob()

public HadoopJob getHadoopJob()

Optional. Job is a Hadoop job.

.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HadoopJob

The hadoopJob.

getHadoopJobBuilder()

public HadoopJob.Builder getHadoopJobBuilder()

Optional. Job is a Hadoop job.

.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HadoopJob.Builder

getHadoopJobOrBuilder()

public HadoopJobOrBuilder getHadoopJobOrBuilder()

Optional. Job is a Hadoop job.

.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HadoopJobOrBuilder

getHiveJob()

public HiveJob getHiveJob()

Optional. Job is a Hive job.

.google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HiveJob

The hiveJob.

getHiveJobBuilder()

public HiveJob.Builder getHiveJobBuilder()

Optional. Job is a Hive job.

.google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HiveJob.Builder

getHiveJobOrBuilder()

public HiveJobOrBuilder getHiveJobOrBuilder()

Optional. Job is a Hive job.

.google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HiveJobOrBuilder

getJobUuid()

public String getJobUuid()

Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time.

string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The jobUuid.

getJobUuidBytes()

public ByteString getJobUuidBytes()

Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time.

string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for jobUuid.

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 job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can 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 job.

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

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can 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 job.

map<string, string> labels = 18 [(.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 job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can 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 job.

map<string, string> labels = 18 [(.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 job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can 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 job.

map<string, string> labels = 18 [(.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>

getPigJob()

public PigJob getPigJob()

Optional. Job is a Pig job.

.google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PigJob

The pigJob.

getPigJobBuilder()

public PigJob.Builder getPigJobBuilder()

Optional. Job is a Pig job.

.google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PigJob.Builder

getPigJobOrBuilder()

public PigJobOrBuilder getPigJobOrBuilder()

Optional. Job is a Pig job.

.google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PigJobOrBuilder

getPlacement()

public JobPlacement getPlacement()

Required. Job information, including how, when, and where to run the job.

.google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobPlacement

The placement.

getPlacementBuilder()

public JobPlacement.Builder getPlacementBuilder()

Required. Job information, including how, when, and where to run the job.

.google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobPlacement.Builder

getPlacementOrBuilder()

public JobPlacementOrBuilder getPlacementOrBuilder()

Required. Job information, including how, when, and where to run the job.

.google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobPlacementOrBuilder

getPrestoJob()

public PrestoJob getPrestoJob()

Optional. Job is a Presto job.

.google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrestoJob

The prestoJob.

getPrestoJobBuilder()

public PrestoJob.Builder getPrestoJobBuilder()

Optional. Job is a Presto job.

.google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrestoJob.Builder

getPrestoJobOrBuilder()

public PrestoJobOrBuilder getPrestoJobOrBuilder()

Optional. Job is a Presto job.

.google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PrestoJobOrBuilder

getPysparkJob()

public PySparkJob getPysparkJob()

Optional. Job is a PySpark job.

.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PySparkJob

The pysparkJob.

getPysparkJobBuilder()

public PySparkJob.Builder getPysparkJobBuilder()

Optional. Job is a PySpark job.

.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PySparkJob.Builder

getPysparkJobOrBuilder()

public PySparkJobOrBuilder getPysparkJobOrBuilder()

Optional. Job is a PySpark job.

.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PySparkJobOrBuilder

getReference()

public JobReference getReference()

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>.

.google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
JobReference

The reference.

getReferenceBuilder()

public JobReference.Builder getReferenceBuilder()

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>.

.google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
JobReference.Builder

getReferenceOrBuilder()

public JobReferenceOrBuilder getReferenceOrBuilder()

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>.

.google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
JobReferenceOrBuilder

getScheduling()

public JobScheduling getScheduling()

Optional. Job scheduling configuration.

.google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
JobScheduling

The scheduling.

getSchedulingBuilder()

public JobScheduling.Builder getSchedulingBuilder()

Optional. Job scheduling configuration.

.google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
JobScheduling.Builder

getSchedulingOrBuilder()

public JobSchedulingOrBuilder getSchedulingOrBuilder()

Optional. Job scheduling configuration.

.google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
JobSchedulingOrBuilder

getSparkJob()

public SparkJob getSparkJob()

Optional. Job is a Spark job.

.google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkJob

The sparkJob.

getSparkJobBuilder()

public SparkJob.Builder getSparkJobBuilder()

Optional. Job is a Spark job.

.google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkJob.Builder

getSparkJobOrBuilder()

public SparkJobOrBuilder getSparkJobOrBuilder()

Optional. Job is a Spark job.

.google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkJobOrBuilder

getSparkRJob()

public SparkRJob getSparkRJob()

Optional. Job is a SparkR job.

.google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkRJob

The sparkRJob.

getSparkRJobBuilder()

public SparkRJob.Builder getSparkRJobBuilder()

Optional. Job is a SparkR job.

.google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkRJob.Builder

getSparkRJobOrBuilder()

public SparkRJobOrBuilder getSparkRJobOrBuilder()

Optional. Job is a SparkR job.

.google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkRJobOrBuilder

getSparkSqlJob()

public SparkSqlJob getSparkSqlJob()

Optional. Job is a SparkSql job.

.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkSqlJob

The sparkSqlJob.

getSparkSqlJobBuilder()

public SparkSqlJob.Builder getSparkSqlJobBuilder()

Optional. Job is a SparkSql job.

.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkSqlJob.Builder

getSparkSqlJobOrBuilder()

public SparkSqlJobOrBuilder getSparkSqlJobOrBuilder()

Optional. Job is a SparkSql job.

.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SparkSqlJobOrBuilder

getStatus()

public JobStatus getStatus()

Output only. The job status. Additional application-specific status information might be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.

.google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobStatus

The status.

getStatusBuilder()

public JobStatus.Builder getStatusBuilder()

Output only. The job status. Additional application-specific status information might be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.

.google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobStatus.Builder

getStatusHistory(int index)

public JobStatus getStatusHistory(int index)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
JobStatus

getStatusHistoryBuilder(int index)

public JobStatus.Builder getStatusHistoryBuilder(int index)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
JobStatus.Builder

getStatusHistoryBuilderList()

public List<JobStatus.Builder> getStatusHistoryBuilderList()

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getStatusHistoryCount()

public int getStatusHistoryCount()

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getStatusHistoryList()

public List<JobStatus> getStatusHistoryList()

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<JobStatus>

getStatusHistoryOrBuilder(int index)

public JobStatusOrBuilder getStatusHistoryOrBuilder(int index)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
JobStatusOrBuilder

getStatusHistoryOrBuilderList()

public List<? extends JobStatusOrBuilder> getStatusHistoryOrBuilderList()

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getStatusOrBuilder()

public JobStatusOrBuilder getStatusOrBuilder()

Output only. The job status. Additional application-specific status information might be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.

.google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
JobStatusOrBuilder

getTrinoJob()

public TrinoJob getTrinoJob()

Optional. Job is a Trino job.

.google.cloud.dataproc.v1.TrinoJob trino_job = 28 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TrinoJob

The trinoJob.

getTrinoJobBuilder()

public TrinoJob.Builder getTrinoJobBuilder()

Optional. Job is a Trino job.

.google.cloud.dataproc.v1.TrinoJob trino_job = 28 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TrinoJob.Builder

getTrinoJobOrBuilder()

public TrinoJobOrBuilder getTrinoJobOrBuilder()

Optional. Job is a Trino job.

.google.cloud.dataproc.v1.TrinoJob trino_job = 28 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TrinoJobOrBuilder

getTypeJobCase()

public Job.TypeJobCase getTypeJobCase()
Returns
Type Description
Job.TypeJobCase

getYarnApplications(int index)

public YarnApplication getYarnApplications(int index)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
YarnApplication

getYarnApplicationsBuilder(int index)

public YarnApplication.Builder getYarnApplicationsBuilder(int index)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
YarnApplication.Builder

getYarnApplicationsBuilderList()

public List<YarnApplication.Builder> getYarnApplicationsBuilderList()

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getYarnApplicationsCount()

public int getYarnApplicationsCount()

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getYarnApplicationsList()

public List<YarnApplication> getYarnApplicationsList()

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<YarnApplication>

getYarnApplicationsOrBuilder(int index)

public YarnApplicationOrBuilder getYarnApplicationsOrBuilder(int index)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
YarnApplicationOrBuilder

getYarnApplicationsOrBuilderList()

public List<? extends YarnApplicationOrBuilder> getYarnApplicationsOrBuilderList()

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

hasDriverSchedulingConfig()

public boolean hasDriverSchedulingConfig()

Optional. Driver scheduling configuration.

.google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the driverSchedulingConfig field is set.

hasFlinkJob()

public boolean hasFlinkJob()

Optional. Job is a Flink job.

.google.cloud.dataproc.v1.FlinkJob flink_job = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the flinkJob field is set.

hasHadoopJob()

public boolean hasHadoopJob()

Optional. Job is a Hadoop job.

.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the hadoopJob field is set.

hasHiveJob()

public boolean hasHiveJob()

Optional. Job is a Hive job.

.google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the hiveJob field is set.

hasPigJob()

public boolean hasPigJob()

Optional. Job is a Pig job.

.google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pigJob field is set.

hasPlacement()

public boolean hasPlacement()

Required. Job information, including how, when, and where to run the job.

.google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the placement field is set.

hasPrestoJob()

public boolean hasPrestoJob()

Optional. Job is a Presto job.

.google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the prestoJob field is set.

hasPysparkJob()

public boolean hasPysparkJob()

Optional. Job is a PySpark job.

.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pysparkJob field is set.

hasReference()

public boolean hasReference()

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>.

.google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reference field is set.

hasScheduling()

public boolean hasScheduling()

Optional. Job scheduling configuration.

.google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the scheduling field is set.

hasSparkJob()

public boolean hasSparkJob()

Optional. Job is a Spark job.

.google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sparkJob field is set.

hasSparkRJob()

public boolean hasSparkRJob()

Optional. Job is a SparkR job.

.google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sparkRJob field is set.

hasSparkSqlJob()

public boolean hasSparkSqlJob()

Optional. Job is a SparkSql job.

.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sparkSqlJob field is set.

hasStatus()

public boolean hasStatus()

Output only. The job status. Additional application-specific status information might be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.

.google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the status field is set.

hasTrinoJob()

public boolean hasTrinoJob()

Optional. Job is a Trino job.

.google.cloud.dataproc.v1.TrinoJob trino_job = 28 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the trinoJob 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

mergeDriverSchedulingConfig(DriverSchedulingConfig value)

public Job.Builder mergeDriverSchedulingConfig(DriverSchedulingConfig value)

Optional. Driver scheduling configuration.

.google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DriverSchedulingConfig
Returns
Type Description
Job.Builder

mergeFlinkJob(FlinkJob value)

public Job.Builder mergeFlinkJob(FlinkJob value)

Optional. Job is a Flink job.

.google.cloud.dataproc.v1.FlinkJob flink_job = 29 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FlinkJob
Returns
Type Description
Job.Builder

mergeFrom(Job other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHadoopJob(HadoopJob value)

public Job.Builder mergeHadoopJob(HadoopJob value)

Optional. Job is a Hadoop job.

.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value HadoopJob
Returns
Type Description
Job.Builder

mergeHiveJob(HiveJob value)

public Job.Builder mergeHiveJob(HiveJob value)

Optional. Job is a Hive job.

.google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value HiveJob
Returns
Type Description
Job.Builder

mergePigJob(PigJob value)

public Job.Builder mergePigJob(PigJob value)

Optional. Job is a Pig job.

.google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PigJob
Returns
Type Description
Job.Builder

mergePlacement(JobPlacement value)

public Job.Builder mergePlacement(JobPlacement value)

Required. Job information, including how, when, and where to run the job.

.google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value JobPlacement
Returns
Type Description
Job.Builder

mergePrestoJob(PrestoJob value)

public Job.Builder mergePrestoJob(PrestoJob value)

Optional. Job is a Presto job.

.google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PrestoJob
Returns
Type Description
Job.Builder

mergePysparkJob(PySparkJob value)

public Job.Builder mergePysparkJob(PySparkJob value)

Optional. Job is a PySpark job.

.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PySparkJob
Returns
Type Description
Job.Builder

mergeReference(JobReference value)

public Job.Builder mergeReference(JobReference value)

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>.

.google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value JobReference
Returns
Type Description
Job.Builder

mergeScheduling(JobScheduling value)

public Job.Builder mergeScheduling(JobScheduling value)

Optional. Job scheduling configuration.

.google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value JobScheduling
Returns
Type Description
Job.Builder

mergeSparkJob(SparkJob value)

public Job.Builder mergeSparkJob(SparkJob value)

Optional. Job is a Spark job.

.google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkJob
Returns
Type Description
Job.Builder

mergeSparkRJob(SparkRJob value)

public Job.Builder mergeSparkRJob(SparkRJob value)

Optional. Job is a SparkR job.

.google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkRJob
Returns
Type Description
Job.Builder

mergeSparkSqlJob(SparkSqlJob value)

public Job.Builder mergeSparkSqlJob(SparkSqlJob value)

Optional. Job is a SparkSql job.

.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkSqlJob
Returns
Type Description
Job.Builder

mergeStatus(JobStatus value)

public Job.Builder mergeStatus(JobStatus value)

Output only. The job status. Additional application-specific status information might be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.

.google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value JobStatus
Returns
Type Description
Job.Builder

mergeTrinoJob(TrinoJob value)

public Job.Builder mergeTrinoJob(TrinoJob value)

Optional. Job is a Trino job.

.google.cloud.dataproc.v1.TrinoJob trino_job = 28 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TrinoJob
Returns
Type Description
Job.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public Job.Builder putAllLabels(Map<String,String> values)

Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can 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 job.

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

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

putLabels(String key, String value)

public Job.Builder putLabels(String key, String value)

Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can 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 job.

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

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

removeLabels(String key)

public Job.Builder removeLabels(String key)

Optional. The labels to associate with this job. Label keys must contain 1 to 63 characters, and must conform to RFC 1035. Label values can 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 job.

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

Parameter
Name Description
key String
Returns
Type Description
Job.Builder

removeStatusHistory(int index)

public Job.Builder removeStatusHistory(int index)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Job.Builder

removeYarnApplications(int index)

public Job.Builder removeYarnApplications(int index)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Job.Builder

setDone(boolean value)

public Job.Builder setDone(boolean value)

Output only. Indicates whether the job is completed. If the value is false, the job is still in progress. If true, the job is completed, and status.state field will indicate if it was successful, failed, or cancelled.

bool done = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The done to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setDriverControlFilesUri(String value)

public Job.Builder setDriverControlFilesUri(String value)

Output only. If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri.

string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The driverControlFilesUri to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setDriverControlFilesUriBytes(ByteString value)

public Job.Builder setDriverControlFilesUriBytes(ByteString value)

Output only. If present, the location of miscellaneous control files which can be used as part of job setup and handling. If not present, control files might be placed in the same location as driver_output_uri.

string driver_control_files_uri = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for driverControlFilesUri to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setDriverOutputResourceUri(String value)

public Job.Builder setDriverOutputResourceUri(String value)

Output only. A URI pointing to the location of the stdout of the job's driver program.

string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The driverOutputResourceUri to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setDriverOutputResourceUriBytes(ByteString value)

public Job.Builder setDriverOutputResourceUriBytes(ByteString value)

Output only. A URI pointing to the location of the stdout of the job's driver program.

string driver_output_resource_uri = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for driverOutputResourceUri to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setDriverSchedulingConfig(DriverSchedulingConfig value)

public Job.Builder setDriverSchedulingConfig(DriverSchedulingConfig value)

Optional. Driver scheduling configuration.

.google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DriverSchedulingConfig
Returns
Type Description
Job.Builder

setDriverSchedulingConfig(DriverSchedulingConfig.Builder builderForValue)

public Job.Builder setDriverSchedulingConfig(DriverSchedulingConfig.Builder builderForValue)

Optional. Driver scheduling configuration.

.google.cloud.dataproc.v1.DriverSchedulingConfig driver_scheduling_config = 27 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DriverSchedulingConfig.Builder
Returns
Type Description
Job.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFlinkJob(FlinkJob value)

public Job.Builder setFlinkJob(FlinkJob value)

Optional. Job is a Flink job.

.google.cloud.dataproc.v1.FlinkJob flink_job = 29 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FlinkJob
Returns
Type Description
Job.Builder

setFlinkJob(FlinkJob.Builder builderForValue)

public Job.Builder setFlinkJob(FlinkJob.Builder builderForValue)

Optional. Job is a Flink job.

.google.cloud.dataproc.v1.FlinkJob flink_job = 29 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue FlinkJob.Builder
Returns
Type Description
Job.Builder

setHadoopJob(HadoopJob value)

public Job.Builder setHadoopJob(HadoopJob value)

Optional. Job is a Hadoop job.

.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value HadoopJob
Returns
Type Description
Job.Builder

setHadoopJob(HadoopJob.Builder builderForValue)

public Job.Builder setHadoopJob(HadoopJob.Builder builderForValue)

Optional. Job is a Hadoop job.

.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue HadoopJob.Builder
Returns
Type Description
Job.Builder

setHiveJob(HiveJob value)

public Job.Builder setHiveJob(HiveJob value)

Optional. Job is a Hive job.

.google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value HiveJob
Returns
Type Description
Job.Builder

setHiveJob(HiveJob.Builder builderForValue)

public Job.Builder setHiveJob(HiveJob.Builder builderForValue)

Optional. Job is a Hive job.

.google.cloud.dataproc.v1.HiveJob hive_job = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue HiveJob.Builder
Returns
Type Description
Job.Builder

setJobUuid(String value)

public Job.Builder setJobUuid(String value)

Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time.

string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The jobUuid to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setJobUuidBytes(ByteString value)

public Job.Builder setJobUuidBytes(ByteString value)

Output only. A UUID that uniquely identifies a job within the project over time. This is in contrast to a user-settable reference.job_id that might be reused over time.

string job_uuid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for jobUuid to set.

Returns
Type Description
Job.Builder

This builder for chaining.

setPigJob(PigJob value)

public Job.Builder setPigJob(PigJob value)

Optional. Job is a Pig job.

.google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PigJob
Returns
Type Description
Job.Builder

setPigJob(PigJob.Builder builderForValue)

public Job.Builder setPigJob(PigJob.Builder builderForValue)

Optional. Job is a Pig job.

.google.cloud.dataproc.v1.PigJob pig_job = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue PigJob.Builder
Returns
Type Description
Job.Builder

setPlacement(JobPlacement value)

public Job.Builder setPlacement(JobPlacement value)

Required. Job information, including how, when, and where to run the job.

.google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value JobPlacement
Returns
Type Description
Job.Builder

setPlacement(JobPlacement.Builder builderForValue)

public Job.Builder setPlacement(JobPlacement.Builder builderForValue)

Required. Job information, including how, when, and where to run the job.

.google.cloud.dataproc.v1.JobPlacement placement = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue JobPlacement.Builder
Returns
Type Description
Job.Builder

setPrestoJob(PrestoJob value)

public Job.Builder setPrestoJob(PrestoJob value)

Optional. Job is a Presto job.

.google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PrestoJob
Returns
Type Description
Job.Builder

setPrestoJob(PrestoJob.Builder builderForValue)

public Job.Builder setPrestoJob(PrestoJob.Builder builderForValue)

Optional. Job is a Presto job.

.google.cloud.dataproc.v1.PrestoJob presto_job = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue PrestoJob.Builder
Returns
Type Description
Job.Builder

setPysparkJob(PySparkJob value)

public Job.Builder setPysparkJob(PySparkJob value)

Optional. Job is a PySpark job.

.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PySparkJob
Returns
Type Description
Job.Builder

setPysparkJob(PySparkJob.Builder builderForValue)

public Job.Builder setPysparkJob(PySparkJob.Builder builderForValue)

Optional. Job is a PySpark job.

.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue PySparkJob.Builder
Returns
Type Description
Job.Builder

setReference(JobReference value)

public Job.Builder setReference(JobReference value)

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>.

.google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value JobReference
Returns
Type Description
Job.Builder

setReference(JobReference.Builder builderForValue)

public Job.Builder setReference(JobReference.Builder builderForValue)

Optional. The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a <code>job_id</code>.

.google.cloud.dataproc.v1.JobReference reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue JobReference.Builder
Returns
Type Description
Job.Builder

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

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

setScheduling(JobScheduling value)

public Job.Builder setScheduling(JobScheduling value)

Optional. Job scheduling configuration.

.google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value JobScheduling
Returns
Type Description
Job.Builder

setScheduling(JobScheduling.Builder builderForValue)

public Job.Builder setScheduling(JobScheduling.Builder builderForValue)

Optional. Job scheduling configuration.

.google.cloud.dataproc.v1.JobScheduling scheduling = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue JobScheduling.Builder
Returns
Type Description
Job.Builder

setSparkJob(SparkJob value)

public Job.Builder setSparkJob(SparkJob value)

Optional. Job is a Spark job.

.google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkJob
Returns
Type Description
Job.Builder

setSparkJob(SparkJob.Builder builderForValue)

public Job.Builder setSparkJob(SparkJob.Builder builderForValue)

Optional. Job is a Spark job.

.google.cloud.dataproc.v1.SparkJob spark_job = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SparkJob.Builder
Returns
Type Description
Job.Builder

setSparkRJob(SparkRJob value)

public Job.Builder setSparkRJob(SparkRJob value)

Optional. Job is a SparkR job.

.google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkRJob
Returns
Type Description
Job.Builder

setSparkRJob(SparkRJob.Builder builderForValue)

public Job.Builder setSparkRJob(SparkRJob.Builder builderForValue)

Optional. Job is a SparkR job.

.google.cloud.dataproc.v1.SparkRJob spark_r_job = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SparkRJob.Builder
Returns
Type Description
Job.Builder

setSparkSqlJob(SparkSqlJob value)

public Job.Builder setSparkSqlJob(SparkSqlJob value)

Optional. Job is a SparkSql job.

.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value SparkSqlJob
Returns
Type Description
Job.Builder

setSparkSqlJob(SparkSqlJob.Builder builderForValue)

public Job.Builder setSparkSqlJob(SparkSqlJob.Builder builderForValue)

Optional. Job is a SparkSql job.

.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue SparkSqlJob.Builder
Returns
Type Description
Job.Builder

setStatus(JobStatus value)

public Job.Builder setStatus(JobStatus value)

Output only. The job status. Additional application-specific status information might be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.

.google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value JobStatus
Returns
Type Description
Job.Builder

setStatus(JobStatus.Builder builderForValue)

public Job.Builder setStatus(JobStatus.Builder builderForValue)

Output only. The job status. Additional application-specific status information might be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.

.google.cloud.dataproc.v1.JobStatus status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue JobStatus.Builder
Returns
Type Description
Job.Builder

setStatusHistory(int index, JobStatus value)

public Job.Builder setStatusHistory(int index, JobStatus value)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value JobStatus
Returns
Type Description
Job.Builder

setStatusHistory(int index, JobStatus.Builder builderForValue)

public Job.Builder setStatusHistory(int index, JobStatus.Builder builderForValue)

Output only. The previous job status.

repeated .google.cloud.dataproc.v1.JobStatus status_history = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue JobStatus.Builder
Returns
Type Description
Job.Builder

setTrinoJob(TrinoJob value)

public Job.Builder setTrinoJob(TrinoJob value)

Optional. Job is a Trino job.

.google.cloud.dataproc.v1.TrinoJob trino_job = 28 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value TrinoJob
Returns
Type Description
Job.Builder

setTrinoJob(TrinoJob.Builder builderForValue)

public Job.Builder setTrinoJob(TrinoJob.Builder builderForValue)

Optional. Job is a Trino job.

.google.cloud.dataproc.v1.TrinoJob trino_job = 28 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue TrinoJob.Builder
Returns
Type Description
Job.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setYarnApplications(int index, YarnApplication value)

public Job.Builder setYarnApplications(int index, YarnApplication value)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value YarnApplication
Returns
Type Description
Job.Builder

setYarnApplications(int index, YarnApplication.Builder builderForValue)

public Job.Builder setYarnApplications(int index, YarnApplication.Builder builderForValue)

Output only. The collection of YARN applications spun up by this job.

Beta Feature: This report is available for testing purposes only. It might be changed before final release.

repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue YarnApplication.Builder
Returns
Type Description
Job.Builder