Class JobStatus

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

    public final class JobStatus
    extends com.google.protobuf.GeneratedMessageV3
    implements JobStatusOrBuilder
     Job status.
     
    Protobuf type google.cloud.batch.v1alpha.JobStatus
    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
      • getStateValue

        public int getStateValue()
         Job state
         
        .google.cloud.batch.v1alpha.JobStatus.State state = 1;
        Specified by:
        getStateValue in interface JobStatusOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getStatusEventsCount

        public int getStatusEventsCount()
         Job status events
         
        repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
        Specified by:
        getStatusEventsCount in interface JobStatusOrBuilder
      • getTaskGroupsCount

        public int getTaskGroupsCount()
        Description copied from interface: JobStatusOrBuilder
         Aggregated task status for each TaskGroup in the Job.
         The map key is TaskGroup ID.
         
        map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
        Specified by:
        getTaskGroupsCount in interface JobStatusOrBuilder
      • containsTaskGroups

        public boolean containsTaskGroups​(String key)
         Aggregated task status for each TaskGroup in the Job.
         The map key is TaskGroup ID.
         
        map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
        Specified by:
        containsTaskGroups in interface JobStatusOrBuilder
      • hasRunDuration

        public boolean hasRunDuration()
         The duration of time that the Job spent in status RUNNING.
         
        .google.protobuf.Duration run_duration = 5;
        Specified by:
        hasRunDuration in interface JobStatusOrBuilder
        Returns:
        Whether the runDuration field is set.
      • getRunDuration

        public com.google.protobuf.Duration getRunDuration()
         The duration of time that the Job spent in status RUNNING.
         
        .google.protobuf.Duration run_duration = 5;
        Specified by:
        getRunDuration in interface JobStatusOrBuilder
        Returns:
        The runDuration.
      • getRunDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getRunDurationOrBuilder()
         The duration of time that the Job spent in status RUNNING.
         
        .google.protobuf.Duration run_duration = 5;
        Specified by:
        getRunDurationOrBuilder in interface JobStatusOrBuilder
      • hasResourceUsage

        public boolean hasResourceUsage()
         The resource usage of the job.
         
        .google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
        Specified by:
        hasResourceUsage in interface JobStatusOrBuilder
        Returns:
        Whether the resourceUsage field is set.
      • getResourceUsage

        public ResourceUsage getResourceUsage()
         The resource usage of the job.
         
        .google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
        Specified by:
        getResourceUsage in interface JobStatusOrBuilder
        Returns:
        The resourceUsage.
      • 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 JobStatus parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static JobStatus getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<JobStatus> 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 JobStatus getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder