Class V1.EmptyDirVolumeSource.Builder

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

public static final class V1.EmptyDirVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.EmptyDirVolumeSource.Builder> implements V1.EmptyDirVolumeSourceOrBuilder
 Represents an empty directory for a pod.
 Empty directory volumes support ownership management and SELinux relabeling.
 
Protobuf type k8s.io.api.core.v1.EmptyDirVolumeSource
  • 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.EmptyDirVolumeSource.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.EmptyDirVolumeSource.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.EmptyDirVolumeSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public boolean hasMedium()
       What type of storage medium should back this directory.
       The default is "" which means to use the node's default medium.
       Must be an empty string (default) or Memory.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       +optional
       
      optional string medium = 1;
      Specified by:
      hasMedium in interface V1.EmptyDirVolumeSourceOrBuilder
    • getMedium

      public String getMedium()
       What type of storage medium should back this directory.
       The default is "" which means to use the node's default medium.
       Must be an empty string (default) or Memory.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       +optional
       
      optional string medium = 1;
      Specified by:
      getMedium in interface V1.EmptyDirVolumeSourceOrBuilder
    • getMediumBytes

      public com.google.protobuf.ByteString getMediumBytes()
       What type of storage medium should back this directory.
       The default is "" which means to use the node's default medium.
       Must be an empty string (default) or Memory.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       +optional
       
      optional string medium = 1;
      Specified by:
      getMediumBytes in interface V1.EmptyDirVolumeSourceOrBuilder
    • setMedium

      public V1.EmptyDirVolumeSource.Builder setMedium(String value)
       What type of storage medium should back this directory.
       The default is "" which means to use the node's default medium.
       Must be an empty string (default) or Memory.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       +optional
       
      optional string medium = 1;
    • clearMedium

      public V1.EmptyDirVolumeSource.Builder clearMedium()
       What type of storage medium should back this directory.
       The default is "" which means to use the node's default medium.
       Must be an empty string (default) or Memory.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       +optional
       
      optional string medium = 1;
    • setMediumBytes

      public V1.EmptyDirVolumeSource.Builder setMediumBytes(com.google.protobuf.ByteString value)
       What type of storage medium should back this directory.
       The default is "" which means to use the node's default medium.
       Must be an empty string (default) or Memory.
       More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
       +optional
       
      optional string medium = 1;
    • hasSizeLimit

      public boolean hasSizeLimit()
       Total amount of local storage required for this EmptyDir volume.
       The size limit is also applicable for memory medium.
       The maximum usage on memory medium EmptyDir would be the minimum value between
       the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       The default is nil which means that the limit is undefined.
       More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2;
      Specified by:
      hasSizeLimit in interface V1.EmptyDirVolumeSourceOrBuilder
    • getSizeLimit

      public Resource.Quantity getSizeLimit()
       Total amount of local storage required for this EmptyDir volume.
       The size limit is also applicable for memory medium.
       The maximum usage on memory medium EmptyDir would be the minimum value between
       the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       The default is nil which means that the limit is undefined.
       More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2;
      Specified by:
      getSizeLimit in interface V1.EmptyDirVolumeSourceOrBuilder
    • setSizeLimit

       Total amount of local storage required for this EmptyDir volume.
       The size limit is also applicable for memory medium.
       The maximum usage on memory medium EmptyDir would be the minimum value between
       the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       The default is nil which means that the limit is undefined.
       More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2;
    • setSizeLimit

      public V1.EmptyDirVolumeSource.Builder setSizeLimit(Resource.Quantity.Builder builderForValue)
       Total amount of local storage required for this EmptyDir volume.
       The size limit is also applicable for memory medium.
       The maximum usage on memory medium EmptyDir would be the minimum value between
       the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       The default is nil which means that the limit is undefined.
       More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2;
    • mergeSizeLimit

      public V1.EmptyDirVolumeSource.Builder mergeSizeLimit(Resource.Quantity value)
       Total amount of local storage required for this EmptyDir volume.
       The size limit is also applicable for memory medium.
       The maximum usage on memory medium EmptyDir would be the minimum value between
       the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       The default is nil which means that the limit is undefined.
       More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2;
    • clearSizeLimit

      public V1.EmptyDirVolumeSource.Builder clearSizeLimit()
       Total amount of local storage required for this EmptyDir volume.
       The size limit is also applicable for memory medium.
       The maximum usage on memory medium EmptyDir would be the minimum value between
       the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       The default is nil which means that the limit is undefined.
       More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2;
    • getSizeLimitBuilder

      public Resource.Quantity.Builder getSizeLimitBuilder()
       Total amount of local storage required for this EmptyDir volume.
       The size limit is also applicable for memory medium.
       The maximum usage on memory medium EmptyDir would be the minimum value between
       the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       The default is nil which means that the limit is undefined.
       More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2;
    • getSizeLimitOrBuilder

      public Resource.QuantityOrBuilder getSizeLimitOrBuilder()
       Total amount of local storage required for this EmptyDir volume.
       The size limit is also applicable for memory medium.
       The maximum usage on memory medium EmptyDir would be the minimum value between
       the SizeLimit specified here and the sum of memory limits of all containers in a pod.
       The default is nil which means that the limit is undefined.
       More info: http://kubernetes.io/docs/user-guide/volumes#emptydir
       +optional
       
      optional .k8s.io.apimachinery.pkg.api.resource.Quantity sizeLimit = 2;
      Specified by:
      getSizeLimitOrBuilder in interface V1.EmptyDirVolumeSourceOrBuilder
    • setUnknownFields

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

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