Class 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 type k8s.io.api.core.v1.Lifecycle
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
      • clear

        public Generated.Lifecycle.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
      • getDescriptorForType

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

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

        public Generated.Lifecycle build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

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

        public Generated.Lifecycle.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.Lifecycle.Builder>
      • setField

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

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

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

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

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

        public Generated.Lifecycle.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Generated.Lifecycle.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<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:
        hasPostStart in interface Generated.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:
        getPostStart in interface Generated.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:
        getPostStartOrBuilder in interface Generated.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:
        hasPreStop in interface Generated.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:
        getPreStop in interface Generated.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:
        getPreStopOrBuilder in interface Generated.LifecycleOrBuilder
      • setUnknownFields

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

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