Class Generated.ContainerStatus

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.ContainerStatusOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.ContainerStatus
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.ContainerStatusOrBuilder
     ContainerStatus contains details for the current status of this container.
     
    Protobuf type k8s.io.api.core.v1.ContainerStatus
    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()
      • internalGetMapFieldReflection

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

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

        public boolean hasName()
         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.
         
        optional string name = 1;
        Specified by:
        hasName in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the name field is set.
      • 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.
         
        optional string name = 1;
        Specified by:
        getName in interface Generated.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.
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface Generated.ContainerStatusOrBuilder
        Returns:
        The bytes for name.
      • hasState

        public boolean hasState()
         State holds details about the container's current condition.
         +optional
         
        optional .k8s.io.api.core.v1.ContainerState state = 2;
        Specified by:
        hasState in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the state field is set.
      • 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 .k8s.io.api.core.v1.ContainerState lastState = 3;
        Specified by:
        hasLastState in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the lastState field is set.
      • getLastState

        public Generated.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 .k8s.io.api.core.v1.ContainerState lastState = 3;
        Specified by:
        getLastState in interface Generated.ContainerStatusOrBuilder
        Returns:
        The lastState.
      • getLastStateOrBuilder

        public Generated.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 .k8s.io.api.core.v1.ContainerState lastState = 3;
        Specified by:
        getLastStateOrBuilder in interface Generated.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;
        Specified by:
        hasReady in interface Generated.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;
        Specified by:
        getReady in interface Generated.ContainerStatusOrBuilder
        Returns:
        The ready.
      • hasRestartCount

        public boolean hasRestartCount()
         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.
         
        optional int32 restartCount = 5;
        Specified by:
        hasRestartCount in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the restartCount field is set.
      • 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.
         
        optional int32 restartCount = 5;
        Specified by:
        getRestartCount in interface Generated.ContainerStatusOrBuilder
        Returns:
        The restartCount.
      • hasImage

        public boolean hasImage()
         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.
         
        optional string image = 6;
        Specified by:
        hasImage in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the image field is set.
      • 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.
         
        optional string image = 6;
        Specified by:
        getImage in interface Generated.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.
         
        optional string image = 6;
        Specified by:
        getImageBytes in interface Generated.ContainerStatusOrBuilder
        Returns:
        The bytes for image.
      • hasImageID

        public boolean hasImageID()
         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.
         
        optional string imageID = 7;
        Specified by:
        hasImageID in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the imageID field is set.
      • 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.
         
        optional string imageID = 7;
        Specified by:
        getImageID in interface Generated.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.
         
        optional string imageID = 7;
        Specified by:
        getImageIDBytes in interface Generated.ContainerStatusOrBuilder
        Returns:
        The bytes for imageID.
      • hasContainerID

        public boolean hasContainerID()
         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
         
        optional string containerID = 8;
        Specified by:
        hasContainerID in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the containerID field is set.
      • 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
         
        optional string containerID = 8;
        Specified by:
        getContainerID in interface Generated.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
         
        optional string containerID = 8;
        Specified by:
        getContainerIDBytes in interface Generated.ContainerStatusOrBuilder
        Returns:
        The bytes for containerID.
      • hasStarted

        public boolean hasStarted()
         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. The null value must be treated the
         same as false.
         +optional
         
        optional bool started = 9;
        Specified by:
        hasStarted in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the started field is set.
      • 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. The null value must be treated the
         same as false.
         +optional
         
        optional bool started = 9;
        Specified by:
        getStarted in interface Generated.ContainerStatusOrBuilder
        Returns:
        The started.
      • getAllocatedResourcesCount

        public int getAllocatedResourcesCount()
        Description copied from interface: Generated.ContainerStatusOrBuilder
         AllocatedResources represents the compute resources allocated for this container by the
         node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
         and after successfully admitting desired pod resize.
         +featureGate=InPlacePodVerticalScalingAllocatedStatus
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
        Specified by:
        getAllocatedResourcesCount in interface Generated.ContainerStatusOrBuilder
      • containsAllocatedResources

        public boolean containsAllocatedResources​(String key)
         AllocatedResources represents the compute resources allocated for this container by the
         node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
         and after successfully admitting desired pod resize.
         +featureGate=InPlacePodVerticalScalingAllocatedStatus
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
        Specified by:
        containsAllocatedResources in interface Generated.ContainerStatusOrBuilder
      • getAllocatedResourcesMap

        public Map<String,​Generated.Quantity> getAllocatedResourcesMap()
         AllocatedResources represents the compute resources allocated for this container by the
         node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
         and after successfully admitting desired pod resize.
         +featureGate=InPlacePodVerticalScalingAllocatedStatus
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
        Specified by:
        getAllocatedResourcesMap in interface Generated.ContainerStatusOrBuilder
      • getAllocatedResourcesOrDefault

        public Generated.Quantity getAllocatedResourcesOrDefault​(String key,
                                                                 Generated.Quantity defaultValue)
         AllocatedResources represents the compute resources allocated for this container by the
         node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
         and after successfully admitting desired pod resize.
         +featureGate=InPlacePodVerticalScalingAllocatedStatus
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
        Specified by:
        getAllocatedResourcesOrDefault in interface Generated.ContainerStatusOrBuilder
      • getAllocatedResourcesOrThrow

        public Generated.Quantity getAllocatedResourcesOrThrow​(String key)
         AllocatedResources represents the compute resources allocated for this container by the
         node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
         and after successfully admitting desired pod resize.
         +featureGate=InPlacePodVerticalScalingAllocatedStatus
         +optional
         
        map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 10;
        Specified by:
        getAllocatedResourcesOrThrow in interface Generated.ContainerStatusOrBuilder
      • hasResources

        public boolean hasResources()
         Resources represents the compute resource requests and limits that have been successfully
         enacted on the running container after it has been started or has been successfully resized.
         +featureGate=InPlacePodVerticalScaling
         +optional
         
        optional .k8s.io.api.core.v1.ResourceRequirements resources = 11;
        Specified by:
        hasResources in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the resources field is set.
      • getResources

        public Generated.ResourceRequirements getResources()
         Resources represents the compute resource requests and limits that have been successfully
         enacted on the running container after it has been started or has been successfully resized.
         +featureGate=InPlacePodVerticalScaling
         +optional
         
        optional .k8s.io.api.core.v1.ResourceRequirements resources = 11;
        Specified by:
        getResources in interface Generated.ContainerStatusOrBuilder
        Returns:
        The resources.
      • getResourcesOrBuilder

        public Generated.ResourceRequirementsOrBuilder getResourcesOrBuilder()
         Resources represents the compute resource requests and limits that have been successfully
         enacted on the running container after it has been started or has been successfully resized.
         +featureGate=InPlacePodVerticalScaling
         +optional
         
        optional .k8s.io.api.core.v1.ResourceRequirements resources = 11;
        Specified by:
        getResourcesOrBuilder in interface Generated.ContainerStatusOrBuilder
      • getVolumeMountsCount

        public int getVolumeMountsCount()
         Status of volume mounts.
         +optional
         +patchMergeKey=mountPath
         +patchStrategy=merge
         +listType=map
         +listMapKey=mountPath
         +featureGate=RecursiveReadOnlyMounts
         
        repeated .k8s.io.api.core.v1.VolumeMountStatus volumeMounts = 12;
        Specified by:
        getVolumeMountsCount in interface Generated.ContainerStatusOrBuilder
      • getVolumeMounts

        public Generated.VolumeMountStatus getVolumeMounts​(int index)
         Status of volume mounts.
         +optional
         +patchMergeKey=mountPath
         +patchStrategy=merge
         +listType=map
         +listMapKey=mountPath
         +featureGate=RecursiveReadOnlyMounts
         
        repeated .k8s.io.api.core.v1.VolumeMountStatus volumeMounts = 12;
        Specified by:
        getVolumeMounts in interface Generated.ContainerStatusOrBuilder
      • hasUser

        public boolean hasUser()
         User represents user identity information initially attached to the first process of the container
         +featureGate=SupplementalGroupsPolicy
         +optional
         
        optional .k8s.io.api.core.v1.ContainerUser user = 13;
        Specified by:
        hasUser in interface Generated.ContainerStatusOrBuilder
        Returns:
        Whether the user field is set.
      • getUser

        public Generated.ContainerUser getUser()
         User represents user identity information initially attached to the first process of the container
         +featureGate=SupplementalGroupsPolicy
         +optional
         
        optional .k8s.io.api.core.v1.ContainerUser user = 13;
        Specified by:
        getUser in interface Generated.ContainerStatusOrBuilder
        Returns:
        The user.
      • getAllocatedResourcesStatusList

        public List<Generated.ResourceStatus> getAllocatedResourcesStatusList()
         AllocatedResourcesStatus represents the status of various resources
         allocated for this Pod.
         +featureGate=ResourceHealthStatus
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ResourceStatus allocatedResourcesStatus = 14;
        Specified by:
        getAllocatedResourcesStatusList in interface Generated.ContainerStatusOrBuilder
      • getAllocatedResourcesStatusCount

        public int getAllocatedResourcesStatusCount()
         AllocatedResourcesStatus represents the status of various resources
         allocated for this Pod.
         +featureGate=ResourceHealthStatus
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ResourceStatus allocatedResourcesStatus = 14;
        Specified by:
        getAllocatedResourcesStatusCount in interface Generated.ContainerStatusOrBuilder
      • getAllocatedResourcesStatus

        public Generated.ResourceStatus getAllocatedResourcesStatus​(int index)
         AllocatedResourcesStatus represents the status of various resources
         allocated for this Pod.
         +featureGate=ResourceHealthStatus
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ResourceStatus allocatedResourcesStatus = 14;
        Specified by:
        getAllocatedResourcesStatus in interface Generated.ContainerStatusOrBuilder
      • getAllocatedResourcesStatusOrBuilder

        public Generated.ResourceStatusOrBuilder getAllocatedResourcesStatusOrBuilder​(int index)
         AllocatedResourcesStatus represents the status of various resources
         allocated for this Pod.
         +featureGate=ResourceHealthStatus
         +optional
         +patchMergeKey=name
         +patchStrategy=merge
         +listType=map
         +listMapKey=name
         
        repeated .k8s.io.api.core.v1.ResourceStatus allocatedResourcesStatus = 14;
        Specified by:
        getAllocatedResourcesStatusOrBuilder in interface Generated.ContainerStatusOrBuilder
      • 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 Generated.ContainerStatus parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

        protected Generated.ContainerStatus.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

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