Package k8s.io.api.core.v1
Class Generated.Lifecycle.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
- k8s.io.api.core.v1.Generated.Lifecycle.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.LifecycleOrBuilder
- Enclosing class:
- Generated.Lifecycle
public static final class Generated.Lifecycle.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder> implements Generated.LifecycleOrBuilder
Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.
Protobuf typek8s.io.api.core.v1.Lifecycle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.Lifecycle.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.Lifecyclebuild()Generated.LifecyclebuildPartial()Generated.Lifecycle.Builderclear()Generated.Lifecycle.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.Lifecycle.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.Lifecycle.BuilderclearPostStart()PostStart is called immediately after a container is created.Generated.Lifecycle.BuilderclearPreStop()PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.Generated.Lifecycle.Builderclone()Generated.LifecyclegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Generated.LifecycleHandlergetPostStart()PostStart is called immediately after a container is created.Generated.LifecycleHandler.BuildergetPostStartBuilder()PostStart is called immediately after a container is created.Generated.LifecycleHandlerOrBuildergetPostStartOrBuilder()PostStart is called immediately after a container is created.Generated.LifecycleHandlergetPreStop()PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.Generated.LifecycleHandler.BuildergetPreStopBuilder()PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.Generated.LifecycleHandlerOrBuildergetPreStopOrBuilder()PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.booleanhasPostStart()PostStart is called immediately after a container is created.booleanhasPreStop()PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.Lifecycle.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.Lifecycle.BuildermergeFrom(com.google.protobuf.Message other)Generated.Lifecycle.BuildermergeFrom(Generated.Lifecycle other)Generated.Lifecycle.BuildermergePostStart(Generated.LifecycleHandler value)PostStart is called immediately after a container is created.Generated.Lifecycle.BuildermergePreStop(Generated.LifecycleHandler value)PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.Generated.Lifecycle.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.Lifecycle.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.Lifecycle.BuildersetPostStart(Generated.LifecycleHandler value)PostStart is called immediately after a container is created.Generated.Lifecycle.BuildersetPostStart(Generated.LifecycleHandler.Builder builderForValue)PostStart is called immediately after a container is created.Generated.Lifecycle.BuildersetPreStop(Generated.LifecycleHandler value)PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.Generated.Lifecycle.BuildersetPreStop(Generated.LifecycleHandler.Builder builderForValue)PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc.Generated.Lifecycle.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.Lifecycle.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Generated.Lifecycle.Builder>
-
clear
public Generated.Lifecycle.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
getDefaultInstanceForType
public Generated.Lifecycle getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.Lifecycle build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.Lifecycle buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.Lifecycle.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
setField
public Generated.Lifecycle.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
clearField
public Generated.Lifecycle.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
clearOneof
public Generated.Lifecycle.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
setRepeatedField
public Generated.Lifecycle.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
addRepeatedField
public Generated.Lifecycle.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
mergeFrom
public Generated.Lifecycle.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.Lifecycle.Builder>
-
mergeFrom
public Generated.Lifecycle.Builder mergeFrom(Generated.Lifecycle other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
mergeFrom
public Generated.Lifecycle.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.Lifecycle.Builder>- Throws:
IOException
-
hasPostStart
public boolean hasPostStart()
PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;- Specified by:
hasPostStartin interfaceGenerated.LifecycleOrBuilder- Returns:
- Whether the postStart field is set.
-
getPostStart
public Generated.LifecycleHandler getPostStart()
PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;- Specified by:
getPostStartin interfaceGenerated.LifecycleOrBuilder- Returns:
- The postStart.
-
setPostStart
public Generated.Lifecycle.Builder setPostStart(Generated.LifecycleHandler value)
PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;
-
setPostStart
public Generated.Lifecycle.Builder setPostStart(Generated.LifecycleHandler.Builder builderForValue)
PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;
-
mergePostStart
public Generated.Lifecycle.Builder mergePostStart(Generated.LifecycleHandler value)
PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;
-
clearPostStart
public Generated.Lifecycle.Builder clearPostStart()
PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;
-
getPostStartBuilder
public Generated.LifecycleHandler.Builder getPostStartBuilder()
PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;
-
getPostStartOrBuilder
public Generated.LifecycleHandlerOrBuilder getPostStartOrBuilder()
PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler postStart = 1;- Specified by:
getPostStartOrBuilderin interfaceGenerated.LifecycleOrBuilder
-
hasPreStop
public boolean hasPreStop()
PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;- Specified by:
hasPreStopin interfaceGenerated.LifecycleOrBuilder- Returns:
- Whether the preStop field is set.
-
getPreStop
public Generated.LifecycleHandler getPreStop()
PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;- Specified by:
getPreStopin interfaceGenerated.LifecycleOrBuilder- Returns:
- The preStop.
-
setPreStop
public Generated.Lifecycle.Builder setPreStop(Generated.LifecycleHandler value)
PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;
-
setPreStop
public Generated.Lifecycle.Builder setPreStop(Generated.LifecycleHandler.Builder builderForValue)
PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;
-
mergePreStop
public Generated.Lifecycle.Builder mergePreStop(Generated.LifecycleHandler value)
PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;
-
clearPreStop
public Generated.Lifecycle.Builder clearPreStop()
PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;
-
getPreStopBuilder
public Generated.LifecycleHandler.Builder getPreStopBuilder()
PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;
-
getPreStopOrBuilder
public Generated.LifecycleHandlerOrBuilder getPreStopOrBuilder()
PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks +optional
optional .k8s.io.api.core.v1.LifecycleHandler preStop = 2;- Specified by:
getPreStopOrBuilderin interfaceGenerated.LifecycleOrBuilder
-
setUnknownFields
public final Generated.Lifecycle.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
mergeUnknownFields
public final Generated.Lifecycle.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
-
-