Class V1.CSIPersistentVolumeSource

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1.CSIPersistentVolumeSource
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.CSIPersistentVolumeSourceOrBuilder, Serializable
Enclosing class:
V1

public static final class V1.CSIPersistentVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements V1.CSIPersistentVolumeSourceOrBuilder
 Represents storage that is managed by an external CSI volume driver (Beta feature)
 
Protobuf type k8s.io.api.core.v1.CSIPersistentVolumeSource
See Also:
  • Field Details

    • DRIVER_FIELD_NUMBER

      public static final int DRIVER_FIELD_NUMBER
      See Also:
    • VOLUMEHANDLE_FIELD_NUMBER

      public static final int VOLUMEHANDLE_FIELD_NUMBER
      See Also:
    • READONLY_FIELD_NUMBER

      public static final int READONLY_FIELD_NUMBER
      See Also:
    • FSTYPE_FIELD_NUMBER

      public static final int FSTYPE_FIELD_NUMBER
      See Also:
    • VOLUMEATTRIBUTES_FIELD_NUMBER

      public static final int VOLUMEATTRIBUTES_FIELD_NUMBER
      See Also:
    • CONTROLLERPUBLISHSECRETREF_FIELD_NUMBER

      public static final int CONTROLLERPUBLISHSECRETREF_FIELD_NUMBER
      See Also:
    • NODESTAGESECRETREF_FIELD_NUMBER

      public static final int NODESTAGESECRETREF_FIELD_NUMBER
      See Also:
    • NODEPUBLISHSECRETREF_FIELD_NUMBER

      public static final int NODEPUBLISHSECRETREF_FIELD_NUMBER
      See Also:
    • CONTROLLEREXPANDSECRETREF_FIELD_NUMBER

      public static final int CONTROLLEREXPANDSECRETREF_FIELD_NUMBER
      See Also:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<V1.CSIPersistentVolumeSource> PARSER
      Deprecated.
  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasDriver

      public boolean hasDriver()
       Driver is the name of the driver to use for this volume.
       Required.
       
      optional string driver = 1;
      Specified by:
      hasDriver in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getDriver

      public String getDriver()
       Driver is the name of the driver to use for this volume.
       Required.
       
      optional string driver = 1;
      Specified by:
      getDriver in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getDriverBytes

      public com.google.protobuf.ByteString getDriverBytes()
       Driver is the name of the driver to use for this volume.
       Required.
       
      optional string driver = 1;
      Specified by:
      getDriverBytes in interface V1.CSIPersistentVolumeSourceOrBuilder
    • hasVolumeHandle

      public boolean hasVolumeHandle()
       VolumeHandle is the unique volume name returned by the CSI volume
       plugin’s CreateVolume to refer to the volume on all subsequent calls.
       Required.
       
      optional string volumeHandle = 2;
      Specified by:
      hasVolumeHandle in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getVolumeHandle

      public String getVolumeHandle()
       VolumeHandle is the unique volume name returned by the CSI volume
       plugin’s CreateVolume to refer to the volume on all subsequent calls.
       Required.
       
      optional string volumeHandle = 2;
      Specified by:
      getVolumeHandle in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getVolumeHandleBytes

      public com.google.protobuf.ByteString getVolumeHandleBytes()
       VolumeHandle is the unique volume name returned by the CSI volume
       plugin’s CreateVolume to refer to the volume on all subsequent calls.
       Required.
       
      optional string volumeHandle = 2;
      Specified by:
      getVolumeHandleBytes in interface V1.CSIPersistentVolumeSourceOrBuilder
    • hasReadOnly

      public boolean hasReadOnly()
       Optional: The value to pass to ControllerPublishVolumeRequest.
       Defaults to false (read/write).
       +optional
       
      optional bool readOnly = 3;
      Specified by:
      hasReadOnly in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       Optional: The value to pass to ControllerPublishVolumeRequest.
       Defaults to false (read/write).
       +optional
       
      optional bool readOnly = 3;
      Specified by:
      getReadOnly in interface V1.CSIPersistentVolumeSourceOrBuilder
    • hasFsType

      public boolean hasFsType()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs".
       +optional
       
      optional string fsType = 4;
      Specified by:
      hasFsType in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getFsType

      public String getFsType()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs".
       +optional
       
      optional string fsType = 4;
      Specified by:
      getFsType in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getFsTypeBytes

      public com.google.protobuf.ByteString getFsTypeBytes()
       Filesystem type to mount.
       Must be a filesystem type supported by the host operating system.
       Ex. "ext4", "xfs", "ntfs".
       +optional
       
      optional string fsType = 4;
      Specified by:
      getFsTypeBytes in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getVolumeAttributesCount

      public int getVolumeAttributesCount()
      Description copied from interface: V1.CSIPersistentVolumeSourceOrBuilder
       Attributes of the volume to publish.
       +optional
       
      map<string, string> volumeAttributes = 5;
      Specified by:
      getVolumeAttributesCount in interface V1.CSIPersistentVolumeSourceOrBuilder
    • containsVolumeAttributes

      public boolean containsVolumeAttributes(String key)
       Attributes of the volume to publish.
       +optional
       
      map<string, string> volumeAttributes = 5;
      Specified by:
      containsVolumeAttributes in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getVolumeAttributes

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

      public Map<String,String> getVolumeAttributesMap()
       Attributes of the volume to publish.
       +optional
       
      map<string, string> volumeAttributes = 5;
      Specified by:
      getVolumeAttributesMap in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getVolumeAttributesOrDefault

      public String getVolumeAttributesOrDefault(String key, String defaultValue)
       Attributes of the volume to publish.
       +optional
       
      map<string, string> volumeAttributes = 5;
      Specified by:
      getVolumeAttributesOrDefault in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getVolumeAttributesOrThrow

      public String getVolumeAttributesOrThrow(String key)
       Attributes of the volume to publish.
       +optional
       
      map<string, string> volumeAttributes = 5;
      Specified by:
      getVolumeAttributesOrThrow in interface V1.CSIPersistentVolumeSourceOrBuilder
    • hasControllerPublishSecretRef

      public boolean hasControllerPublishSecretRef()
       ControllerPublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       ControllerPublishVolume and ControllerUnpublishVolume calls.
       This field is optional, and may be empty if no secret is required. If the
       secret object contains more than one secret, all secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6;
      Specified by:
      hasControllerPublishSecretRef in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getControllerPublishSecretRef

      public V1.SecretReference getControllerPublishSecretRef()
       ControllerPublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       ControllerPublishVolume and ControllerUnpublishVolume calls.
       This field is optional, and may be empty if no secret is required. If the
       secret object contains more than one secret, all secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6;
      Specified by:
      getControllerPublishSecretRef in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getControllerPublishSecretRefOrBuilder

      public V1.SecretReferenceOrBuilder getControllerPublishSecretRefOrBuilder()
       ControllerPublishSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       ControllerPublishVolume and ControllerUnpublishVolume calls.
       This field is optional, and may be empty if no secret is required. If the
       secret object contains more than one secret, all secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference controllerPublishSecretRef = 6;
      Specified by:
      getControllerPublishSecretRefOrBuilder in interface V1.CSIPersistentVolumeSourceOrBuilder
    • hasNodeStageSecretRef

      public boolean hasNodeStageSecretRef()
       NodeStageSecretRef is a reference to the secret object containing sensitive
       information to pass to the CSI driver to complete the CSI NodeStageVolume
       and NodeStageVolume and NodeUnstageVolume calls.
       This field is optional, and may be empty if no secret is required. If the
       secret object contains more than one secret, all secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7;
      Specified by:
      hasNodeStageSecretRef in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getNodeStageSecretRef

      public V1.SecretReference getNodeStageSecretRef()
       NodeStageSecretRef is a reference to the secret object containing sensitive
       information to pass to the CSI driver to complete the CSI NodeStageVolume
       and NodeStageVolume and NodeUnstageVolume calls.
       This field is optional, and may be empty if no secret is required. If the
       secret object contains more than one secret, all secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7;
      Specified by:
      getNodeStageSecretRef in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getNodeStageSecretRefOrBuilder

      public V1.SecretReferenceOrBuilder getNodeStageSecretRefOrBuilder()
       NodeStageSecretRef is a reference to the secret object containing sensitive
       information to pass to the CSI driver to complete the CSI NodeStageVolume
       and NodeStageVolume and NodeUnstageVolume calls.
       This field is optional, and may be empty if no secret is required. If the
       secret object contains more than one secret, all secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference nodeStageSecretRef = 7;
      Specified by:
      getNodeStageSecretRefOrBuilder in interface V1.CSIPersistentVolumeSourceOrBuilder
    • 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 secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8;
      Specified by:
      hasNodePublishSecretRef in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getNodePublishSecretRef

      public V1.SecretReference 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 secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8;
      Specified by:
      getNodePublishSecretRef in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getNodePublishSecretRefOrBuilder

      public V1.SecretReferenceOrBuilder 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 secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference nodePublishSecretRef = 8;
      Specified by:
      getNodePublishSecretRefOrBuilder in interface V1.CSIPersistentVolumeSourceOrBuilder
    • hasControllerExpandSecretRef

      public boolean hasControllerExpandSecretRef()
       ControllerExpandSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       ControllerExpandVolume call.
       This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       This field is optional, and may be empty if no secret is required. If the
       secret object contains more than one secret, all secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9;
      Specified by:
      hasControllerExpandSecretRef in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getControllerExpandSecretRef

      public V1.SecretReference getControllerExpandSecretRef()
       ControllerExpandSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       ControllerExpandVolume call.
       This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       This field is optional, and may be empty if no secret is required. If the
       secret object contains more than one secret, all secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9;
      Specified by:
      getControllerExpandSecretRef in interface V1.CSIPersistentVolumeSourceOrBuilder
    • getControllerExpandSecretRefOrBuilder

      public V1.SecretReferenceOrBuilder getControllerExpandSecretRefOrBuilder()
       ControllerExpandSecretRef is a reference to the secret object containing
       sensitive information to pass to the CSI driver to complete the CSI
       ControllerExpandVolume call.
       This is an alpha field and requires enabling ExpandCSIVolumes feature gate.
       This field is optional, and may be empty if no secret is required. If the
       secret object contains more than one secret, all secrets are passed.
       +optional
       
      optional .k8s.io.api.core.v1.SecretReference controllerExpandSecretRef = 9;
      Specified by:
      getControllerExpandSecretRefOrBuilder in interface V1.CSIPersistentVolumeSourceOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.CSIPersistentVolumeSource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.CSIPersistentVolumeSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.CSIPersistentVolumeSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1.CSIPersistentVolumeSource.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1.CSIPersistentVolumeSource.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1.CSIPersistentVolumeSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1.CSIPersistentVolumeSource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1.CSIPersistentVolumeSource> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1.CSIPersistentVolumeSource> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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