Class KubernetesPodData.ContainerStatus

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
ai.chalk.protos.chalk.kubernetes.v1.KubernetesPodData.ContainerStatus
All Implemented Interfaces:
KubernetesPodData.ContainerStatusOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
KubernetesPodData

public static final class KubernetesPodData.ContainerStatus extends com.google.protobuf.GeneratedMessageV3 implements KubernetesPodData.ContainerStatusOrBuilder
 ContainerStatus contains details for the current status of this container.
 
Protobuf type chalk.kubernetes.v1.KubernetesPodData.ContainerStatus
See Also:
  • Field Details

  • Method Details

    • 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()
    • internalGetFieldAccessorTable

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

      public String getName()
       Name is a DNS_LABEL representing the unique name of the container.
       Each container in a pod must have a unique name across all container types.
       Cannot be updated.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name is a DNS_LABEL representing the unique name of the container.
       Each container in a pod must have a unique name across all container types.
       Cannot be updated.
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The bytes for name.
    • hasState

      public boolean hasState()
       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
      Specified by:
      hasState in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      Whether the state field is set.
    • getState

       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
      Specified by:
      getState in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The state.
    • getStateOrBuilder

      public KubernetesPodData.ContainerStateOrBuilder getStateOrBuilder()
       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
      Specified by:
      getStateOrBuilder in interface KubernetesPodData.ContainerStatusOrBuilder
    • hasLastState

      public boolean hasLastState()
       LastTerminationState holds the last termination state of the container to
       help debug container crashes and restarts. This field is not
       populated if the container is still running and RestartCount is 0.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];
      Specified by:
      hasLastState in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      Whether the lastState field is set.
    • getLastState

      public KubernetesPodData.ContainerState getLastState()
       LastTerminationState holds the last termination state of the container to
       help debug container crashes and restarts. This field is not
       populated if the container is still running and RestartCount is 0.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];
      Specified by:
      getLastState in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The lastState.
    • getLastStateOrBuilder

      public KubernetesPodData.ContainerStateOrBuilder getLastStateOrBuilder()
       LastTerminationState holds the last termination state of the container to
       help debug container crashes and restarts. This field is not
       populated if the container is still running and RestartCount is 0.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState last_state = 3 [json_name = "lastState"];
      Specified by:
      getLastStateOrBuilder in interface KubernetesPodData.ContainerStatusOrBuilder
    • hasReady

      public boolean hasReady()
       Ready specifies whether the container is currently passing its readiness check.
       The value will change as readiness probes keep executing. If no readiness
       probes are specified, this field defaults to true once the container is
       fully started (see Started field).
      
       The value is typically used to determine whether a container is ready to
       accept traffic.
       
      optional bool ready = 4 [json_name = "ready"];
      Specified by:
      hasReady in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      Whether the ready field is set.
    • getReady

      public boolean getReady()
       Ready specifies whether the container is currently passing its readiness check.
       The value will change as readiness probes keep executing. If no readiness
       probes are specified, this field defaults to true once the container is
       fully started (see Started field).
      
       The value is typically used to determine whether a container is ready to
       accept traffic.
       
      optional bool ready = 4 [json_name = "ready"];
      Specified by:
      getReady in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The ready.
    • getRestartCount

      public int getRestartCount()
       RestartCount holds the number of times the container has been restarted.
       Kubelet makes an effort to always increment the value, but there
       are cases when the state may be lost due to node restarts and then the value
       may be reset to 0. The value is never negative.
       
      int32 restart_count = 5 [json_name = "restartCount"];
      Specified by:
      getRestartCount in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The restartCount.
    • getImage

      public String getImage()
       Image is the name of container image that the container is running.
       The container image may not match the image used in the PodSpec,
       as it may have been resolved by the runtime.
       More info: https://kubernetes.io/docs/concepts/containers/images.
       
      string image = 6 [json_name = "image"];
      Specified by:
      getImage in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The image.
    • getImageBytes

      public com.google.protobuf.ByteString getImageBytes()
       Image is the name of container image that the container is running.
       The container image may not match the image used in the PodSpec,
       as it may have been resolved by the runtime.
       More info: https://kubernetes.io/docs/concepts/containers/images.
       
      string image = 6 [json_name = "image"];
      Specified by:
      getImageBytes in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The bytes for image.
    • getImageId

      public String getImageId()
       ImageID is the image ID of the container's image. The image ID may not
       match the image ID of the image used in the PodSpec, as it may have been
       resolved by the runtime.
       
      string image_id = 7 [json_name = "imageId"];
      Specified by:
      getImageId in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The imageId.
    • getImageIdBytes

      public com.google.protobuf.ByteString getImageIdBytes()
       ImageID is the image ID of the container's image. The image ID may not
       match the image ID of the image used in the PodSpec, as it may have been
       resolved by the runtime.
       
      string image_id = 7 [json_name = "imageId"];
      Specified by:
      getImageIdBytes in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The bytes for imageId.
    • getContainerId

      public String getContainerId()
       ContainerID is the ID of the container in the format '<type>://<container_id>'.
       Where type is a container runtime identifier, returned from Version call of CRI API
       (for example "containerd").
       +optional
       
      string container_id = 8 [json_name = "containerId"];
      Specified by:
      getContainerId in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The containerId.
    • getContainerIdBytes

      public com.google.protobuf.ByteString getContainerIdBytes()
       ContainerID is the ID of the container in the format '<type>://<container_id>'.
       Where type is a container runtime identifier, returned from Version call of CRI API
       (for example "containerd").
       +optional
       
      string container_id = 8 [json_name = "containerId"];
      Specified by:
      getContainerIdBytes in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The bytes for containerId.
    • getStarted

      public boolean getStarted()
       Started indicates whether the container has finished its postStart lifecycle hook
       and passed its startup probe.
       Initialized as false, becomes true after startupProbe is considered
       successful. Resets to false when the container is restarted, or if kubelet
       loses state temporarily. In both cases, startup probes will run again.
       Is always true when no startupProbe is defined and container is running and
       has passed the postStart lifecycle hook.
       
      bool started = 9 [json_name = "started"];
      Specified by:
      getStarted in interface KubernetesPodData.ContainerStatusOrBuilder
      Returns:
      The started.
    • 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 KubernetesPodData.ContainerStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static KubernetesPodData.ContainerStatus parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static KubernetesPodData.ContainerStatus parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static KubernetesPodData.ContainerStatus.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static KubernetesPodData.ContainerStatus getDefaultInstance()
    • parser

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

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