public final class Job extends GeneratedMessageV3 implements JobOrBuilder
A Cloud Dataproc job resource.Protobuf type
google.cloud.dataproc.v1.Job| Modifier and Type | Class and Description |
|---|---|
static class |
Job.Builder
A Cloud Dataproc job resource.
|
static class |
Job.TypeJobCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
DRIVER_CONTROL_FILES_URI_FIELD_NUMBER |
static int |
DRIVER_OUTPUT_RESOURCE_URI_FIELD_NUMBER |
static int |
HADOOP_JOB_FIELD_NUMBER |
static int |
HIVE_JOB_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
PIG_JOB_FIELD_NUMBER |
static int |
PLACEMENT_FIELD_NUMBER |
static int |
PYSPARK_JOB_FIELD_NUMBER |
static int |
REFERENCE_FIELD_NUMBER |
static int |
SCHEDULING_FIELD_NUMBER |
static int |
SPARK_JOB_FIELD_NUMBER |
static int |
SPARK_SQL_JOB_FIELD_NUMBER |
static int |
STATUS_FIELD_NUMBER |
static int |
STATUS_HISTORY_FIELD_NUMBER |
static int |
YARN_APPLICATIONS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int REFERENCE_FIELD_NUMBER
public static final int PLACEMENT_FIELD_NUMBER
public static final int HADOOP_JOB_FIELD_NUMBER
public static final int SPARK_JOB_FIELD_NUMBER
public static final int PYSPARK_JOB_FIELD_NUMBER
public static final int HIVE_JOB_FIELD_NUMBER
public static final int PIG_JOB_FIELD_NUMBER
public static final int SPARK_SQL_JOB_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
public static final int STATUS_HISTORY_FIELD_NUMBER
public static final int YARN_APPLICATIONS_FIELD_NUMBER
public static final int DRIVER_OUTPUT_RESOURCE_URI_FIELD_NUMBER
public static final int DRIVER_CONTROL_FILES_URI_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int SCHEDULING_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public Job.TypeJobCase getTypeJobCase()
getTypeJobCase in interface JobOrBuilderpublic 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;hasReference in interface JobOrBuilderpublic 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;getReference in interface JobOrBuilderpublic 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;getReferenceOrBuilder in interface JobOrBuilderpublic boolean hasPlacement()
Required. Job information, including how, when, and where to run the job.
.google.cloud.dataproc.v1.JobPlacement placement = 2;hasPlacement in interface JobOrBuilderpublic JobPlacement getPlacement()
Required. Job information, including how, when, and where to run the job.
.google.cloud.dataproc.v1.JobPlacement placement = 2;getPlacement in interface JobOrBuilderpublic JobPlacementOrBuilder getPlacementOrBuilder()
Required. Job information, including how, when, and where to run the job.
.google.cloud.dataproc.v1.JobPlacement placement = 2;getPlacementOrBuilder in interface JobOrBuilderpublic boolean hasHadoopJob()
Job is a Hadoop job.
.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3;hasHadoopJob in interface JobOrBuilderpublic HadoopJob getHadoopJob()
Job is a Hadoop job.
.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3;getHadoopJob in interface JobOrBuilderpublic HadoopJobOrBuilder getHadoopJobOrBuilder()
Job is a Hadoop job.
.google.cloud.dataproc.v1.HadoopJob hadoop_job = 3;getHadoopJobOrBuilder in interface JobOrBuilderpublic boolean hasSparkJob()
Job is a Spark job.
.google.cloud.dataproc.v1.SparkJob spark_job = 4;hasSparkJob in interface JobOrBuilderpublic SparkJob getSparkJob()
Job is a Spark job.
.google.cloud.dataproc.v1.SparkJob spark_job = 4;getSparkJob in interface JobOrBuilderpublic SparkJobOrBuilder getSparkJobOrBuilder()
Job is a Spark job.
.google.cloud.dataproc.v1.SparkJob spark_job = 4;getSparkJobOrBuilder in interface JobOrBuilderpublic boolean hasPysparkJob()
Job is a Pyspark job.
.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5;hasPysparkJob in interface JobOrBuilderpublic PySparkJob getPysparkJob()
Job is a Pyspark job.
.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5;getPysparkJob in interface JobOrBuilderpublic PySparkJobOrBuilder getPysparkJobOrBuilder()
Job is a Pyspark job.
.google.cloud.dataproc.v1.PySparkJob pyspark_job = 5;getPysparkJobOrBuilder in interface JobOrBuilderpublic boolean hasHiveJob()
Job is a Hive job.
.google.cloud.dataproc.v1.HiveJob hive_job = 6;hasHiveJob in interface JobOrBuilderpublic HiveJob getHiveJob()
Job is a Hive job.
.google.cloud.dataproc.v1.HiveJob hive_job = 6;getHiveJob in interface JobOrBuilderpublic HiveJobOrBuilder getHiveJobOrBuilder()
Job is a Hive job.
.google.cloud.dataproc.v1.HiveJob hive_job = 6;getHiveJobOrBuilder in interface JobOrBuilderpublic boolean hasPigJob()
Job is a Pig job.
.google.cloud.dataproc.v1.PigJob pig_job = 7;hasPigJob in interface JobOrBuilderpublic PigJob getPigJob()
Job is a Pig job.
.google.cloud.dataproc.v1.PigJob pig_job = 7;getPigJob in interface JobOrBuilderpublic PigJobOrBuilder getPigJobOrBuilder()
Job is a Pig job.
.google.cloud.dataproc.v1.PigJob pig_job = 7;getPigJobOrBuilder in interface JobOrBuilderpublic boolean hasSparkSqlJob()
Job is a SparkSql job.
.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12;hasSparkSqlJob in interface JobOrBuilderpublic SparkSqlJob getSparkSqlJob()
Job is a SparkSql job.
.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12;getSparkSqlJob in interface JobOrBuilderpublic SparkSqlJobOrBuilder getSparkSqlJobOrBuilder()
Job is a SparkSql job.
.google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 12;getSparkSqlJobOrBuilder in interface JobOrBuilderpublic boolean hasStatus()
Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.
.google.cloud.dataproc.v1.JobStatus status = 8;hasStatus in interface JobOrBuilderpublic JobStatus getStatus()
Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.
.google.cloud.dataproc.v1.JobStatus status = 8;getStatus in interface JobOrBuilderpublic JobStatusOrBuilder getStatusOrBuilder()
Output-only. The job status. Additional application-specific status information may be contained in the <code>type_job</code> and <code>yarn_applications</code> fields.
.google.cloud.dataproc.v1.JobStatus status = 8;getStatusOrBuilder in interface JobOrBuilderpublic java.util.List<JobStatus> getStatusHistoryList()
Output-only. The previous job status.
repeated .google.cloud.dataproc.v1.JobStatus status_history = 13;getStatusHistoryList in interface JobOrBuilderpublic java.util.List<? extends JobStatusOrBuilder> getStatusHistoryOrBuilderList()
Output-only. The previous job status.
repeated .google.cloud.dataproc.v1.JobStatus status_history = 13;getStatusHistoryOrBuilderList in interface JobOrBuilderpublic int getStatusHistoryCount()
Output-only. The previous job status.
repeated .google.cloud.dataproc.v1.JobStatus status_history = 13;getStatusHistoryCount in interface JobOrBuilderpublic JobStatus getStatusHistory(int index)
Output-only. The previous job status.
repeated .google.cloud.dataproc.v1.JobStatus status_history = 13;getStatusHistory in interface JobOrBuilderpublic JobStatusOrBuilder getStatusHistoryOrBuilder(int index)
Output-only. The previous job status.
repeated .google.cloud.dataproc.v1.JobStatus status_history = 13;getStatusHistoryOrBuilder in interface JobOrBuilderpublic java.util.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 may be changed before final release.
repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9;getYarnApplicationsList in interface JobOrBuilderpublic java.util.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 may be changed before final release.
repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9;getYarnApplicationsOrBuilderList in interface JobOrBuilderpublic 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 may be changed before final release.
repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9;getYarnApplicationsCount in interface JobOrBuilderpublic 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 may be changed before final release.
repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9;getYarnApplications in interface JobOrBuilderpublic 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 may be changed before final release.
repeated .google.cloud.dataproc.v1.YarnApplication yarn_applications = 9;getYarnApplicationsOrBuilder in interface JobOrBuilderpublic java.lang.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;getDriverOutputResourceUri in interface JobOrBuilderpublic 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;getDriverOutputResourceUriBytes in interface JobOrBuilderpublic java.lang.String getDriverControlFilesUri()
Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as `driver_output_uri`.
string driver_control_files_uri = 15;getDriverControlFilesUri in interface JobOrBuilderpublic ByteString getDriverControlFilesUriBytes()
Output-only. If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as `driver_output_uri`.
string driver_control_files_uri = 15;getDriverControlFilesUriBytes in interface JobOrBuilderpublic int getLabelsCount()
JobOrBuilderOptional. The labels to associate with this job. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.
map<string, string> labels = 18;getLabelsCount in interface JobOrBuilderpublic boolean containsLabels(java.lang.String key)
Optional. The labels to associate with this job. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.
map<string, string> labels = 18;containsLabels in interface JobOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels in interface JobOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
Optional. The labels to associate with this job. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.
map<string, string> labels = 18;getLabelsMap in interface JobOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional. The labels to associate with this job. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.
map<string, string> labels = 18;getLabelsOrDefault in interface JobOrBuilderpublic java.lang.String getLabelsOrThrow(java.lang.String key)
Optional. The labels to associate with this job. Label **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a job.
map<string, string> labels = 18;getLabelsOrThrow in interface JobOrBuilderpublic boolean hasScheduling()
Optional. Job scheduling configuration.
.google.cloud.dataproc.v1.JobScheduling scheduling = 20;hasScheduling in interface JobOrBuilderpublic JobScheduling getScheduling()
Optional. Job scheduling configuration.
.google.cloud.dataproc.v1.JobScheduling scheduling = 20;getScheduling in interface JobOrBuilderpublic JobSchedulingOrBuilder getSchedulingOrBuilder()
Optional. Job scheduling configuration.
.google.cloud.dataproc.v1.JobScheduling scheduling = 20;getSchedulingOrBuilder in interface JobOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static Job parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Job parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Job parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Job parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Job parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Job parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static Job parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Job parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Job parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Job parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Job parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Job parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Job.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static Job.Builder newBuilder()
public static Job.Builder newBuilder(Job prototype)
public Job.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected Job.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static Job getDefaultInstance()
public Parser<Job> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public Job getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder