Class Generated.CSIVolumeSource.Builder

    • Method Detail

      • 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.Builder<Generated.CSIVolumeSource.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.CSIVolumeSource.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

        public Generated.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<Generated.CSIVolumeSource.Builder>
      • isInitialized

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

        public Generated.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<Generated.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 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.
      • setDriver

        public Generated.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;
        Parameters:
        value - The driver to set.
        Returns:
        This builder for chaining.
      • clearDriver

        public Generated.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;
        Returns:
        This builder for chaining.
      • setDriverBytes

        public Generated.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;
        Parameters:
        value - The bytes for driver to set.
        Returns:
        This builder for chaining.
      • 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.
      • setReadOnly

        public Generated.CSIVolumeSource.Builder setReadOnly​(boolean value)
         readOnly specifies a read-only configuration for the volume.
         Defaults to false (read/write).
         +optional
         
        optional bool readOnly = 2;
        Parameters:
        value - The readOnly to set.
        Returns:
        This builder for chaining.
      • clearReadOnly

        public Generated.CSIVolumeSource.Builder clearReadOnly()
         readOnly specifies a read-only configuration for the volume.
         Defaults to false (read/write).
         +optional
         
        optional bool readOnly = 2;
        Returns:
        This builder for chaining.
      • 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.
      • setFsType

        public Generated.CSIVolumeSource.Builder setFsType​(String value)
         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;
        Parameters:
        value - The fsType to set.
        Returns:
        This builder for chaining.
      • clearFsType

        public Generated.CSIVolumeSource.Builder clearFsType()
         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;
        Returns:
        This builder for chaining.
      • setFsTypeBytes

        public Generated.CSIVolumeSource.Builder setFsTypeBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for fsType to set.
        Returns:
        This builder for chaining.
      • 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
      • removeVolumeAttributes

        public Generated.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 Generated.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 Generated.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 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.
      • setNodePublishSecretRef

        public Generated.CSIVolumeSource.Builder setNodePublishSecretRef​(Generated.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 Generated.CSIVolumeSource.Builder setNodePublishSecretRef​(Generated.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 Generated.CSIVolumeSource.Builder mergeNodePublishSecretRef​(Generated.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 Generated.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 Generated.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 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
      • setUnknownFields

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

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