public static final class V1.Lifecycle.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder> implements V1.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 type
k8s.io.api.core.v1.Lifecycle| Modifier and Type | Method and Description |
|---|---|
V1.Lifecycle.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.Lifecycle |
build() |
V1.Lifecycle |
buildPartial() |
V1.Lifecycle.Builder |
clear() |
V1.Lifecycle.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.Lifecycle.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.Lifecycle.Builder |
clearPostStart()
PostStart is called immediately after a container is created.
|
V1.Lifecycle.Builder |
clearPreStop()
PreStop is called immediately before a container is terminated.
|
V1.Lifecycle.Builder |
clone() |
V1.Lifecycle |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V1.Handler |
getPostStart()
PostStart is called immediately after a container is created.
|
V1.Handler.Builder |
getPostStartBuilder()
PostStart is called immediately after a container is created.
|
V1.HandlerOrBuilder |
getPostStartOrBuilder()
PostStart is called immediately after a container is created.
|
V1.Handler |
getPreStop()
PreStop is called immediately before a container is terminated.
|
V1.Handler.Builder |
getPreStopBuilder()
PreStop is called immediately before a container is terminated.
|
V1.HandlerOrBuilder |
getPreStopOrBuilder()
PreStop is called immediately before a container is terminated.
|
boolean |
hasPostStart()
PostStart is called immediately after a container is created.
|
boolean |
hasPreStop()
PreStop is called immediately before a container is terminated.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.Lifecycle.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.Lifecycle.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.Lifecycle.Builder |
mergeFrom(V1.Lifecycle other) |
V1.Lifecycle.Builder |
mergePostStart(V1.Handler value)
PostStart is called immediately after a container is created.
|
V1.Lifecycle.Builder |
mergePreStop(V1.Handler value)
PreStop is called immediately before a container is terminated.
|
V1.Lifecycle.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.Lifecycle.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.Lifecycle.Builder |
setPostStart(V1.Handler.Builder builderForValue)
PostStart is called immediately after a container is created.
|
V1.Lifecycle.Builder |
setPostStart(V1.Handler value)
PostStart is called immediately after a container is created.
|
V1.Lifecycle.Builder |
setPreStop(V1.Handler.Builder builderForValue)
PreStop is called immediately before a container is terminated.
|
V1.Lifecycle.Builder |
setPreStop(V1.Handler value)
PreStop is called immediately before a container is terminated.
|
V1.Lifecycle.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.Lifecycle.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public V1.Lifecycle.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public V1.Lifecycle getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.Lifecycle build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.Lifecycle buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.Lifecycle.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public V1.Lifecycle.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public V1.Lifecycle.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public V1.Lifecycle.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public V1.Lifecycle.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public V1.Lifecycle.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public V1.Lifecycle.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.Lifecycle.Builder>public V1.Lifecycle.Builder mergeFrom(V1.Lifecycle other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public V1.Lifecycle.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.Lifecycle.Builder>IOExceptionpublic 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.Handler postStart = 1;hasPostStart in interface V1.LifecycleOrBuilderpublic V1.Handler 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.Handler postStart = 1;getPostStart in interface V1.LifecycleOrBuilderpublic V1.Lifecycle.Builder setPostStart(V1.Handler 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.Handler postStart = 1;public V1.Lifecycle.Builder setPostStart(V1.Handler.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.Handler postStart = 1;public V1.Lifecycle.Builder mergePostStart(V1.Handler 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.Handler postStart = 1;public V1.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.Handler postStart = 1;public V1.Handler.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.Handler postStart = 1;public V1.HandlerOrBuilder 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.Handler postStart = 1;getPostStartOrBuilder in interface V1.LifecycleOrBuilderpublic boolean hasPreStop()
PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. 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.Handler preStop = 2;hasPreStop in interface V1.LifecycleOrBuilderpublic V1.Handler getPreStop()
PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. 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.Handler preStop = 2;getPreStop in interface V1.LifecycleOrBuilderpublic V1.Lifecycle.Builder setPreStop(V1.Handler value)
PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. 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.Handler preStop = 2;public V1.Lifecycle.Builder setPreStop(V1.Handler.Builder builderForValue)
PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. 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.Handler preStop = 2;public V1.Lifecycle.Builder mergePreStop(V1.Handler value)
PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. 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.Handler preStop = 2;public V1.Lifecycle.Builder clearPreStop()
PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. 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.Handler preStop = 2;public V1.Handler.Builder getPreStopBuilder()
PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. 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.Handler preStop = 2;public V1.HandlerOrBuilder getPreStopOrBuilder()
PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. 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.Handler preStop = 2;getPreStopOrBuilder in interface V1.LifecycleOrBuilderpublic final V1.Lifecycle.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>public final V1.Lifecycle.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Lifecycle.Builder>Copyright © 2018. All rights reserved.