Class V1Batch.JobStatus

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1Batch.JobStatus
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1Batch.JobStatusOrBuilder, Serializable
Enclosing class:
V1Batch

public static final class V1Batch.JobStatus extends com.google.protobuf.GeneratedMessageV3 implements V1Batch.JobStatusOrBuilder
 JobStatus represents the current state of a Job.
 
Protobuf type k8s.io.api.batch.v1.JobStatus
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

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

      public List<V1Batch.JobCondition> getConditionsList()
       The latest available observations of an object's current state. When a Job
       fails, one of the conditions will have type "Failed" and status true. When
       a Job is suspended, one of the conditions will have type "Suspended" and
       status true; when the Job is resumed, the status of this condition will
       become false. When a Job is completed, one of the conditions will have
       type "Complete" and status true.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=atomic
       
      repeated .k8s.io.api.batch.v1.JobCondition conditions = 1;
      Specified by:
      getConditionsList in interface V1Batch.JobStatusOrBuilder
    • getConditionsOrBuilderList

      public List<? extends V1Batch.JobConditionOrBuilder> getConditionsOrBuilderList()
       The latest available observations of an object's current state. When a Job
       fails, one of the conditions will have type "Failed" and status true. When
       a Job is suspended, one of the conditions will have type "Suspended" and
       status true; when the Job is resumed, the status of this condition will
       become false. When a Job is completed, one of the conditions will have
       type "Complete" and status true.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=atomic
       
      repeated .k8s.io.api.batch.v1.JobCondition conditions = 1;
      Specified by:
      getConditionsOrBuilderList in interface V1Batch.JobStatusOrBuilder
    • getConditionsCount

      public int getConditionsCount()
       The latest available observations of an object's current state. When a Job
       fails, one of the conditions will have type "Failed" and status true. When
       a Job is suspended, one of the conditions will have type "Suspended" and
       status true; when the Job is resumed, the status of this condition will
       become false. When a Job is completed, one of the conditions will have
       type "Complete" and status true.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=atomic
       
      repeated .k8s.io.api.batch.v1.JobCondition conditions = 1;
      Specified by:
      getConditionsCount in interface V1Batch.JobStatusOrBuilder
    • getConditions

      public V1Batch.JobCondition getConditions(int index)
       The latest available observations of an object's current state. When a Job
       fails, one of the conditions will have type "Failed" and status true. When
       a Job is suspended, one of the conditions will have type "Suspended" and
       status true; when the Job is resumed, the status of this condition will
       become false. When a Job is completed, one of the conditions will have
       type "Complete" and status true.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=atomic
       
      repeated .k8s.io.api.batch.v1.JobCondition conditions = 1;
      Specified by:
      getConditions in interface V1Batch.JobStatusOrBuilder
    • getConditionsOrBuilder

      public V1Batch.JobConditionOrBuilder getConditionsOrBuilder(int index)
       The latest available observations of an object's current state. When a Job
       fails, one of the conditions will have type "Failed" and status true. When
       a Job is suspended, one of the conditions will have type "Suspended" and
       status true; when the Job is resumed, the status of this condition will
       become false. When a Job is completed, one of the conditions will have
       type "Complete" and status true.
       More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=atomic
       
      repeated .k8s.io.api.batch.v1.JobCondition conditions = 1;
      Specified by:
      getConditionsOrBuilder in interface V1Batch.JobStatusOrBuilder
    • hasStartTime

      public boolean hasStartTime()
       Represents time when the job controller started processing a job. When a
       Job is created in the suspended state, this field is not set until the
       first time it is resumed. This field is reset every time a Job is resumed
       from suspension. It is represented in RFC3339 form and is in UTC.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2;
      Specified by:
      hasStartTime in interface V1Batch.JobStatusOrBuilder
    • getStartTime

      public Meta.Time getStartTime()
       Represents time when the job controller started processing a job. When a
       Job is created in the suspended state, this field is not set until the
       first time it is resumed. This field is reset every time a Job is resumed
       from suspension. It is represented in RFC3339 form and is in UTC.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2;
      Specified by:
      getStartTime in interface V1Batch.JobStatusOrBuilder
    • getStartTimeOrBuilder

      public Meta.TimeOrBuilder getStartTimeOrBuilder()
       Represents time when the job controller started processing a job. When a
       Job is created in the suspended state, this field is not set until the
       first time it is resumed. This field is reset every time a Job is resumed
       from suspension. It is represented in RFC3339 form and is in UTC.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2;
      Specified by:
      getStartTimeOrBuilder in interface V1Batch.JobStatusOrBuilder
    • hasCompletionTime

      public boolean hasCompletionTime()
       Represents time when the job was completed. It is not guaranteed to
       be set in happens-before order across separate operations.
       It is represented in RFC3339 form and is in UTC.
       The completion time is only set when the job finishes successfully.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTime = 3;
      Specified by:
      hasCompletionTime in interface V1Batch.JobStatusOrBuilder
    • getCompletionTime

      public Meta.Time getCompletionTime()
       Represents time when the job was completed. It is not guaranteed to
       be set in happens-before order across separate operations.
       It is represented in RFC3339 form and is in UTC.
       The completion time is only set when the job finishes successfully.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTime = 3;
      Specified by:
      getCompletionTime in interface V1Batch.JobStatusOrBuilder
    • getCompletionTimeOrBuilder

      public Meta.TimeOrBuilder getCompletionTimeOrBuilder()
       Represents time when the job was completed. It is not guaranteed to
       be set in happens-before order across separate operations.
       It is represented in RFC3339 form and is in UTC.
       The completion time is only set when the job finishes successfully.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTime = 3;
      Specified by:
      getCompletionTimeOrBuilder in interface V1Batch.JobStatusOrBuilder
    • hasActive

      public boolean hasActive()
       The number of pending and running pods.
       +optional
       
      optional int32 active = 4;
      Specified by:
      hasActive in interface V1Batch.JobStatusOrBuilder
    • getActive

      public int getActive()
       The number of pending and running pods.
       +optional
       
      optional int32 active = 4;
      Specified by:
      getActive in interface V1Batch.JobStatusOrBuilder
    • hasSucceeded

      public boolean hasSucceeded()
       The number of pods which reached phase Succeeded.
       +optional
       
      optional int32 succeeded = 5;
      Specified by:
      hasSucceeded in interface V1Batch.JobStatusOrBuilder
    • getSucceeded

      public int getSucceeded()
       The number of pods which reached phase Succeeded.
       +optional
       
      optional int32 succeeded = 5;
      Specified by:
      getSucceeded in interface V1Batch.JobStatusOrBuilder
    • hasFailed

      public boolean hasFailed()
       The number of pods which reached phase Failed.
       +optional
       
      optional int32 failed = 6;
      Specified by:
      hasFailed in interface V1Batch.JobStatusOrBuilder
    • getFailed

      public int getFailed()
       The number of pods which reached phase Failed.
       +optional
       
      optional int32 failed = 6;
      Specified by:
      getFailed in interface V1Batch.JobStatusOrBuilder
    • hasCompletedIndexes

      public boolean hasCompletedIndexes()
       CompletedIndexes holds the completed indexes when .spec.completionMode =
       "Indexed" in a text format. The indexes are represented as decimal integers
       separated by commas. The numbers are listed in increasing order. Three or
       more consecutive numbers are compressed and represented by the first and
       last element of the series, separated by a hyphen.
       For example, if the completed indexes are 1, 3, 4, 5 and 7, they are
       represented as "1,3-5,7".
       +optional
       
      optional string completedIndexes = 7;
      Specified by:
      hasCompletedIndexes in interface V1Batch.JobStatusOrBuilder
    • getCompletedIndexes

      public String getCompletedIndexes()
       CompletedIndexes holds the completed indexes when .spec.completionMode =
       "Indexed" in a text format. The indexes are represented as decimal integers
       separated by commas. The numbers are listed in increasing order. Three or
       more consecutive numbers are compressed and represented by the first and
       last element of the series, separated by a hyphen.
       For example, if the completed indexes are 1, 3, 4, 5 and 7, they are
       represented as "1,3-5,7".
       +optional
       
      optional string completedIndexes = 7;
      Specified by:
      getCompletedIndexes in interface V1Batch.JobStatusOrBuilder
    • getCompletedIndexesBytes

      public com.google.protobuf.ByteString getCompletedIndexesBytes()
       CompletedIndexes holds the completed indexes when .spec.completionMode =
       "Indexed" in a text format. The indexes are represented as decimal integers
       separated by commas. The numbers are listed in increasing order. Three or
       more consecutive numbers are compressed and represented by the first and
       last element of the series, separated by a hyphen.
       For example, if the completed indexes are 1, 3, 4, 5 and 7, they are
       represented as "1,3-5,7".
       +optional
       
      optional string completedIndexes = 7;
      Specified by:
      getCompletedIndexesBytes in interface V1Batch.JobStatusOrBuilder
    • hasUncountedTerminatedPods

      public boolean hasUncountedTerminatedPods()
       UncountedTerminatedPods holds the UIDs of Pods that have terminated but
       the job controller hasn't yet accounted for in the status counters.
       The job controller creates pods with a finalizer. When a pod terminates
       (succeeded or failed), the controller does three steps to account for it
       in the job status:
       (1) Add the pod UID to the arrays in this field.
       (2) Remove the pod finalizer.
       (3) Remove the pod UID from the arrays while increasing the corresponding
           counter.
       This field is beta-level. The job controller only makes use of this field
       when the feature gate JobTrackingWithFinalizers is enabled (enabled
       by default).
       Old jobs might not be tracked using this field, in which case the field
       remains null.
       +optional
       
      optional .k8s.io.api.batch.v1.UncountedTerminatedPods uncountedTerminatedPods = 8;
      Specified by:
      hasUncountedTerminatedPods in interface V1Batch.JobStatusOrBuilder
    • getUncountedTerminatedPods

      public V1Batch.UncountedTerminatedPods getUncountedTerminatedPods()
       UncountedTerminatedPods holds the UIDs of Pods that have terminated but
       the job controller hasn't yet accounted for in the status counters.
       The job controller creates pods with a finalizer. When a pod terminates
       (succeeded or failed), the controller does three steps to account for it
       in the job status:
       (1) Add the pod UID to the arrays in this field.
       (2) Remove the pod finalizer.
       (3) Remove the pod UID from the arrays while increasing the corresponding
           counter.
       This field is beta-level. The job controller only makes use of this field
       when the feature gate JobTrackingWithFinalizers is enabled (enabled
       by default).
       Old jobs might not be tracked using this field, in which case the field
       remains null.
       +optional
       
      optional .k8s.io.api.batch.v1.UncountedTerminatedPods uncountedTerminatedPods = 8;
      Specified by:
      getUncountedTerminatedPods in interface V1Batch.JobStatusOrBuilder
    • getUncountedTerminatedPodsOrBuilder

      public V1Batch.UncountedTerminatedPodsOrBuilder getUncountedTerminatedPodsOrBuilder()
       UncountedTerminatedPods holds the UIDs of Pods that have terminated but
       the job controller hasn't yet accounted for in the status counters.
       The job controller creates pods with a finalizer. When a pod terminates
       (succeeded or failed), the controller does three steps to account for it
       in the job status:
       (1) Add the pod UID to the arrays in this field.
       (2) Remove the pod finalizer.
       (3) Remove the pod UID from the arrays while increasing the corresponding
           counter.
       This field is beta-level. The job controller only makes use of this field
       when the feature gate JobTrackingWithFinalizers is enabled (enabled
       by default).
       Old jobs might not be tracked using this field, in which case the field
       remains null.
       +optional
       
      optional .k8s.io.api.batch.v1.UncountedTerminatedPods uncountedTerminatedPods = 8;
      Specified by:
      getUncountedTerminatedPodsOrBuilder in interface V1Batch.JobStatusOrBuilder
    • hasReady

      public boolean hasReady()
       The number of pods which have a Ready condition.
       This field is alpha-level. The job controller populates the field when
       the feature gate JobReadyPods is enabled (disabled by default).
       +optional
       
      optional int32 ready = 9;
      Specified by:
      hasReady in interface V1Batch.JobStatusOrBuilder
    • getReady

      public int getReady()
       The number of pods which have a Ready condition.
       This field is alpha-level. The job controller populates the field when
       the feature gate JobReadyPods is enabled (disabled by default).
       +optional
       
      optional int32 ready = 9;
      Specified by:
      getReady in interface V1Batch.JobStatusOrBuilder
    • 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 V1Batch.JobStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static V1Batch.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 V1Batch.JobStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static V1Batch.JobStatus parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

      public static V1Batch.JobStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static V1Batch.JobStatus.Builder newBuilder()
    • newBuilder

      public static V1Batch.JobStatus.Builder newBuilder(V1Batch.JobStatus prototype)
    • toBuilder

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

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

      public static V1Batch.JobStatus getDefaultInstance()
    • parser

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

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