Class Generated.CSIVolumeSource

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Generated.CSIVolumeSourceOrBuilder
    Enclosing class:
    Generated

    public static final class Generated.CSIVolumeSource
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.CSIVolumeSourceOrBuilder
     Represents a source location of a volume to mount, managed by an external CSI driver
     
    Protobuf type k8s.io.api.core.v1.CSIVolumeSource
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection 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 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 Generated.CSIVolumeSourceOrBuilder
        Returns:
        Whether the driver field is set.
      • 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 Generated.CSIVolumeSourceOrBuilder
        Returns:
        The driver.
      • 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 Generated.CSIVolumeSourceOrBuilder
        Returns:
        The bytes for driver.
      • hasReadOnly

        public boolean hasReadOnly()
         readOnly specifies a read-only configuration for the volume.
         Defaults to false (read/write).
         +optional
         
        optional bool readOnly = 2;
        Specified by:
        hasReadOnly in interface Generated.CSIVolumeSourceOrBuilder
        Returns:
        Whether the readOnly field is set.
      • getReadOnly

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

        public boolean hasFsType()
         fsType 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 Generated.CSIVolumeSourceOrBuilder
        Returns:
        Whether the fsType field is set.
      • getFsType

        public String getFsType()
         fsType 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 Generated.CSIVolumeSourceOrBuilder
        Returns:
        The fsType.
      • getFsTypeBytes

        public com.google.protobuf.ByteString getFsTypeBytes()
         fsType 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 Generated.CSIVolumeSourceOrBuilder
        Returns:
        The bytes for fsType.
      • 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 Generated.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 Generated.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 Generated.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 Generated.CSIVolumeSourceOrBuilder
      • 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 Generated.CSIVolumeSourceOrBuilder
        Returns:
        Whether the nodePublishSecretRef field is set.
      • getNodePublishSecretRef

        public Generated.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 Generated.CSIVolumeSourceOrBuilder
        Returns:
        The nodePublishSecretRef.
      • getNodePublishSecretRefOrBuilder

        public Generated.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 Generated.CSIVolumeSourceOrBuilder
      • 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 Generated.CSIVolumeSource parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.CSIVolumeSource parseFrom​(ByteBuffer data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.CSIVolumeSource parseFrom​(com.google.protobuf.ByteString data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.CSIVolumeSource parseFrom​(com.google.protobuf.ByteString data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.CSIVolumeSource parseFrom​(byte[] data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.CSIVolumeSource parseFrom​(byte[] data,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public Generated.CSIVolumeSource.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Generated.CSIVolumeSource.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Generated.CSIVolumeSource.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Generated.CSIVolumeSource> 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 Generated.CSIVolumeSource getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder