Enum JobServiceProto.JobStatus

    • Enum Constant Detail

      • JOB_STATUS_PENDING

        public static final JobServiceProto.JobStatus JOB_STATUS_PENDING
         The Job has be registered and waiting to get scheduled to run
         
        JOB_STATUS_PENDING = 1;
      • JOB_STATUS_RUNNING

        public static final JobServiceProto.JobStatus JOB_STATUS_RUNNING
         The Job is currently processing its task
         
        JOB_STATUS_RUNNING = 2;
      • JOB_STATUS_DONE

        public static final JobServiceProto.JobStatus JOB_STATUS_DONE
         The Job has successfully completed its task
         
        JOB_STATUS_DONE = 3;
      • JOB_STATUS_ERROR

        public static final JobServiceProto.JobStatus JOB_STATUS_ERROR
         The Job has encountered an error while processing its task
         
        JOB_STATUS_ERROR = 4;
    • Field Detail

      • JOB_STATUS_INVALID_VALUE

        public static final int JOB_STATUS_INVALID_VALUE
        JOB_STATUS_INVALID = 0;
        See Also:
        Constant Field Values
      • JOB_STATUS_PENDING_VALUE

        public static final int JOB_STATUS_PENDING_VALUE
         The Job has be registered and waiting to get scheduled to run
         
        JOB_STATUS_PENDING = 1;
        See Also:
        Constant Field Values
      • JOB_STATUS_RUNNING_VALUE

        public static final int JOB_STATUS_RUNNING_VALUE
         The Job is currently processing its task
         
        JOB_STATUS_RUNNING = 2;
        See Also:
        Constant Field Values
      • JOB_STATUS_DONE_VALUE

        public static final int JOB_STATUS_DONE_VALUE
         The Job has successfully completed its task
         
        JOB_STATUS_DONE = 3;
        See Also:
        Constant Field Values
      • JOB_STATUS_ERROR_VALUE

        public static final int JOB_STATUS_ERROR_VALUE
         The Job has encountered an error while processing its task
         
        JOB_STATUS_ERROR = 4;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static JobServiceProto.JobStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JobServiceProto.JobStatus c : JobServiceProto.JobStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JobServiceProto.JobStatus valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static JobServiceProto.JobStatus valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static JobServiceProto.JobStatus forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<JobServiceProto.JobStatus> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static JobServiceProto.JobStatus valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null