Class V1.Volume.Builder

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

public static final class V1.Volume.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.Volume.Builder> implements V1.VolumeOrBuilder
 Volume represents a named volume in a pod that may be accessed by any container in the pod.
 
Protobuf type k8s.io.api.core.v1.Volume
  • 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.Volume.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public V1.Volume.Builder mergeFrom(V1.Volume other)
    • isInitialized

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

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

      public boolean hasName()
       Volume's name.
       Must be a DNS_LABEL and unique within the pod.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       
      optional string name = 1;
      Specified by:
      hasName in interface V1.VolumeOrBuilder
    • getName

      public String getName()
       Volume's name.
       Must be a DNS_LABEL and unique within the pod.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       
      optional string name = 1;
      Specified by:
      getName in interface V1.VolumeOrBuilder
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Volume's name.
       Must be a DNS_LABEL and unique within the pod.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       
      optional string name = 1;
      Specified by:
      getNameBytes in interface V1.VolumeOrBuilder
    • setName

      public V1.Volume.Builder setName(String value)
       Volume's name.
       Must be a DNS_LABEL and unique within the pod.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       
      optional string name = 1;
    • clearName

      public V1.Volume.Builder clearName()
       Volume's name.
       Must be a DNS_LABEL and unique within the pod.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       
      optional string name = 1;
    • setNameBytes

      public V1.Volume.Builder setNameBytes(com.google.protobuf.ByteString value)
       Volume's name.
       Must be a DNS_LABEL and unique within the pod.
       More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
       
      optional string name = 1;
    • hasVolumeSource

      public boolean hasVolumeSource()
       VolumeSource represents the location and type of the mounted volume.
       If not specified, the Volume is implied to be an EmptyDir.
       This implied behavior is deprecated and will be removed in a future version.
       
      optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
      Specified by:
      hasVolumeSource in interface V1.VolumeOrBuilder
    • getVolumeSource

      public V1.VolumeSource getVolumeSource()
       VolumeSource represents the location and type of the mounted volume.
       If not specified, the Volume is implied to be an EmptyDir.
       This implied behavior is deprecated and will be removed in a future version.
       
      optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
      Specified by:
      getVolumeSource in interface V1.VolumeOrBuilder
    • setVolumeSource

      public V1.Volume.Builder setVolumeSource(V1.VolumeSource value)
       VolumeSource represents the location and type of the mounted volume.
       If not specified, the Volume is implied to be an EmptyDir.
       This implied behavior is deprecated and will be removed in a future version.
       
      optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
    • setVolumeSource

      public V1.Volume.Builder setVolumeSource(V1.VolumeSource.Builder builderForValue)
       VolumeSource represents the location and type of the mounted volume.
       If not specified, the Volume is implied to be an EmptyDir.
       This implied behavior is deprecated and will be removed in a future version.
       
      optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
    • mergeVolumeSource

      public V1.Volume.Builder mergeVolumeSource(V1.VolumeSource value)
       VolumeSource represents the location and type of the mounted volume.
       If not specified, the Volume is implied to be an EmptyDir.
       This implied behavior is deprecated and will be removed in a future version.
       
      optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
    • clearVolumeSource

      public V1.Volume.Builder clearVolumeSource()
       VolumeSource represents the location and type of the mounted volume.
       If not specified, the Volume is implied to be an EmptyDir.
       This implied behavior is deprecated and will be removed in a future version.
       
      optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
    • getVolumeSourceBuilder

      public V1.VolumeSource.Builder getVolumeSourceBuilder()
       VolumeSource represents the location and type of the mounted volume.
       If not specified, the Volume is implied to be an EmptyDir.
       This implied behavior is deprecated and will be removed in a future version.
       
      optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
    • getVolumeSourceOrBuilder

      public V1.VolumeSourceOrBuilder getVolumeSourceOrBuilder()
       VolumeSource represents the location and type of the mounted volume.
       If not specified, the Volume is implied to be an EmptyDir.
       This implied behavior is deprecated and will be removed in a future version.
       
      optional .k8s.io.api.core.v1.VolumeSource volumeSource = 2;
      Specified by:
      getVolumeSourceOrBuilder in interface V1.VolumeOrBuilder
    • setUnknownFields

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

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