Class KubernetesPodData.ContainerStatus.Builder

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

public static final class KubernetesPodData.ContainerStatus.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder> implements KubernetesPodData.ContainerStatusOrBuilder
 ContainerStatus contains details for the current status of this container.
 
Protobuf type chalk.kubernetes.v1.KubernetesPodData.ContainerStatus
  • Method Details

    • 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.Builder<KubernetesPodData.ContainerStatus.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • getDefaultInstanceForType

      public KubernetesPodData.ContainerStatus getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • setField

      public KubernetesPodData.ContainerStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • clearField

      public KubernetesPodData.ContainerStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • clearOneof

      public KubernetesPodData.ContainerStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • setRepeatedField

      public KubernetesPodData.ContainerStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • addRepeatedField

      public KubernetesPodData.ContainerStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • mergeFrom

      public KubernetesPodData.ContainerStatus.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KubernetesPodData.ContainerStatus.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • mergeFrom

      public KubernetesPodData.ContainerStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KubernetesPodData.ContainerStatus.Builder>
      Throws:
      IOException
    • 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.
    • setName

       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"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       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"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public KubernetesPodData.ContainerStatus.Builder setNameBytes(com.google.protobuf.ByteString value)
       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"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setState

       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
    • setState

       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
    • mergeState

       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
    • clearState

       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "state"];
    • getStateBuilder

      public KubernetesPodData.ContainerState.Builder getStateBuilder()
       State holds details about the container's current condition.
       +optional
       
      optional .chalk.kubernetes.v1.KubernetesPodData.ContainerState state = 2 [json_name = "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.
    • setLastState

       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"];
    • setLastState

       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"];
    • mergeLastState

       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"];
    • clearLastState

       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"];
    • getLastStateBuilder

      public KubernetesPodData.ContainerState.Builder getLastStateBuilder()
       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"];
    • 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.
    • setReady

      public KubernetesPodData.ContainerStatus.Builder setReady(boolean value)
       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"];
      Parameters:
      value - The ready to set.
      Returns:
      This builder for chaining.
    • clearReady

       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"];
      Returns:
      This builder for chaining.
    • 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.
    • setRestartCount

      public KubernetesPodData.ContainerStatus.Builder setRestartCount(int value)
       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"];
      Parameters:
      value - The restartCount to set.
      Returns:
      This builder for chaining.
    • clearRestartCount

      public KubernetesPodData.ContainerStatus.Builder clearRestartCount()
       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"];
      Returns:
      This builder for chaining.
    • 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.
    • setImage

       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"];
      Parameters:
      value - The image to set.
      Returns:
      This builder for chaining.
    • clearImage

       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"];
      Returns:
      This builder for chaining.
    • setImageBytes

      public KubernetesPodData.ContainerStatus.Builder setImageBytes(com.google.protobuf.ByteString value)
       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"];
      Parameters:
      value - The bytes for image to set.
      Returns:
      This builder for chaining.
    • 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.
    • setImageId

       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"];
      Parameters:
      value - The imageId to set.
      Returns:
      This builder for chaining.
    • clearImageId

       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"];
      Returns:
      This builder for chaining.
    • setImageIdBytes

      public KubernetesPodData.ContainerStatus.Builder setImageIdBytes(com.google.protobuf.ByteString value)
       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"];
      Parameters:
      value - The bytes for imageId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setContainerId

      public KubernetesPodData.ContainerStatus.Builder setContainerId(String value)
       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"];
      Parameters:
      value - The containerId to set.
      Returns:
      This builder for chaining.
    • clearContainerId

      public KubernetesPodData.ContainerStatus.Builder clearContainerId()
       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"];
      Returns:
      This builder for chaining.
    • setContainerIdBytes

      public KubernetesPodData.ContainerStatus.Builder setContainerIdBytes(com.google.protobuf.ByteString value)
       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"];
      Parameters:
      value - The bytes for containerId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStarted

      public KubernetesPodData.ContainerStatus.Builder setStarted(boolean value)
       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"];
      Parameters:
      value - The started to set.
      Returns:
      This builder for chaining.
    • clearStarted

       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"];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final KubernetesPodData.ContainerStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>
    • mergeUnknownFields

      public final KubernetesPodData.ContainerStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<KubernetesPodData.ContainerStatus.Builder>