Class Generated.EphemeralContainer.Builder

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

    public static final class Generated.EphemeralContainer.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.EphemeralContainer.Builder>
    implements Generated.EphemeralContainerOrBuilder
     An EphemeralContainer is a temporary container that you may add to an existing Pod for
     user-initiated activities such as debugging. Ephemeral containers have no resource or
     scheduling guarantees, and they will not be restarted when they exit or when a Pod is
     removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the
     Pod to exceed its resource allocation.
    
     To add an ephemeral container, use the ephemeralcontainers subresource of an existing
     Pod. Ephemeral containers may not be removed or restarted.
     
    Protobuf type k8s.io.api.core.v1.EphemeralContainer
    • 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.EphemeralContainer.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.EphemeralContainer.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public boolean hasEphemeralContainerCommon()
         Ephemeral containers have all of the fields of Container, plus additional fields
         specific to ephemeral containers. Fields in common with Container are in the
         following inlined struct so than an EphemeralContainer may easily be converted
         to a Container.
         
        optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
        Specified by:
        hasEphemeralContainerCommon in interface Generated.EphemeralContainerOrBuilder
        Returns:
        Whether the ephemeralContainerCommon field is set.
      • getEphemeralContainerCommon

        public Generated.EphemeralContainerCommon getEphemeralContainerCommon()
         Ephemeral containers have all of the fields of Container, plus additional fields
         specific to ephemeral containers. Fields in common with Container are in the
         following inlined struct so than an EphemeralContainer may easily be converted
         to a Container.
         
        optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
        Specified by:
        getEphemeralContainerCommon in interface Generated.EphemeralContainerOrBuilder
        Returns:
        The ephemeralContainerCommon.
      • setEphemeralContainerCommon

        public Generated.EphemeralContainer.Builder setEphemeralContainerCommon​(Generated.EphemeralContainerCommon value)
         Ephemeral containers have all of the fields of Container, plus additional fields
         specific to ephemeral containers. Fields in common with Container are in the
         following inlined struct so than an EphemeralContainer may easily be converted
         to a Container.
         
        optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
      • setEphemeralContainerCommon

        public Generated.EphemeralContainer.Builder setEphemeralContainerCommon​(Generated.EphemeralContainerCommon.Builder builderForValue)
         Ephemeral containers have all of the fields of Container, plus additional fields
         specific to ephemeral containers. Fields in common with Container are in the
         following inlined struct so than an EphemeralContainer may easily be converted
         to a Container.
         
        optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
      • mergeEphemeralContainerCommon

        public Generated.EphemeralContainer.Builder mergeEphemeralContainerCommon​(Generated.EphemeralContainerCommon value)
         Ephemeral containers have all of the fields of Container, plus additional fields
         specific to ephemeral containers. Fields in common with Container are in the
         following inlined struct so than an EphemeralContainer may easily be converted
         to a Container.
         
        optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
      • clearEphemeralContainerCommon

        public Generated.EphemeralContainer.Builder clearEphemeralContainerCommon()
         Ephemeral containers have all of the fields of Container, plus additional fields
         specific to ephemeral containers. Fields in common with Container are in the
         following inlined struct so than an EphemeralContainer may easily be converted
         to a Container.
         
        optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
      • getEphemeralContainerCommonBuilder

        public Generated.EphemeralContainerCommon.Builder getEphemeralContainerCommonBuilder()
         Ephemeral containers have all of the fields of Container, plus additional fields
         specific to ephemeral containers. Fields in common with Container are in the
         following inlined struct so than an EphemeralContainer may easily be converted
         to a Container.
         
        optional .k8s.io.api.core.v1.EphemeralContainerCommon ephemeralContainerCommon = 1;
      • hasTargetContainerName

        public boolean hasTargetContainerName()
         If set, the name of the container from PodSpec that this ephemeral container targets.
         The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
         If not set then the ephemeral container uses the namespaces configured in the Pod spec.
        
         The container runtime must implement support for this feature. If the runtime does not
         support namespace targeting then the result of setting this field is undefined.
         +optional
         
        optional string targetContainerName = 2;
        Specified by:
        hasTargetContainerName in interface Generated.EphemeralContainerOrBuilder
        Returns:
        Whether the targetContainerName field is set.
      • getTargetContainerName

        public String getTargetContainerName()
         If set, the name of the container from PodSpec that this ephemeral container targets.
         The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
         If not set then the ephemeral container uses the namespaces configured in the Pod spec.
        
         The container runtime must implement support for this feature. If the runtime does not
         support namespace targeting then the result of setting this field is undefined.
         +optional
         
        optional string targetContainerName = 2;
        Specified by:
        getTargetContainerName in interface Generated.EphemeralContainerOrBuilder
        Returns:
        The targetContainerName.
      • getTargetContainerNameBytes

        public com.google.protobuf.ByteString getTargetContainerNameBytes()
         If set, the name of the container from PodSpec that this ephemeral container targets.
         The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
         If not set then the ephemeral container uses the namespaces configured in the Pod spec.
        
         The container runtime must implement support for this feature. If the runtime does not
         support namespace targeting then the result of setting this field is undefined.
         +optional
         
        optional string targetContainerName = 2;
        Specified by:
        getTargetContainerNameBytes in interface Generated.EphemeralContainerOrBuilder
        Returns:
        The bytes for targetContainerName.
      • setTargetContainerName

        public Generated.EphemeralContainer.Builder setTargetContainerName​(String value)
         If set, the name of the container from PodSpec that this ephemeral container targets.
         The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
         If not set then the ephemeral container uses the namespaces configured in the Pod spec.
        
         The container runtime must implement support for this feature. If the runtime does not
         support namespace targeting then the result of setting this field is undefined.
         +optional
         
        optional string targetContainerName = 2;
        Parameters:
        value - The targetContainerName to set.
        Returns:
        This builder for chaining.
      • clearTargetContainerName

        public Generated.EphemeralContainer.Builder clearTargetContainerName()
         If set, the name of the container from PodSpec that this ephemeral container targets.
         The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
         If not set then the ephemeral container uses the namespaces configured in the Pod spec.
        
         The container runtime must implement support for this feature. If the runtime does not
         support namespace targeting then the result of setting this field is undefined.
         +optional
         
        optional string targetContainerName = 2;
        Returns:
        This builder for chaining.
      • setTargetContainerNameBytes

        public Generated.EphemeralContainer.Builder setTargetContainerNameBytes​(com.google.protobuf.ByteString value)
         If set, the name of the container from PodSpec that this ephemeral container targets.
         The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
         If not set then the ephemeral container uses the namespaces configured in the Pod spec.
        
         The container runtime must implement support for this feature. If the runtime does not
         support namespace targeting then the result of setting this field is undefined.
         +optional
         
        optional string targetContainerName = 2;
        Parameters:
        value - The bytes for targetContainerName to set.
        Returns:
        This builder for chaining.