Class V1.EphemeralVolumeSource.Builder

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

public static final class V1.EphemeralVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.EphemeralVolumeSource.Builder> implements V1.EphemeralVolumeSourceOrBuilder
 Represents an ephemeral volume that is handled by a normal storage driver.
 
Protobuf type k8s.io.api.core.v1.EphemeralVolumeSource
  • 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.EphemeralVolumeSource.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.EphemeralVolumeSource.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.EphemeralVolumeSource.Builder>
    • getDefaultInstanceForType

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

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

      public V1.EphemeralVolumeSource 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.EphemeralVolumeSource.Builder>
    • setField

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

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

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

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

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

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

      public V1.EphemeralVolumeSource.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.EphemeralVolumeSource.Builder>
      Throws:
      IOException
    • hasVolumeClaimTemplate

      public boolean hasVolumeClaimTemplate()
       Will be used to create a stand-alone PVC to provision the volume.
       The pod in which this EphemeralVolumeSource is embedded will be the
       owner of the PVC, i.e. the PVC will be deleted together with the
       pod.  The name of the PVC will be `<pod name>-<volume name>` where
       `<volume name>` is the name from the `PodSpec.Volumes` array
       entry. Pod validation will reject the pod if the concatenated name
       is not valid for a PVC (for example, too long).
       An existing PVC with that name that is not owned by the pod
       will *not* be used for the pod to avoid using an unrelated
       volume by mistake. Starting the pod is then blocked until
       the unrelated PVC is removed. If such a pre-created PVC is
       meant to be used by the pod, the PVC has to updated with an
       owner reference to the pod once the pod exists. Normally
       this should not be necessary, but it may be useful when
       manually reconstructing a broken cluster.
       This field is read-only and no changes will be made by Kubernetes
       to the PVC after it has been created.
       Required, must not be nil.
       
      optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1;
      Specified by:
      hasVolumeClaimTemplate in interface V1.EphemeralVolumeSourceOrBuilder
    • getVolumeClaimTemplate

      public V1.PersistentVolumeClaimTemplate getVolumeClaimTemplate()
       Will be used to create a stand-alone PVC to provision the volume.
       The pod in which this EphemeralVolumeSource is embedded will be the
       owner of the PVC, i.e. the PVC will be deleted together with the
       pod.  The name of the PVC will be `<pod name>-<volume name>` where
       `<volume name>` is the name from the `PodSpec.Volumes` array
       entry. Pod validation will reject the pod if the concatenated name
       is not valid for a PVC (for example, too long).
       An existing PVC with that name that is not owned by the pod
       will *not* be used for the pod to avoid using an unrelated
       volume by mistake. Starting the pod is then blocked until
       the unrelated PVC is removed. If such a pre-created PVC is
       meant to be used by the pod, the PVC has to updated with an
       owner reference to the pod once the pod exists. Normally
       this should not be necessary, but it may be useful when
       manually reconstructing a broken cluster.
       This field is read-only and no changes will be made by Kubernetes
       to the PVC after it has been created.
       Required, must not be nil.
       
      optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1;
      Specified by:
      getVolumeClaimTemplate in interface V1.EphemeralVolumeSourceOrBuilder
    • setVolumeClaimTemplate

       Will be used to create a stand-alone PVC to provision the volume.
       The pod in which this EphemeralVolumeSource is embedded will be the
       owner of the PVC, i.e. the PVC will be deleted together with the
       pod.  The name of the PVC will be `<pod name>-<volume name>` where
       `<volume name>` is the name from the `PodSpec.Volumes` array
       entry. Pod validation will reject the pod if the concatenated name
       is not valid for a PVC (for example, too long).
       An existing PVC with that name that is not owned by the pod
       will *not* be used for the pod to avoid using an unrelated
       volume by mistake. Starting the pod is then blocked until
       the unrelated PVC is removed. If such a pre-created PVC is
       meant to be used by the pod, the PVC has to updated with an
       owner reference to the pod once the pod exists. Normally
       this should not be necessary, but it may be useful when
       manually reconstructing a broken cluster.
       This field is read-only and no changes will be made by Kubernetes
       to the PVC after it has been created.
       Required, must not be nil.
       
      optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1;
    • setVolumeClaimTemplate

      public V1.EphemeralVolumeSource.Builder setVolumeClaimTemplate(V1.PersistentVolumeClaimTemplate.Builder builderForValue)
       Will be used to create a stand-alone PVC to provision the volume.
       The pod in which this EphemeralVolumeSource is embedded will be the
       owner of the PVC, i.e. the PVC will be deleted together with the
       pod.  The name of the PVC will be `<pod name>-<volume name>` where
       `<volume name>` is the name from the `PodSpec.Volumes` array
       entry. Pod validation will reject the pod if the concatenated name
       is not valid for a PVC (for example, too long).
       An existing PVC with that name that is not owned by the pod
       will *not* be used for the pod to avoid using an unrelated
       volume by mistake. Starting the pod is then blocked until
       the unrelated PVC is removed. If such a pre-created PVC is
       meant to be used by the pod, the PVC has to updated with an
       owner reference to the pod once the pod exists. Normally
       this should not be necessary, but it may be useful when
       manually reconstructing a broken cluster.
       This field is read-only and no changes will be made by Kubernetes
       to the PVC after it has been created.
       Required, must not be nil.
       
      optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1;
    • mergeVolumeClaimTemplate

      public V1.EphemeralVolumeSource.Builder mergeVolumeClaimTemplate(V1.PersistentVolumeClaimTemplate value)
       Will be used to create a stand-alone PVC to provision the volume.
       The pod in which this EphemeralVolumeSource is embedded will be the
       owner of the PVC, i.e. the PVC will be deleted together with the
       pod.  The name of the PVC will be `<pod name>-<volume name>` where
       `<volume name>` is the name from the `PodSpec.Volumes` array
       entry. Pod validation will reject the pod if the concatenated name
       is not valid for a PVC (for example, too long).
       An existing PVC with that name that is not owned by the pod
       will *not* be used for the pod to avoid using an unrelated
       volume by mistake. Starting the pod is then blocked until
       the unrelated PVC is removed. If such a pre-created PVC is
       meant to be used by the pod, the PVC has to updated with an
       owner reference to the pod once the pod exists. Normally
       this should not be necessary, but it may be useful when
       manually reconstructing a broken cluster.
       This field is read-only and no changes will be made by Kubernetes
       to the PVC after it has been created.
       Required, must not be nil.
       
      optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1;
    • clearVolumeClaimTemplate

      public V1.EphemeralVolumeSource.Builder clearVolumeClaimTemplate()
       Will be used to create a stand-alone PVC to provision the volume.
       The pod in which this EphemeralVolumeSource is embedded will be the
       owner of the PVC, i.e. the PVC will be deleted together with the
       pod.  The name of the PVC will be `<pod name>-<volume name>` where
       `<volume name>` is the name from the `PodSpec.Volumes` array
       entry. Pod validation will reject the pod if the concatenated name
       is not valid for a PVC (for example, too long).
       An existing PVC with that name that is not owned by the pod
       will *not* be used for the pod to avoid using an unrelated
       volume by mistake. Starting the pod is then blocked until
       the unrelated PVC is removed. If such a pre-created PVC is
       meant to be used by the pod, the PVC has to updated with an
       owner reference to the pod once the pod exists. Normally
       this should not be necessary, but it may be useful when
       manually reconstructing a broken cluster.
       This field is read-only and no changes will be made by Kubernetes
       to the PVC after it has been created.
       Required, must not be nil.
       
      optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1;
    • getVolumeClaimTemplateBuilder

      public V1.PersistentVolumeClaimTemplate.Builder getVolumeClaimTemplateBuilder()
       Will be used to create a stand-alone PVC to provision the volume.
       The pod in which this EphemeralVolumeSource is embedded will be the
       owner of the PVC, i.e. the PVC will be deleted together with the
       pod.  The name of the PVC will be `<pod name>-<volume name>` where
       `<volume name>` is the name from the `PodSpec.Volumes` array
       entry. Pod validation will reject the pod if the concatenated name
       is not valid for a PVC (for example, too long).
       An existing PVC with that name that is not owned by the pod
       will *not* be used for the pod to avoid using an unrelated
       volume by mistake. Starting the pod is then blocked until
       the unrelated PVC is removed. If such a pre-created PVC is
       meant to be used by the pod, the PVC has to updated with an
       owner reference to the pod once the pod exists. Normally
       this should not be necessary, but it may be useful when
       manually reconstructing a broken cluster.
       This field is read-only and no changes will be made by Kubernetes
       to the PVC after it has been created.
       Required, must not be nil.
       
      optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1;
    • getVolumeClaimTemplateOrBuilder

      public V1.PersistentVolumeClaimTemplateOrBuilder getVolumeClaimTemplateOrBuilder()
       Will be used to create a stand-alone PVC to provision the volume.
       The pod in which this EphemeralVolumeSource is embedded will be the
       owner of the PVC, i.e. the PVC will be deleted together with the
       pod.  The name of the PVC will be `<pod name>-<volume name>` where
       `<volume name>` is the name from the `PodSpec.Volumes` array
       entry. Pod validation will reject the pod if the concatenated name
       is not valid for a PVC (for example, too long).
       An existing PVC with that name that is not owned by the pod
       will *not* be used for the pod to avoid using an unrelated
       volume by mistake. Starting the pod is then blocked until
       the unrelated PVC is removed. If such a pre-created PVC is
       meant to be used by the pod, the PVC has to updated with an
       owner reference to the pod once the pod exists. Normally
       this should not be necessary, but it may be useful when
       manually reconstructing a broken cluster.
       This field is read-only and no changes will be made by Kubernetes
       to the PVC after it has been created.
       Required, must not be nil.
       
      optional .k8s.io.api.core.v1.PersistentVolumeClaimTemplate volumeClaimTemplate = 1;
      Specified by:
      getVolumeClaimTemplateOrBuilder in interface V1.EphemeralVolumeSourceOrBuilder
    • setUnknownFields

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

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