Class OrderedJob

  • All Implemented Interfaces:
    OrderedJobOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class OrderedJob
    extends com.google.protobuf.GeneratedMessageV3
    implements OrderedJobOrBuilder
     A job executed by the workflow.
     
    Protobuf type google.cloud.dataproc.v1.OrderedJob
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getStepId

        public String getStepId()
         Required. The step id. The id must be unique among all jobs
         within the template.
        
         The step id is used as prefix for job id, as job
         `goog-dataproc-workflow-step-id` label, and in
         [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids]
         field from other steps.
        
         The id must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). Cannot begin or end with underscore
         or hyphen. Must consist of between 3 and 50 characters.
         
        string step_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStepId in interface OrderedJobOrBuilder
        Returns:
        The stepId.
      • getStepIdBytes

        public com.google.protobuf.ByteString getStepIdBytes()
         Required. The step id. The id must be unique among all jobs
         within the template.
        
         The step id is used as prefix for job id, as job
         `goog-dataproc-workflow-step-id` label, and in
         [prerequisiteStepIds][google.cloud.dataproc.v1.OrderedJob.prerequisite_step_ids]
         field from other steps.
        
         The id must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), and hyphens (-). Cannot begin or end with underscore
         or hyphen. Must consist of between 3 and 50 characters.
         
        string step_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStepIdBytes in interface OrderedJobOrBuilder
        Returns:
        The bytes for stepId.
      • hasHadoopJob

        public boolean hasHadoopJob()
         Optional. Job is a Hadoop job.
         
        .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasHadoopJob in interface OrderedJobOrBuilder
        Returns:
        Whether the hadoopJob field is set.
      • getHadoopJob

        public HadoopJob getHadoopJob()
         Optional. Job is a Hadoop job.
         
        .google.cloud.dataproc.v1.HadoopJob hadoop_job = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getHadoopJob in interface OrderedJobOrBuilder
        Returns:
        The hadoopJob.
      • hasSparkJob

        public boolean hasSparkJob()
         Optional. Job is a Spark job.
         
        .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSparkJob in interface OrderedJobOrBuilder
        Returns:
        Whether the sparkJob field is set.
      • getSparkJob

        public SparkJob getSparkJob()
         Optional. Job is a Spark job.
         
        .google.cloud.dataproc.v1.SparkJob spark_job = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSparkJob in interface OrderedJobOrBuilder
        Returns:
        The sparkJob.
      • hasPysparkJob

        public boolean hasPysparkJob()
         Optional. Job is a PySpark job.
         
        .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasPysparkJob in interface OrderedJobOrBuilder
        Returns:
        Whether the pysparkJob field is set.
      • getPysparkJob

        public PySparkJob getPysparkJob()
         Optional. Job is a PySpark job.
         
        .google.cloud.dataproc.v1.PySparkJob pyspark_job = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPysparkJob in interface OrderedJobOrBuilder
        Returns:
        The pysparkJob.
      • hasHiveJob

        public boolean hasHiveJob()
         Optional. Job is a Hive job.
         
        .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasHiveJob in interface OrderedJobOrBuilder
        Returns:
        Whether the hiveJob field is set.
      • getHiveJob

        public HiveJob getHiveJob()
         Optional. Job is a Hive job.
         
        .google.cloud.dataproc.v1.HiveJob hive_job = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getHiveJob in interface OrderedJobOrBuilder
        Returns:
        The hiveJob.
      • hasPigJob

        public boolean hasPigJob()
         Optional. Job is a Pig job.
         
        .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasPigJob in interface OrderedJobOrBuilder
        Returns:
        Whether the pigJob field is set.
      • getPigJob

        public PigJob getPigJob()
         Optional. Job is a Pig job.
         
        .google.cloud.dataproc.v1.PigJob pig_job = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPigJob in interface OrderedJobOrBuilder
        Returns:
        The pigJob.
      • hasSparkRJob

        public boolean hasSparkRJob()
         Optional. Job is a SparkR job.
         
        .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSparkRJob in interface OrderedJobOrBuilder
        Returns:
        Whether the sparkRJob field is set.
      • getSparkRJob

        public SparkRJob getSparkRJob()
         Optional. Job is a SparkR job.
         
        .google.cloud.dataproc.v1.SparkRJob spark_r_job = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSparkRJob in interface OrderedJobOrBuilder
        Returns:
        The sparkRJob.
      • hasSparkSqlJob

        public boolean hasSparkSqlJob()
         Optional. Job is a SparkSql job.
         
        .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSparkSqlJob in interface OrderedJobOrBuilder
        Returns:
        Whether the sparkSqlJob field is set.
      • getSparkSqlJob

        public SparkSqlJob getSparkSqlJob()
         Optional. Job is a SparkSql job.
         
        .google.cloud.dataproc.v1.SparkSqlJob spark_sql_job = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSparkSqlJob in interface OrderedJobOrBuilder
        Returns:
        The sparkSqlJob.
      • hasPrestoJob

        public boolean hasPrestoJob()
         Optional. Job is a Presto job.
         
        .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasPrestoJob in interface OrderedJobOrBuilder
        Returns:
        Whether the prestoJob field is set.
      • getPrestoJob

        public PrestoJob getPrestoJob()
         Optional. Job is a Presto job.
         
        .google.cloud.dataproc.v1.PrestoJob presto_job = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPrestoJob in interface OrderedJobOrBuilder
        Returns:
        The prestoJob.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: OrderedJobOrBuilder
         Optional. The labels to associate with this job.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given job.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface OrderedJobOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. The labels to associate with this job.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given job.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface OrderedJobOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional. The labels to associate with this job.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given job.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface OrderedJobOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional. The labels to associate with this job.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given job.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface OrderedJobOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional. The labels to associate with this job.
        
         Label keys must be between 1 and 63 characters long, and must conform to
         the following regular expression:
         [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
        
         Label values must be between 1 and 63 characters long, and must conform to
         the following regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
        
         No more than 32 labels can be associated with a given job.
         
        map<string, string> labels = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface OrderedJobOrBuilder
      • hasScheduling

        public boolean hasScheduling()
         Optional. Job scheduling configuration.
         
        .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasScheduling in interface OrderedJobOrBuilder
        Returns:
        Whether the scheduling field is set.
      • getScheduling

        public JobScheduling getScheduling()
         Optional. Job scheduling configuration.
         
        .google.cloud.dataproc.v1.JobScheduling scheduling = 9 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getScheduling in interface OrderedJobOrBuilder
        Returns:
        The scheduling.
      • getPrerequisiteStepIdsList

        public com.google.protobuf.ProtocolStringList getPrerequisiteStepIdsList()
         Optional. The optional list of prerequisite job step_ids.
         If not specified, the job will start at the beginning of workflow.
         
        repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPrerequisiteStepIdsList in interface OrderedJobOrBuilder
        Returns:
        A list containing the prerequisiteStepIds.
      • getPrerequisiteStepIdsCount

        public int getPrerequisiteStepIdsCount()
         Optional. The optional list of prerequisite job step_ids.
         If not specified, the job will start at the beginning of workflow.
         
        repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPrerequisiteStepIdsCount in interface OrderedJobOrBuilder
        Returns:
        The count of prerequisiteStepIds.
      • getPrerequisiteStepIds

        public String getPrerequisiteStepIds​(int index)
         Optional. The optional list of prerequisite job step_ids.
         If not specified, the job will start at the beginning of workflow.
         
        repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPrerequisiteStepIds in interface OrderedJobOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The prerequisiteStepIds at the given index.
      • getPrerequisiteStepIdsBytes

        public com.google.protobuf.ByteString getPrerequisiteStepIdsBytes​(int index)
         Optional. The optional list of prerequisite job step_ids.
         If not specified, the job will start at the beginning of workflow.
         
        repeated string prerequisite_step_ids = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPrerequisiteStepIdsBytes in interface OrderedJobOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the prerequisiteStepIds at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static OrderedJob parseFrom​(ByteBuffer data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OrderedJob parseFrom​(ByteBuffer data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OrderedJob parseFrom​(com.google.protobuf.ByteString data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OrderedJob parseFrom​(com.google.protobuf.ByteString data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OrderedJob parseFrom​(byte[] data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OrderedJob parseFrom​(byte[] data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OrderedJob parseFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Throws:
        IOException
      • newBuilderForType

        public OrderedJob.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public OrderedJob.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected OrderedJob.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static OrderedJob getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<OrderedJob> parser()
      • getParserForType

        public com.google.protobuf.Parser<OrderedJob> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public OrderedJob getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder