Class Generated.StorageOSVolumeSource.Builder

    • Method Detail

      • 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<Generated.StorageOSVolumeSource.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.StorageOSVolumeSource.Builder>
      • getDefaultInstanceForType

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

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

        public Generated.StorageOSVolumeSource buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.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.StorageOSVolumeSource.Builder>
      • hasVolumeName

        public boolean hasVolumeName()
         volumeName is the human-readable name of the StorageOS volume.  Volume
         names are only unique within a namespace.
         
        optional string volumeName = 1;
        Specified by:
        hasVolumeName in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        Whether the volumeName field is set.
      • getVolumeName

        public String getVolumeName()
         volumeName is the human-readable name of the StorageOS volume.  Volume
         names are only unique within a namespace.
         
        optional string volumeName = 1;
        Specified by:
        getVolumeName in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        The volumeName.
      • getVolumeNameBytes

        public com.google.protobuf.ByteString getVolumeNameBytes()
         volumeName is the human-readable name of the StorageOS volume.  Volume
         names are only unique within a namespace.
         
        optional string volumeName = 1;
        Specified by:
        getVolumeNameBytes in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        The bytes for volumeName.
      • setVolumeName

        public Generated.StorageOSVolumeSource.Builder setVolumeName​(String value)
         volumeName is the human-readable name of the StorageOS volume.  Volume
         names are only unique within a namespace.
         
        optional string volumeName = 1;
        Parameters:
        value - The volumeName to set.
        Returns:
        This builder for chaining.
      • clearVolumeName

        public Generated.StorageOSVolumeSource.Builder clearVolumeName()
         volumeName is the human-readable name of the StorageOS volume.  Volume
         names are only unique within a namespace.
         
        optional string volumeName = 1;
        Returns:
        This builder for chaining.
      • setVolumeNameBytes

        public Generated.StorageOSVolumeSource.Builder setVolumeNameBytes​(com.google.protobuf.ByteString value)
         volumeName is the human-readable name of the StorageOS volume.  Volume
         names are only unique within a namespace.
         
        optional string volumeName = 1;
        Parameters:
        value - The bytes for volumeName to set.
        Returns:
        This builder for chaining.
      • hasVolumeNamespace

        public boolean hasVolumeNamespace()
         volumeNamespace specifies the scope of the volume within StorageOS.  If no
         namespace is specified then the Pod's namespace will be used.  This allows the
         Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
         Set VolumeName to any name to override the default behaviour.
         Set to "default" if you are not using namespaces within StorageOS.
         Namespaces that do not pre-exist within StorageOS will be created.
         +optional
         
        optional string volumeNamespace = 2;
        Specified by:
        hasVolumeNamespace in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        Whether the volumeNamespace field is set.
      • getVolumeNamespace

        public String getVolumeNamespace()
         volumeNamespace specifies the scope of the volume within StorageOS.  If no
         namespace is specified then the Pod's namespace will be used.  This allows the
         Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
         Set VolumeName to any name to override the default behaviour.
         Set to "default" if you are not using namespaces within StorageOS.
         Namespaces that do not pre-exist within StorageOS will be created.
         +optional
         
        optional string volumeNamespace = 2;
        Specified by:
        getVolumeNamespace in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        The volumeNamespace.
      • getVolumeNamespaceBytes

        public com.google.protobuf.ByteString getVolumeNamespaceBytes()
         volumeNamespace specifies the scope of the volume within StorageOS.  If no
         namespace is specified then the Pod's namespace will be used.  This allows the
         Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
         Set VolumeName to any name to override the default behaviour.
         Set to "default" if you are not using namespaces within StorageOS.
         Namespaces that do not pre-exist within StorageOS will be created.
         +optional
         
        optional string volumeNamespace = 2;
        Specified by:
        getVolumeNamespaceBytes in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        The bytes for volumeNamespace.
      • setVolumeNamespace

        public Generated.StorageOSVolumeSource.Builder setVolumeNamespace​(String value)
         volumeNamespace specifies the scope of the volume within StorageOS.  If no
         namespace is specified then the Pod's namespace will be used.  This allows the
         Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
         Set VolumeName to any name to override the default behaviour.
         Set to "default" if you are not using namespaces within StorageOS.
         Namespaces that do not pre-exist within StorageOS will be created.
         +optional
         
        optional string volumeNamespace = 2;
        Parameters:
        value - The volumeNamespace to set.
        Returns:
        This builder for chaining.
      • clearVolumeNamespace

        public Generated.StorageOSVolumeSource.Builder clearVolumeNamespace()
         volumeNamespace specifies the scope of the volume within StorageOS.  If no
         namespace is specified then the Pod's namespace will be used.  This allows the
         Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
         Set VolumeName to any name to override the default behaviour.
         Set to "default" if you are not using namespaces within StorageOS.
         Namespaces that do not pre-exist within StorageOS will be created.
         +optional
         
        optional string volumeNamespace = 2;
        Returns:
        This builder for chaining.
      • setVolumeNamespaceBytes

        public Generated.StorageOSVolumeSource.Builder setVolumeNamespaceBytes​(com.google.protobuf.ByteString value)
         volumeNamespace specifies the scope of the volume within StorageOS.  If no
         namespace is specified then the Pod's namespace will be used.  This allows the
         Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
         Set VolumeName to any name to override the default behaviour.
         Set to "default" if you are not using namespaces within StorageOS.
         Namespaces that do not pre-exist within StorageOS will be created.
         +optional
         
        optional string volumeNamespace = 2;
        Parameters:
        value - The bytes for volumeNamespace to set.
        Returns:
        This builder for chaining.
      • hasFsType

        public boolean hasFsType()
         fsType is the filesystem type to mount.
         Must be a filesystem type supported by the host operating system.
         Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         +optional
         
        optional string fsType = 3;
        Specified by:
        hasFsType in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        Whether the fsType field is set.
      • getFsType

        public String getFsType()
         fsType is the filesystem type to mount.
         Must be a filesystem type supported by the host operating system.
         Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         +optional
         
        optional string fsType = 3;
        Specified by:
        getFsType in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        The fsType.
      • getFsTypeBytes

        public com.google.protobuf.ByteString getFsTypeBytes()
         fsType is the filesystem type to mount.
         Must be a filesystem type supported by the host operating system.
         Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         +optional
         
        optional string fsType = 3;
        Specified by:
        getFsTypeBytes in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        The bytes for fsType.
      • setFsType

        public Generated.StorageOSVolumeSource.Builder setFsType​(String value)
         fsType is the filesystem type to mount.
         Must be a filesystem type supported by the host operating system.
         Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         +optional
         
        optional string fsType = 3;
        Parameters:
        value - The fsType to set.
        Returns:
        This builder for chaining.
      • clearFsType

        public Generated.StorageOSVolumeSource.Builder clearFsType()
         fsType is the filesystem type to mount.
         Must be a filesystem type supported by the host operating system.
         Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         +optional
         
        optional string fsType = 3;
        Returns:
        This builder for chaining.
      • setFsTypeBytes

        public Generated.StorageOSVolumeSource.Builder setFsTypeBytes​(com.google.protobuf.ByteString value)
         fsType is the filesystem type to mount.
         Must be a filesystem type supported by the host operating system.
         Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         +optional
         
        optional string fsType = 3;
        Parameters:
        value - The bytes for fsType to set.
        Returns:
        This builder for chaining.
      • hasReadOnly

        public boolean hasReadOnly()
         readOnly defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         +optional
         
        optional bool readOnly = 4;
        Specified by:
        hasReadOnly in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        Whether the readOnly field is set.
      • getReadOnly

        public boolean getReadOnly()
         readOnly defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         +optional
         
        optional bool readOnly = 4;
        Specified by:
        getReadOnly in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        The readOnly.
      • setReadOnly

        public Generated.StorageOSVolumeSource.Builder setReadOnly​(boolean value)
         readOnly defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         +optional
         
        optional bool readOnly = 4;
        Parameters:
        value - The readOnly to set.
        Returns:
        This builder for chaining.
      • clearReadOnly

        public Generated.StorageOSVolumeSource.Builder clearReadOnly()
         readOnly defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         +optional
         
        optional bool readOnly = 4;
        Returns:
        This builder for chaining.
      • hasSecretRef

        public boolean hasSecretRef()
         secretRef specifies the secret to use for obtaining the StorageOS API
         credentials.  If not specified, default values will be attempted.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
        Specified by:
        hasSecretRef in interface Generated.StorageOSVolumeSourceOrBuilder
        Returns:
        Whether the secretRef field is set.
      • clearSecretRef

        public Generated.StorageOSVolumeSource.Builder clearSecretRef()
         secretRef specifies the secret to use for obtaining the StorageOS API
         credentials.  If not specified, default values will be attempted.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;
      • getSecretRefBuilder

        public Generated.LocalObjectReference.Builder getSecretRefBuilder()
         secretRef specifies the secret to use for obtaining the StorageOS API
         credentials.  If not specified, default values will be attempted.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 5;