Class V1.EphemeralContainer.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>
io.kubernetes.client.proto.V1.EphemeralContainer.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.EphemeralContainerOrBuilder, Cloneable
Enclosing class:
V1.EphemeralContainer

public static final class V1.EphemeralContainer.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder> implements V1.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.
 This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.
 
Protobuf type k8s.io.api.core.v1.EphemeralContainer
  • Method Details

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

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

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

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

      public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
    • clearField

      public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
    • clearOneof

      public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
    • setRepeatedField

      public V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
    • addRepeatedField

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralContainer.Builder>
    • mergeFrom

      public V1.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<V1.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 V1.EphemeralContainerOrBuilder
    • getEphemeralContainerCommon

      public V1.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 V1.EphemeralContainerOrBuilder
    • setEphemeralContainerCommon

      public V1.EphemeralContainer.Builder setEphemeralContainerCommon(V1.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 V1.EphemeralContainer.Builder setEphemeralContainerCommon(V1.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 V1.EphemeralContainer.Builder mergeEphemeralContainerCommon(V1.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 V1.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 V1.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;
    • getEphemeralContainerCommonOrBuilder

      public V1.EphemeralContainerCommonOrBuilder getEphemeralContainerCommonOrBuilder()
       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:
      getEphemeralContainerCommonOrBuilder in interface V1.EphemeralContainerOrBuilder
    • 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 V1.EphemeralContainerOrBuilder
    • 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 V1.EphemeralContainerOrBuilder
    • 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 V1.EphemeralContainerOrBuilder
    • setTargetContainerName

      public V1.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;
    • clearTargetContainerName

      public V1.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;
    • setTargetContainerNameBytes

      public V1.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;
    • setUnknownFields

      public final V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>
    • mergeUnknownFields

      public final V1.EphemeralContainer.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<V1.EphemeralContainer.Builder>