Class Generated.Probe.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.ProbeOrBuilder
    Enclosing class:
    Generated.Probe

    public static final class Generated.Probe.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.Probe.Builder>
    implements Generated.ProbeOrBuilder
     Probe describes a health check to be performed against a container to determine whether it is
     alive or ready to receive traffic.
     
    Protobuf type k8s.io.api.core.v1.Probe
    • 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.Probe.Builder>
      • clear

        public Generated.Probe.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.Probe.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.Probe.Builder>
      • getDefaultInstanceForType

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

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

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

        public Generated.Probe.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.Probe.Builder>
      • setField

        public Generated.Probe.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.Probe.Builder>
      • clearField

        public Generated.Probe.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.Probe.Builder>
      • clearOneof

        public Generated.Probe.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.Probe.Builder>
      • setRepeatedField

        public Generated.Probe.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.Probe.Builder>
      • addRepeatedField

        public Generated.Probe.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.Probe.Builder>
      • mergeFrom

        public Generated.Probe.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.Probe.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.Probe.Builder>
      • mergeFrom

        public Generated.Probe.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.Probe.Builder>
        Throws:
        IOException
      • hasHandler

        public boolean hasHandler()
         The action taken to determine the health of a container
         
        optional .k8s.io.api.core.v1.ProbeHandler handler = 1;
        Specified by:
        hasHandler in interface Generated.ProbeOrBuilder
        Returns:
        Whether the handler field is set.
      • clearHandler

        public Generated.Probe.Builder clearHandler()
         The action taken to determine the health of a container
         
        optional .k8s.io.api.core.v1.ProbeHandler handler = 1;
      • getHandlerBuilder

        public Generated.ProbeHandler.Builder getHandlerBuilder()
         The action taken to determine the health of a container
         
        optional .k8s.io.api.core.v1.ProbeHandler handler = 1;
      • hasInitialDelaySeconds

        public boolean hasInitialDelaySeconds()
         Number of seconds after the container has started before liveness probes are initiated.
         More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
         +optional
         
        optional int32 initialDelaySeconds = 2;
        Specified by:
        hasInitialDelaySeconds in interface Generated.ProbeOrBuilder
        Returns:
        Whether the initialDelaySeconds field is set.
      • getInitialDelaySeconds

        public int getInitialDelaySeconds()
         Number of seconds after the container has started before liveness probes are initiated.
         More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
         +optional
         
        optional int32 initialDelaySeconds = 2;
        Specified by:
        getInitialDelaySeconds in interface Generated.ProbeOrBuilder
        Returns:
        The initialDelaySeconds.
      • setInitialDelaySeconds

        public Generated.Probe.Builder setInitialDelaySeconds​(int value)
         Number of seconds after the container has started before liveness probes are initiated.
         More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
         +optional
         
        optional int32 initialDelaySeconds = 2;
        Parameters:
        value - The initialDelaySeconds to set.
        Returns:
        This builder for chaining.
      • clearInitialDelaySeconds

        public Generated.Probe.Builder clearInitialDelaySeconds()
         Number of seconds after the container has started before liveness probes are initiated.
         More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
         +optional
         
        optional int32 initialDelaySeconds = 2;
        Returns:
        This builder for chaining.
      • hasTimeoutSeconds

        public boolean hasTimeoutSeconds()
         Number of seconds after which the probe times out.
         Defaults to 1 second. Minimum value is 1.
         More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
         +optional
         
        optional int32 timeoutSeconds = 3;
        Specified by:
        hasTimeoutSeconds in interface Generated.ProbeOrBuilder
        Returns:
        Whether the timeoutSeconds field is set.
      • getTimeoutSeconds

        public int getTimeoutSeconds()
         Number of seconds after which the probe times out.
         Defaults to 1 second. Minimum value is 1.
         More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
         +optional
         
        optional int32 timeoutSeconds = 3;
        Specified by:
        getTimeoutSeconds in interface Generated.ProbeOrBuilder
        Returns:
        The timeoutSeconds.
      • setTimeoutSeconds

        public Generated.Probe.Builder setTimeoutSeconds​(int value)
         Number of seconds after which the probe times out.
         Defaults to 1 second. Minimum value is 1.
         More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
         +optional
         
        optional int32 timeoutSeconds = 3;
        Parameters:
        value - The timeoutSeconds to set.
        Returns:
        This builder for chaining.
      • clearTimeoutSeconds

        public Generated.Probe.Builder clearTimeoutSeconds()
         Number of seconds after which the probe times out.
         Defaults to 1 second. Minimum value is 1.
         More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
         +optional
         
        optional int32 timeoutSeconds = 3;
        Returns:
        This builder for chaining.
      • hasPeriodSeconds

        public boolean hasPeriodSeconds()
         How often (in seconds) to perform the probe.
         Default to 10 seconds. Minimum value is 1.
         +optional
         
        optional int32 periodSeconds = 4;
        Specified by:
        hasPeriodSeconds in interface Generated.ProbeOrBuilder
        Returns:
        Whether the periodSeconds field is set.
      • getPeriodSeconds

        public int getPeriodSeconds()
         How often (in seconds) to perform the probe.
         Default to 10 seconds. Minimum value is 1.
         +optional
         
        optional int32 periodSeconds = 4;
        Specified by:
        getPeriodSeconds in interface Generated.ProbeOrBuilder
        Returns:
        The periodSeconds.
      • setPeriodSeconds

        public Generated.Probe.Builder setPeriodSeconds​(int value)
         How often (in seconds) to perform the probe.
         Default to 10 seconds. Minimum value is 1.
         +optional
         
        optional int32 periodSeconds = 4;
        Parameters:
        value - The periodSeconds to set.
        Returns:
        This builder for chaining.
      • clearPeriodSeconds

        public Generated.Probe.Builder clearPeriodSeconds()
         How often (in seconds) to perform the probe.
         Default to 10 seconds. Minimum value is 1.
         +optional
         
        optional int32 periodSeconds = 4;
        Returns:
        This builder for chaining.
      • hasSuccessThreshold

        public boolean hasSuccessThreshold()
         Minimum consecutive successes for the probe to be considered successful after having failed.
         Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
         +optional
         
        optional int32 successThreshold = 5;
        Specified by:
        hasSuccessThreshold in interface Generated.ProbeOrBuilder
        Returns:
        Whether the successThreshold field is set.
      • getSuccessThreshold

        public int getSuccessThreshold()
         Minimum consecutive successes for the probe to be considered successful after having failed.
         Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
         +optional
         
        optional int32 successThreshold = 5;
        Specified by:
        getSuccessThreshold in interface Generated.ProbeOrBuilder
        Returns:
        The successThreshold.
      • setSuccessThreshold

        public Generated.Probe.Builder setSuccessThreshold​(int value)
         Minimum consecutive successes for the probe to be considered successful after having failed.
         Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
         +optional
         
        optional int32 successThreshold = 5;
        Parameters:
        value - The successThreshold to set.
        Returns:
        This builder for chaining.
      • clearSuccessThreshold

        public Generated.Probe.Builder clearSuccessThreshold()
         Minimum consecutive successes for the probe to be considered successful after having failed.
         Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
         +optional
         
        optional int32 successThreshold = 5;
        Returns:
        This builder for chaining.
      • hasFailureThreshold

        public boolean hasFailureThreshold()
         Minimum consecutive failures for the probe to be considered failed after having succeeded.
         Defaults to 3. Minimum value is 1.
         +optional
         
        optional int32 failureThreshold = 6;
        Specified by:
        hasFailureThreshold in interface Generated.ProbeOrBuilder
        Returns:
        Whether the failureThreshold field is set.
      • getFailureThreshold

        public int getFailureThreshold()
         Minimum consecutive failures for the probe to be considered failed after having succeeded.
         Defaults to 3. Minimum value is 1.
         +optional
         
        optional int32 failureThreshold = 6;
        Specified by:
        getFailureThreshold in interface Generated.ProbeOrBuilder
        Returns:
        The failureThreshold.
      • setFailureThreshold

        public Generated.Probe.Builder setFailureThreshold​(int value)
         Minimum consecutive failures for the probe to be considered failed after having succeeded.
         Defaults to 3. Minimum value is 1.
         +optional
         
        optional int32 failureThreshold = 6;
        Parameters:
        value - The failureThreshold to set.
        Returns:
        This builder for chaining.
      • clearFailureThreshold

        public Generated.Probe.Builder clearFailureThreshold()
         Minimum consecutive failures for the probe to be considered failed after having succeeded.
         Defaults to 3. Minimum value is 1.
         +optional
         
        optional int32 failureThreshold = 6;
        Returns:
        This builder for chaining.
      • hasTerminationGracePeriodSeconds

        public boolean hasTerminationGracePeriodSeconds()
         Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
         The grace period is the duration in seconds after the processes running in the pod are sent
         a termination signal and the time when the processes are forcibly halted with a kill signal.
         Set this value longer than the expected cleanup time for your process.
         If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
         value overrides the value provided by the pod spec.
         Value must be non-negative integer. The value zero indicates stop immediately via
         the kill signal (no opportunity to shut down).
         This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
         Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
         +optional
         
        optional int64 terminationGracePeriodSeconds = 7;
        Specified by:
        hasTerminationGracePeriodSeconds in interface Generated.ProbeOrBuilder
        Returns:
        Whether the terminationGracePeriodSeconds field is set.
      • getTerminationGracePeriodSeconds

        public long getTerminationGracePeriodSeconds()
         Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
         The grace period is the duration in seconds after the processes running in the pod are sent
         a termination signal and the time when the processes are forcibly halted with a kill signal.
         Set this value longer than the expected cleanup time for your process.
         If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
         value overrides the value provided by the pod spec.
         Value must be non-negative integer. The value zero indicates stop immediately via
         the kill signal (no opportunity to shut down).
         This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
         Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
         +optional
         
        optional int64 terminationGracePeriodSeconds = 7;
        Specified by:
        getTerminationGracePeriodSeconds in interface Generated.ProbeOrBuilder
        Returns:
        The terminationGracePeriodSeconds.
      • setTerminationGracePeriodSeconds

        public Generated.Probe.Builder setTerminationGracePeriodSeconds​(long value)
         Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
         The grace period is the duration in seconds after the processes running in the pod are sent
         a termination signal and the time when the processes are forcibly halted with a kill signal.
         Set this value longer than the expected cleanup time for your process.
         If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
         value overrides the value provided by the pod spec.
         Value must be non-negative integer. The value zero indicates stop immediately via
         the kill signal (no opportunity to shut down).
         This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
         Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
         +optional
         
        optional int64 terminationGracePeriodSeconds = 7;
        Parameters:
        value - The terminationGracePeriodSeconds to set.
        Returns:
        This builder for chaining.
      • clearTerminationGracePeriodSeconds

        public Generated.Probe.Builder clearTerminationGracePeriodSeconds()
         Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
         The grace period is the duration in seconds after the processes running in the pod are sent
         a termination signal and the time when the processes are forcibly halted with a kill signal.
         Set this value longer than the expected cleanup time for your process.
         If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
         value overrides the value provided by the pod spec.
         Value must be non-negative integer. The value zero indicates stop immediately via
         the kill signal (no opportunity to shut down).
         This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
         Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
         +optional
         
        optional int64 terminationGracePeriodSeconds = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.Probe.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.Probe.Builder>
      • mergeUnknownFields

        public final Generated.Probe.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.Probe.Builder>