Class V1Storage.VolumeAttachmentSource.Builder

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

public static final class V1Storage.VolumeAttachmentSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Storage.VolumeAttachmentSource.Builder> implements V1Storage.VolumeAttachmentSourceOrBuilder
 VolumeAttachmentSource represents a volume that should be attached.
 Right now only PersistenVolumes can be attached via external attacher,
 in future we may allow also inline volumes in pods.
 Exactly one member can be set.
 
Protobuf type k8s.io.api.storage.v1.VolumeAttachmentSource
  • 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<V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1Storage.VolumeAttachmentSource 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<V1Storage.VolumeAttachmentSource.Builder>
    • setField

      public V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>
    • clearField

      public V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>
    • clearOneof

      public V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>
    • setRepeatedField

      public V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>
    • addRepeatedField

      public V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>
    • mergeFrom

      public V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>
    • mergeFrom

      public V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>
      Throws:
      IOException
    • hasPersistentVolumeName

      public boolean hasPersistentVolumeName()
       Name of the persistent volume to attach.
       +optional
       
      optional string persistentVolumeName = 1;
      Specified by:
      hasPersistentVolumeName in interface V1Storage.VolumeAttachmentSourceOrBuilder
    • getPersistentVolumeName

      public String getPersistentVolumeName()
       Name of the persistent volume to attach.
       +optional
       
      optional string persistentVolumeName = 1;
      Specified by:
      getPersistentVolumeName in interface V1Storage.VolumeAttachmentSourceOrBuilder
    • getPersistentVolumeNameBytes

      public com.google.protobuf.ByteString getPersistentVolumeNameBytes()
       Name of the persistent volume to attach.
       +optional
       
      optional string persistentVolumeName = 1;
      Specified by:
      getPersistentVolumeNameBytes in interface V1Storage.VolumeAttachmentSourceOrBuilder
    • setPersistentVolumeName

      public V1Storage.VolumeAttachmentSource.Builder setPersistentVolumeName(String value)
       Name of the persistent volume to attach.
       +optional
       
      optional string persistentVolumeName = 1;
    • clearPersistentVolumeName

      public V1Storage.VolumeAttachmentSource.Builder clearPersistentVolumeName()
       Name of the persistent volume to attach.
       +optional
       
      optional string persistentVolumeName = 1;
    • setPersistentVolumeNameBytes

      public V1Storage.VolumeAttachmentSource.Builder setPersistentVolumeNameBytes(com.google.protobuf.ByteString value)
       Name of the persistent volume to attach.
       +optional
       
      optional string persistentVolumeName = 1;
    • hasInlineVolumeSpec

      public boolean hasInlineVolumeSpec()
       inlineVolumeSpec contains all the information necessary to attach
       a persistent volume defined by a pod's inline VolumeSource. This field
       is populated only for the CSIMigration feature. It contains
       translated fields from a pod's inline VolumeSource to a
       PersistentVolumeSpec. This field is beta-level and is only
       honored by servers that enabled the CSIMigration feature.
       +optional
       
      optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2;
      Specified by:
      hasInlineVolumeSpec in interface V1Storage.VolumeAttachmentSourceOrBuilder
    • getInlineVolumeSpec

      public V1.PersistentVolumeSpec getInlineVolumeSpec()
       inlineVolumeSpec contains all the information necessary to attach
       a persistent volume defined by a pod's inline VolumeSource. This field
       is populated only for the CSIMigration feature. It contains
       translated fields from a pod's inline VolumeSource to a
       PersistentVolumeSpec. This field is beta-level and is only
       honored by servers that enabled the CSIMigration feature.
       +optional
       
      optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2;
      Specified by:
      getInlineVolumeSpec in interface V1Storage.VolumeAttachmentSourceOrBuilder
    • setInlineVolumeSpec

       inlineVolumeSpec contains all the information necessary to attach
       a persistent volume defined by a pod's inline VolumeSource. This field
       is populated only for the CSIMigration feature. It contains
       translated fields from a pod's inline VolumeSource to a
       PersistentVolumeSpec. This field is beta-level and is only
       honored by servers that enabled the CSIMigration feature.
       +optional
       
      optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2;
    • setInlineVolumeSpec

      public V1Storage.VolumeAttachmentSource.Builder setInlineVolumeSpec(V1.PersistentVolumeSpec.Builder builderForValue)
       inlineVolumeSpec contains all the information necessary to attach
       a persistent volume defined by a pod's inline VolumeSource. This field
       is populated only for the CSIMigration feature. It contains
       translated fields from a pod's inline VolumeSource to a
       PersistentVolumeSpec. This field is beta-level and is only
       honored by servers that enabled the CSIMigration feature.
       +optional
       
      optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2;
    • mergeInlineVolumeSpec

       inlineVolumeSpec contains all the information necessary to attach
       a persistent volume defined by a pod's inline VolumeSource. This field
       is populated only for the CSIMigration feature. It contains
       translated fields from a pod's inline VolumeSource to a
       PersistentVolumeSpec. This field is beta-level and is only
       honored by servers that enabled the CSIMigration feature.
       +optional
       
      optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2;
    • clearInlineVolumeSpec

      public V1Storage.VolumeAttachmentSource.Builder clearInlineVolumeSpec()
       inlineVolumeSpec contains all the information necessary to attach
       a persistent volume defined by a pod's inline VolumeSource. This field
       is populated only for the CSIMigration feature. It contains
       translated fields from a pod's inline VolumeSource to a
       PersistentVolumeSpec. This field is beta-level and is only
       honored by servers that enabled the CSIMigration feature.
       +optional
       
      optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2;
    • getInlineVolumeSpecBuilder

      public V1.PersistentVolumeSpec.Builder getInlineVolumeSpecBuilder()
       inlineVolumeSpec contains all the information necessary to attach
       a persistent volume defined by a pod's inline VolumeSource. This field
       is populated only for the CSIMigration feature. It contains
       translated fields from a pod's inline VolumeSource to a
       PersistentVolumeSpec. This field is beta-level and is only
       honored by servers that enabled the CSIMigration feature.
       +optional
       
      optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2;
    • getInlineVolumeSpecOrBuilder

      public V1.PersistentVolumeSpecOrBuilder getInlineVolumeSpecOrBuilder()
       inlineVolumeSpec contains all the information necessary to attach
       a persistent volume defined by a pod's inline VolumeSource. This field
       is populated only for the CSIMigration feature. It contains
       translated fields from a pod's inline VolumeSource to a
       PersistentVolumeSpec. This field is beta-level and is only
       honored by servers that enabled the CSIMigration feature.
       +optional
       
      optional .k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2;
      Specified by:
      getInlineVolumeSpecOrBuilder in interface V1Storage.VolumeAttachmentSourceOrBuilder
    • setUnknownFields

      public final V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>
    • mergeUnknownFields

      public final V1Storage.VolumeAttachmentSource.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<V1Storage.VolumeAttachmentSource.Builder>