Package ai.chalk.protos.chalk.pubsub.v1
Class PodStatusPubSub.Container
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
ai.chalk.protos.chalk.pubsub.v1.PodStatusPubSub.Container
- All Implemented Interfaces:
PodStatusPubSub.ContainerOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- PodStatusPubSub
public static final class PodStatusPubSub.Container
extends com.google.protobuf.GeneratedMessageV3
implements PodStatusPubSub.ContainerOrBuilder
A single application container that you want to run within a pod.Protobuf type
chalk.pubsub.v1.PodStatusPubSub.Container- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA single application container that you want to run within a pod.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetArgs(int index) Arguments to the entrypoint.com.google.protobuf.ByteStringgetArgsBytes(int index) Arguments to the entrypoint.intArguments to the entrypoint.com.google.protobuf.ProtocolStringListArguments to the entrypoint.getCommand(int index) Entrypoint array.com.google.protobuf.ByteStringgetCommandBytes(int index) Entrypoint array.intEntrypoint array.com.google.protobuf.ProtocolStringListEntrypoint array.static PodStatusPubSub.Containerstatic final com.google.protobuf.Descriptors.DescriptorgetEnv(int index) List of environment variables to set in the container.intList of environment variables to set in the container.List of environment variables to set in the container.getEnvOrBuilder(int index) List of environment variables to set in the container.List<? extends PodStatusPubSub.EnvVarOrBuilder>List of environment variables to set in the container.getImage()Container image name.com.google.protobuf.ByteStringContainer image name.Image pull policy.com.google.protobuf.ByteStringImage pull policy.getName()Name of the container specified as a DNS_LABEL.com.google.protobuf.ByteStringName of the container specified as a DNS_LABEL.com.google.protobuf.Parser<PodStatusPubSub.Container>Compute Resources required by this container.Compute Resources required by this container.RestartPolicy defines the restart behavior of individual containers in a pod.com.google.protobuf.ByteStringRestartPolicy defines the restart behavior of individual containers in a pod.intbooleangetStdin()Whether this container should allocate a buffer for stdin in the container runtime.booleanWhether the container runtime should close the stdin channel after it has been opened by a single attach.Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem.com.google.protobuf.ByteStringOptional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem.Indicate how the termination message should be populated.com.google.protobuf.ByteStringIndicate how the termination message should be populated.booleangetTty()Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.Container's working directory.com.google.protobuf.ByteStringContainer's working directory.inthashCode()booleanhasImage()Container image name.booleanImage pull policy.booleanCompute Resources required by this container.booleanRestartPolicy defines the restart behavior of individual containers in a pod.booleanOptional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem.booleanIndicate how the termination message should be populated.booleanContainer's working directory.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(PodStatusPubSub.Container prototype) protected PodStatusPubSub.Container.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static PodStatusPubSub.ContainerparseDelimitedFrom(InputStream input) static PodStatusPubSub.ContainerparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PodStatusPubSub.ContainerparseFrom(byte[] data) static PodStatusPubSub.ContainerparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PodStatusPubSub.ContainerparseFrom(com.google.protobuf.ByteString data) static PodStatusPubSub.ContainerparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PodStatusPubSub.ContainerparseFrom(com.google.protobuf.CodedInputStream input) static PodStatusPubSub.ContainerparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PodStatusPubSub.ContainerparseFrom(InputStream input) static PodStatusPubSub.ContainerparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PodStatusPubSub.ContainerparseFrom(ByteBuffer data) static PodStatusPubSub.ContainerparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PodStatusPubSub.Container>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
IMAGE_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER- See Also:
-
COMMAND_FIELD_NUMBER
public static final int COMMAND_FIELD_NUMBER- See Also:
-
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER- See Also:
-
WORKING_DIR_FIELD_NUMBER
public static final int WORKING_DIR_FIELD_NUMBER- See Also:
-
ENV_FIELD_NUMBER
public static final int ENV_FIELD_NUMBER- See Also:
-
RESOURCES_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER- See Also:
-
RESTART_POLICY_FIELD_NUMBER
public static final int RESTART_POLICY_FIELD_NUMBER- See Also:
-
TERMINATION_MESSAGE_PATH_FIELD_NUMBER
public static final int TERMINATION_MESSAGE_PATH_FIELD_NUMBER- See Also:
-
TERMINATION_MESSAGE_POLICY_FIELD_NUMBER
public static final int TERMINATION_MESSAGE_POLICY_FIELD_NUMBER- See Also:
-
IMAGE_PULL_POLICY_FIELD_NUMBER
public static final int IMAGE_PULL_POLICY_FIELD_NUMBER- See Also:
-
STDIN_FIELD_NUMBER
public static final int STDIN_FIELD_NUMBER- See Also:
-
STDIN_ONCE_FIELD_NUMBER
public static final int STDIN_ONCE_FIELD_NUMBER- See Also:
-
TTY_FIELD_NUMBER
public static final int TTY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.
string name = 1 [json_name = "name"];- Specified by:
getNamein interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The bytes for name.
-
hasImage
public boolean hasImage()Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. +optional
optional string image = 2 [json_name = "image"];- Specified by:
hasImagein interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- Whether the image field is set.
-
getImage
Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. +optional
optional string image = 2 [json_name = "image"];- Specified by:
getImagein interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The image.
-
getImageBytes
public com.google.protobuf.ByteString getImageBytes()Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. +optional
optional string image = 2 [json_name = "image"];- Specified by:
getImageBytesin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The bytes for image.
-
getCommandList
public com.google.protobuf.ProtocolStringList getCommandList()Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional +listType=atomic
repeated string command = 3 [json_name = "command"];- Specified by:
getCommandListin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- A list containing the command.
-
getCommandCount
public int getCommandCount()Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional +listType=atomic
repeated string command = 3 [json_name = "command"];- Specified by:
getCommandCountin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The count of command.
-
getCommand
Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional +listType=atomic
repeated string command = 3 [json_name = "command"];- Specified by:
getCommandin interfacePodStatusPubSub.ContainerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The command at the given index.
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes(int index) Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional +listType=atomic
repeated string command = 3 [json_name = "command"];- Specified by:
getCommandBytesin interfacePodStatusPubSub.ContainerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the command at the given index.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional +listType=atomic
repeated string args = 4 [json_name = "args"];- Specified by:
getArgsListin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional +listType=atomic
repeated string args = 4 [json_name = "args"];- Specified by:
getArgsCountin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The count of args.
-
getArgs
Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional +listType=atomic
repeated string args = 4 [json_name = "args"];- Specified by:
getArgsin interfacePodStatusPubSub.ContainerOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional +listType=atomic
repeated string args = 4 [json_name = "args"];- Specified by:
getArgsBytesin interfacePodStatusPubSub.ContainerOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
hasWorkingDir
public boolean hasWorkingDir()Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. +optional
optional string working_dir = 5 [json_name = "workingDir"];- Specified by:
hasWorkingDirin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- Whether the workingDir field is set.
-
getWorkingDir
Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. +optional
optional string working_dir = 5 [json_name = "workingDir"];- Specified by:
getWorkingDirin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The workingDir.
-
getWorkingDirBytes
public com.google.protobuf.ByteString getWorkingDirBytes()Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. +optional
optional string working_dir = 5 [json_name = "workingDir"];- Specified by:
getWorkingDirBytesin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The bytes for workingDir.
-
getEnvList
List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];- Specified by:
getEnvListin interfacePodStatusPubSub.ContainerOrBuilder
-
getEnvOrBuilderList
List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];- Specified by:
getEnvOrBuilderListin interfacePodStatusPubSub.ContainerOrBuilder
-
getEnvCount
public int getEnvCount()List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];- Specified by:
getEnvCountin interfacePodStatusPubSub.ContainerOrBuilder
-
getEnv
List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];- Specified by:
getEnvin interfacePodStatusPubSub.ContainerOrBuilder
-
getEnvOrBuilder
List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name
repeated .chalk.pubsub.v1.PodStatusPubSub.EnvVar env = 7 [json_name = "env"];- Specified by:
getEnvOrBuilderin interfacePodStatusPubSub.ContainerOrBuilder
-
hasResources
public boolean hasResources()Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];- Specified by:
hasResourcesin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- Whether the resources field is set.
-
getResources
Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];- Specified by:
getResourcesin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The resources.
-
getResourcesOrBuilder
Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ +optional
optional .chalk.pubsub.v1.PodStatusPubSub.ResourceRequirements resources = 8 [json_name = "resources"];- Specified by:
getResourcesOrBuilderin interfacePodStatusPubSub.ContainerOrBuilder
-
hasRestartPolicy
public boolean hasRestartPolicy()RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. +featureGate=SidecarContainers +optional
optional string restart_policy = 24 [json_name = "restartPolicy"];- Specified by:
hasRestartPolicyin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- Whether the restartPolicy field is set.
-
getRestartPolicy
RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. +featureGate=SidecarContainers +optional
optional string restart_policy = 24 [json_name = "restartPolicy"];- Specified by:
getRestartPolicyin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The restartPolicy.
-
getRestartPolicyBytes
public com.google.protobuf.ByteString getRestartPolicyBytes()RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is "Always". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as "Always" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy "Always" will be shut down. This lifecycle differs from normal init containers and is often referred to as a "sidecar" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. +featureGate=SidecarContainers +optional
optional string restart_policy = 24 [json_name = "restartPolicy"];- Specified by:
getRestartPolicyBytesin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The bytes for restartPolicy.
-
hasTerminationMessagePath
public boolean hasTerminationMessagePath()Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. +optional
optional string termination_message_path = 13 [json_name = "terminationMessagePath"];- Specified by:
hasTerminationMessagePathin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- Whether the terminationMessagePath field is set.
-
getTerminationMessagePath
Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. +optional
optional string termination_message_path = 13 [json_name = "terminationMessagePath"];- Specified by:
getTerminationMessagePathin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The terminationMessagePath.
-
getTerminationMessagePathBytes
public com.google.protobuf.ByteString getTerminationMessagePathBytes()Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. +optional
optional string termination_message_path = 13 [json_name = "terminationMessagePath"];- Specified by:
getTerminationMessagePathBytesin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The bytes for terminationMessagePath.
-
hasTerminationMessagePolicy
public boolean hasTerminationMessagePolicy()Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. +optional
optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];- Specified by:
hasTerminationMessagePolicyin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- Whether the terminationMessagePolicy field is set.
-
getTerminationMessagePolicy
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. +optional
optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];- Specified by:
getTerminationMessagePolicyin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The terminationMessagePolicy.
-
getTerminationMessagePolicyBytes
public com.google.protobuf.ByteString getTerminationMessagePolicyBytes()Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. +optional
optional string termination_message_policy = 20 [json_name = "terminationMessagePolicy"];- Specified by:
getTerminationMessagePolicyBytesin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The bytes for terminationMessagePolicy.
-
hasImagePullPolicy
public boolean hasImagePullPolicy()Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional
optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];- Specified by:
hasImagePullPolicyin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- Whether the imagePullPolicy field is set.
-
getImagePullPolicy
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional
optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];- Specified by:
getImagePullPolicyin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The imagePullPolicy.
-
getImagePullPolicyBytes
public com.google.protobuf.ByteString getImagePullPolicyBytes()Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images +optional
optional string image_pull_policy = 14 [json_name = "imagePullPolicy"];- Specified by:
getImagePullPolicyBytesin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The bytes for imagePullPolicy.
-
getStdin
public boolean getStdin()Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF.
bool stdin = 16 [json_name = "stdin"];- Specified by:
getStdinin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The stdin.
-
getStdinOnce
public boolean getStdinOnce()Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF.
bool stdin_once = 17 [json_name = "stdinOnce"];- Specified by:
getStdinOncein interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The stdinOnce.
-
getTty
public boolean getTty()Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
bool tty = 18 [json_name = "tty"];- Specified by:
getTtyin interfacePodStatusPubSub.ContainerOrBuilder- Returns:
- The tty.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PodStatusPubSub.Container parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PodStatusPubSub.Container parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PodStatusPubSub.Container parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PodStatusPubSub.Container parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PodStatusPubSub.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PodStatusPubSub.Container parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PodStatusPubSub.Container parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PodStatusPubSub.Container parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PodStatusPubSub.Container parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PodStatusPubSub.Container parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PodStatusPubSub.Container.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-