Class V1.CSIVolumeSource.Builder

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

public static final class V1.CSIVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder> implements V1.CSIVolumeSourceOrBuilder
 Represents a source location of a volume to mount, managed by an external CSI driver
 
Protobuf type k8s.io.api.core.v1.CSIVolumeSource
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.CSIVolumeSource.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.CSIVolumeSource.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.CSIVolumeSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public boolean hasDriver()
       Driver is the name of the CSI driver that handles this volume.
       Consult with your admin for the correct name as registered in the cluster.
       
      optional string driver = 1;
      Specified by:
      hasDriver in interface V1.CSIVolumeSourceOrBuilder
    • getDriver

      public String getDriver()
       Driver is the name of the CSI driver that handles this volume.
       Consult with your admin for the correct name as registered in the cluster.
       
      optional string driver = 1;
      Specified by:
      getDriver in interface V1.CSIVolumeSourceOrBuilder
    • getDriverBytes

      public com.google.protobuf.ByteString getDriverBytes()
       Driver is the name of the CSI driver that handles this volume.
       Consult with your admin for the correct name as registered in the cluster.
       
      optional string driver = 1;
      Specified by:
      getDriverBytes in interface V1.CSIVolumeSourceOrBuilder
    • setDriver

      public V1.CSIVolumeSource.Builder setDriver(String value)
       Driver is the name of the CSI driver that handles this volume.
       Consult with your admin for the correct name as registered in the cluster.
       
      optional string driver = 1;
    • clearDriver

      public V1.CSIVolumeSource.Builder clearDriver()
       Driver is the name of the CSI driver that handles this volume.
       Consult with your admin for the correct name as registered in the cluster.
       
      optional string driver = 1;
    • setDriverBytes

      public V1.CSIVolumeSource.Builder setDriverBytes(com.google.protobuf.ByteString value)
       Driver is the name of the CSI driver that handles this volume.
       Consult with your admin for the correct name as registered in the cluster.
       
      optional string driver = 1;
    • hasReadOnly

      public boolean hasReadOnly()
       Specifies a read-only configuration for the volume.
       Defaults to false (read/write).
       +optional
       
      optional bool readOnly = 2;
      Specified by:
      hasReadOnly in interface V1.CSIVolumeSourceOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       Specifies a read-only configuration for the volume.
       Defaults to false (read/write).
       +optional
       
      optional bool readOnly = 2;
      Specified by:
      getReadOnly in interface V1.CSIVolumeSourceOrBuilder
    • setReadOnly

      public V1.CSIVolumeSource.Builder setReadOnly(boolean value)
       Specifies a read-only configuration for the volume.
       Defaults to false (read/write).
       +optional
       
      optional bool readOnly = 2;
    • clearReadOnly

      public V1.CSIVolumeSource.Builder clearReadOnly()
       Specifies a read-only configuration for the volume.
       Defaults to false (read/write).
       +optional
       
      optional bool readOnly = 2;
    • hasFsType

      public boolean hasFsType()
       Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       If not provided, the empty value is passed to the associated CSI driver
       which will determine the default filesystem to apply.
       +optional
       
      optional string fsType = 3;
      Specified by:
      hasFsType in interface V1.CSIVolumeSourceOrBuilder
    • getFsType

      public String getFsType()
       Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       If not provided, the empty value is passed to the associated CSI driver
       which will determine the default filesystem to apply.
       +optional
       
      optional string fsType = 3;
      Specified by:
      getFsType in interface V1.CSIVolumeSourceOrBuilder
    • getFsTypeBytes

      public com.google.protobuf.ByteString getFsTypeBytes()
       Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       If not provided, the empty value is passed to the associated CSI driver
       which will determine the default filesystem to apply.
       +optional
       
      optional string fsType = 3;
      Specified by:
      getFsTypeBytes in interface V1.CSIVolumeSourceOrBuilder
    • setFsType

      public V1.CSIVolumeSource.Builder setFsType(String value)
       Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       If not provided, the empty value is passed to the associated CSI driver
       which will determine the default filesystem to apply.
       +optional
       
      optional string fsType = 3;
    • clearFsType

      public V1.CSIVolumeSource.Builder clearFsType()
       Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       If not provided, the empty value is passed to the associated CSI driver
       which will determine the default filesystem to apply.
       +optional
       
      optional string fsType = 3;
    • setFsTypeBytes

      public V1.CSIVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
       Filesystem type to mount. Ex. "ext4", "xfs", "ntfs".
       If not provided, the empty value is passed to the associated CSI driver
       which will determine the default filesystem to apply.
       +optional
       
      optional string fsType = 3;
    • getVolumeAttributesCount

      public int getVolumeAttributesCount()
      Description copied from interface: V1.CSIVolumeSourceOrBuilder
       VolumeAttributes stores driver-specific properties that are passed to the CSI
       driver. Consult your driver's documentation for supported values.
       +optional
       
      map<string, string> volumeAttributes = 4;
      Specified by:
      getVolumeAttributesCount in interface V1.CSIVolumeSourceOrBuilder
    • containsVolumeAttributes

      public boolean containsVolumeAttributes(String key)
       VolumeAttributes stores driver-specific properties that are passed to the CSI
       driver. Consult your driver's documentation for supported values.
       +optional
       
      map<string, string> volumeAttributes = 4;
      Specified by:
      containsVolumeAttributes in interface V1.CSIVolumeSourceOrBuilder
    • getVolumeAttributes

      @Deprecated public Map<String,String> getVolumeAttributes()
      Deprecated.
      Specified by:
      getVolumeAttributes in interface V1.CSIVolumeSourceOrBuilder
    • getVolumeAttributesMap

      public Map<String,String> getVolumeAttributesMap()
       VolumeAttributes stores driver-specific properties that are passed to the CSI
       driver. Consult your driver's documentation for supported values.
       +optional
       
      map<string, string> volumeAttributes = 4;
      Specified by:
      getVolumeAttributesMap in interface V1.CSIVolumeSourceOrBuilder
    • getVolumeAttributesOrDefault

      public String getVolumeAttributesOrDefault(String key, String defaultValue)
       VolumeAttributes stores driver-specific properties that are passed to the CSI
       driver. Consult your driver's documentation for supported values.
       +optional
       
      map<string, string> volumeAttributes = 4;
      Specified by:
      getVolumeAttributesOrDefault in interface V1.CSIVolumeSourceOrBuilder
    • getVolumeAttributesOrThrow

      public String getVolumeAttributesOrThrow(String key)
       VolumeAttributes stores driver-specific properties that are passed to the CSI
       driver. Consult your driver's documentation for supported values.
       +optional
       
      map<string, string> volumeAttributes = 4;
      Specified by:
      getVolumeAttributesOrThrow in interface V1.CSIVolumeSourceOrBuilder
    • clearVolumeAttributes

      public V1.CSIVolumeSource.Builder clearVolumeAttributes()
    • removeVolumeAttributes

      public V1.CSIVolumeSource.Builder removeVolumeAttributes(String key)
       VolumeAttributes stores driver-specific properties that are passed to the CSI
       driver. Consult your driver's documentation for supported values.
       +optional
       
      map<string, string> volumeAttributes = 4;
    • getMutableVolumeAttributes

      @Deprecated public Map<String,String> getMutableVolumeAttributes()
      Deprecated.
      Use alternate mutation accessors instead.
    • putVolumeAttributes

      public V1.CSIVolumeSource.Builder putVolumeAttributes(String key, String value)
       VolumeAttributes stores driver-specific properties that are passed to the CSI
       driver. Consult your driver's documentation for supported values.
       +optional
       
      map<string, string> volumeAttributes = 4;
    • putAllVolumeAttributes

      public V1.CSIVolumeSource.Builder putAllVolumeAttributes(Map<String,String> values)
       VolumeAttributes stores driver-specific properties that are passed to the CSI
       driver. Consult your driver's documentation for supported values.
       +optional
       
      map<string, string> volumeAttributes = 4;
    • hasNodePublishSecretRef

      public boolean hasNodePublishSecretRef()
       NodePublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       NodePublishVolume and NodeUnpublishVolume calls.
       This field is optional, and  may be empty if no secret is required. If the
       secret object contains more than one secret, all secret references are passed.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;
      Specified by:
      hasNodePublishSecretRef in interface V1.CSIVolumeSourceOrBuilder
    • getNodePublishSecretRef

      public V1.LocalObjectReference getNodePublishSecretRef()
       NodePublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       NodePublishVolume and NodeUnpublishVolume calls.
       This field is optional, and  may be empty if no secret is required. If the
       secret object contains more than one secret, all secret references are passed.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;
      Specified by:
      getNodePublishSecretRef in interface V1.CSIVolumeSourceOrBuilder
    • setNodePublishSecretRef

      public V1.CSIVolumeSource.Builder setNodePublishSecretRef(V1.LocalObjectReference value)
       NodePublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       NodePublishVolume and NodeUnpublishVolume calls.
       This field is optional, and  may be empty if no secret is required. If the
       secret object contains more than one secret, all secret references are passed.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;
    • setNodePublishSecretRef

      public V1.CSIVolumeSource.Builder setNodePublishSecretRef(V1.LocalObjectReference.Builder builderForValue)
       NodePublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       NodePublishVolume and NodeUnpublishVolume calls.
       This field is optional, and  may be empty if no secret is required. If the
       secret object contains more than one secret, all secret references are passed.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;
    • mergeNodePublishSecretRef

      public V1.CSIVolumeSource.Builder mergeNodePublishSecretRef(V1.LocalObjectReference value)
       NodePublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       NodePublishVolume and NodeUnpublishVolume calls.
       This field is optional, and  may be empty if no secret is required. If the
       secret object contains more than one secret, all secret references are passed.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;
    • clearNodePublishSecretRef

      public V1.CSIVolumeSource.Builder clearNodePublishSecretRef()
       NodePublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       NodePublishVolume and NodeUnpublishVolume calls.
       This field is optional, and  may be empty if no secret is required. If the
       secret object contains more than one secret, all secret references are passed.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;
    • getNodePublishSecretRefBuilder

      public V1.LocalObjectReference.Builder getNodePublishSecretRefBuilder()
       NodePublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       NodePublishVolume and NodeUnpublishVolume calls.
       This field is optional, and  may be empty if no secret is required. If the
       secret object contains more than one secret, all secret references are passed.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;
    • getNodePublishSecretRefOrBuilder

      public V1.LocalObjectReferenceOrBuilder getNodePublishSecretRefOrBuilder()
       NodePublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       NodePublishVolume and NodeUnpublishVolume calls.
       This field is optional, and  may be empty if no secret is required. If the
       secret object contains more than one secret, all secret references are passed.
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference nodePublishSecretRef = 5;
      Specified by:
      getNodePublishSecretRefOrBuilder in interface V1.CSIVolumeSourceOrBuilder
    • setUnknownFields

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

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