Class Generated.LifecycleHandler.Builder

    • 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.LifecycleHandler.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.LifecycleHandler.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.LifecycleHandler buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.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.LifecycleHandler.Builder>
      • mergeFrom

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

        public boolean hasExec()
         Exec specifies a command to execute in the container.
         +optional
         
        optional .k8s.io.api.core.v1.ExecAction exec = 1;
        Specified by:
        hasExec in interface Generated.LifecycleHandlerOrBuilder
        Returns:
        Whether the exec field is set.
      • clearExec

        public Generated.LifecycleHandler.Builder clearExec()
         Exec specifies a command to execute in the container.
         +optional
         
        optional .k8s.io.api.core.v1.ExecAction exec = 1;
      • getExecBuilder

        public Generated.ExecAction.Builder getExecBuilder()
         Exec specifies a command to execute in the container.
         +optional
         
        optional .k8s.io.api.core.v1.ExecAction exec = 1;
      • hasHttpGet

        public boolean hasHttpGet()
         HTTPGet specifies an HTTP GET request to perform.
         +optional
         
        optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2;
        Specified by:
        hasHttpGet in interface Generated.LifecycleHandlerOrBuilder
        Returns:
        Whether the httpGet field is set.
      • clearHttpGet

        public Generated.LifecycleHandler.Builder clearHttpGet()
         HTTPGet specifies an HTTP GET request to perform.
         +optional
         
        optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2;
      • getHttpGetBuilder

        public Generated.HTTPGetAction.Builder getHttpGetBuilder()
         HTTPGet specifies an HTTP GET request to perform.
         +optional
         
        optional .k8s.io.api.core.v1.HTTPGetAction httpGet = 2;
      • hasTcpSocket

        public boolean hasTcpSocket()
         Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
         for backward compatibility. There is no validation of this field and
         lifecycle hooks will fail at runtime when it is specified.
         +optional
         
        optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3;
        Specified by:
        hasTcpSocket in interface Generated.LifecycleHandlerOrBuilder
        Returns:
        Whether the tcpSocket field is set.
      • getTcpSocket

        public Generated.TCPSocketAction getTcpSocket()
         Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
         for backward compatibility. There is no validation of this field and
         lifecycle hooks will fail at runtime when it is specified.
         +optional
         
        optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3;
        Specified by:
        getTcpSocket in interface Generated.LifecycleHandlerOrBuilder
        Returns:
        The tcpSocket.
      • setTcpSocket

        public Generated.LifecycleHandler.Builder setTcpSocket​(Generated.TCPSocketAction value)
         Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
         for backward compatibility. There is no validation of this field and
         lifecycle hooks will fail at runtime when it is specified.
         +optional
         
        optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3;
      • setTcpSocket

        public Generated.LifecycleHandler.Builder setTcpSocket​(Generated.TCPSocketAction.Builder builderForValue)
         Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
         for backward compatibility. There is no validation of this field and
         lifecycle hooks will fail at runtime when it is specified.
         +optional
         
        optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3;
      • mergeTcpSocket

        public Generated.LifecycleHandler.Builder mergeTcpSocket​(Generated.TCPSocketAction value)
         Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
         for backward compatibility. There is no validation of this field and
         lifecycle hooks will fail at runtime when it is specified.
         +optional
         
        optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3;
      • clearTcpSocket

        public Generated.LifecycleHandler.Builder clearTcpSocket()
         Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
         for backward compatibility. There is no validation of this field and
         lifecycle hooks will fail at runtime when it is specified.
         +optional
         
        optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3;
      • getTcpSocketBuilder

        public Generated.TCPSocketAction.Builder getTcpSocketBuilder()
         Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
         for backward compatibility. There is no validation of this field and
         lifecycle hooks will fail at runtime when it is specified.
         +optional
         
        optional .k8s.io.api.core.v1.TCPSocketAction tcpSocket = 3;
      • hasSleep

        public boolean hasSleep()
         Sleep represents a duration that the container should sleep.
         +featureGate=PodLifecycleSleepAction
         +optional
         
        optional .k8s.io.api.core.v1.SleepAction sleep = 4;
        Specified by:
        hasSleep in interface Generated.LifecycleHandlerOrBuilder
        Returns:
        Whether the sleep field is set.
      • clearSleep

        public Generated.LifecycleHandler.Builder clearSleep()
         Sleep represents a duration that the container should sleep.
         +featureGate=PodLifecycleSleepAction
         +optional
         
        optional .k8s.io.api.core.v1.SleepAction sleep = 4;
      • getSleepBuilder

        public Generated.SleepAction.Builder getSleepBuilder()
         Sleep represents a duration that the container should sleep.
         +featureGate=PodLifecycleSleepAction
         +optional
         
        optional .k8s.io.api.core.v1.SleepAction sleep = 4;
      • setUnknownFields

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

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