Class JobStatus

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.batch.v1alpha.JobStatus
All Implemented Interfaces:
JobStatusOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class JobStatus extends com.google.protobuf.GeneratedMessage implements JobStatusOrBuilder
 Job status.
 
Protobuf type google.cloud.batch.v1alpha.JobStatus
See Also:
  • Field Details

    • STATE_FIELD_NUMBER

      public static final int STATE_FIELD_NUMBER
      See Also:
    • STATUS_EVENTS_FIELD_NUMBER

      public static final int STATUS_EVENTS_FIELD_NUMBER
      See Also:
    • TASK_GROUPS_FIELD_NUMBER

      public static final int TASK_GROUPS_FIELD_NUMBER
      See Also:
    • RUN_DURATION_FIELD_NUMBER

      public static final int RUN_DURATION_FIELD_NUMBER
      See Also:
    • RESOURCE_USAGE_FIELD_NUMBER

      public static final int RESOURCE_USAGE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • getState

      public JobStatus.State getState()
       Job state
       
      .google.cloud.batch.v1alpha.JobStatus.State state = 1;
      Specified by:
      getState in interface JobStatusOrBuilder
      Returns:
      The state.
    • getStatusEventsList

      public List<StatusEvent> getStatusEventsList()
       Job status events
       
      repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
      Specified by:
      getStatusEventsList in interface JobStatusOrBuilder
    • getStatusEventsOrBuilderList

      public List<? extends StatusEventOrBuilder> getStatusEventsOrBuilderList()
       Job status events
       
      repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
      Specified by:
      getStatusEventsOrBuilderList in interface JobStatusOrBuilder
    • getStatusEventsCount

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

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

      public StatusEventOrBuilder getStatusEventsOrBuilder(int index)
       Job status events
       
      repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
      Specified by:
      getStatusEventsOrBuilder 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
    • getTaskGroups

      Deprecated.
      Use getTaskGroupsMap() instead.
      Specified by:
      getTaskGroups in interface JobStatusOrBuilder
    • getTaskGroupsMap

      public Map<String,JobStatus.TaskGroupStatus> getTaskGroupsMap()
       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:
      getTaskGroupsMap in interface JobStatusOrBuilder
    • getTaskGroupsOrDefault

      public JobStatus.TaskGroupStatus getTaskGroupsOrDefault(String key, JobStatus.TaskGroupStatus defaultValue)
       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:
      getTaskGroupsOrDefault in interface JobStatusOrBuilder
    • getTaskGroupsOrThrow

      public JobStatus.TaskGroupStatus getTaskGroupsOrThrow(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:
      getTaskGroupsOrThrow 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.
    • getResourceUsageOrBuilder

      public ResourceUsageOrBuilder getResourceUsageOrBuilder()
       The resource usage of the job.
       
      .google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
      Specified by:
      getResourceUsageOrBuilder in interface JobStatusOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JobStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static JobStatus parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static JobStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JobStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static JobStatus.Builder newBuilder()
    • newBuilder

      public static JobStatus.Builder newBuilder(JobStatus prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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