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

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

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

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

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

        public Generated.FlexVolumeSource 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.FlexVolumeSource.Builder>
      • mergeFrom

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

        public boolean hasDriver()
         driver is the name of the driver to use for this volume.
         
        optional string driver = 1;
        Specified by:
        hasDriver in interface Generated.FlexVolumeSourceOrBuilder
        Returns:
        Whether the driver field is set.
      • getDriverBytes

        public com.google.protobuf.ByteString getDriverBytes()
         driver is the name of the driver to use for this volume.
         
        optional string driver = 1;
        Specified by:
        getDriverBytes in interface Generated.FlexVolumeSourceOrBuilder
        Returns:
        The bytes for driver.
      • setDriver

        public Generated.FlexVolumeSource.Builder setDriver​(String value)
         driver is the name of the driver to use for this volume.
         
        optional string driver = 1;
        Parameters:
        value - The driver to set.
        Returns:
        This builder for chaining.
      • clearDriver

        public Generated.FlexVolumeSource.Builder clearDriver()
         driver is the name of the driver to use for this volume.
         
        optional string driver = 1;
        Returns:
        This builder for chaining.
      • setDriverBytes

        public Generated.FlexVolumeSource.Builder setDriverBytes​(com.google.protobuf.ByteString value)
         driver is the name of the driver to use for this volume.
         
        optional string driver = 1;
        Parameters:
        value - The bytes for driver 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". The default filesystem depends on FlexVolume script.
         +optional
         
        optional string fsType = 2;
        Specified by:
        hasFsType in interface Generated.FlexVolumeSourceOrBuilder
        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". The default filesystem depends on FlexVolume script.
         +optional
         
        optional string fsType = 2;
        Specified by:
        getFsType in interface Generated.FlexVolumeSourceOrBuilder
        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". The default filesystem depends on FlexVolume script.
         +optional
         
        optional string fsType = 2;
        Specified by:
        getFsTypeBytes in interface Generated.FlexVolumeSourceOrBuilder
        Returns:
        The bytes for fsType.
      • setFsType

        public Generated.FlexVolumeSource.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". The default filesystem depends on FlexVolume script.
         +optional
         
        optional string fsType = 2;
        Parameters:
        value - The fsType to set.
        Returns:
        This builder for chaining.
      • clearFsType

        public Generated.FlexVolumeSource.Builder clearFsType()
         fsType is the filesystem type to mount.
         Must be a filesystem type supported by the host operating system.
         Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
         +optional
         
        optional string fsType = 2;
        Returns:
        This builder for chaining.
      • setFsTypeBytes

        public Generated.FlexVolumeSource.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". The default filesystem depends on FlexVolume script.
         +optional
         
        optional string fsType = 2;
        Parameters:
        value - The bytes for fsType to set.
        Returns:
        This builder for chaining.
      • hasSecretRef

        public boolean hasSecretRef()
         secretRef is Optional: secretRef is reference to the secret object containing
         sensitive information to pass to the plugin scripts. This may be
         empty if no secret object is specified. If the secret object
         contains more than one secret, all secrets are passed to the plugin
         scripts.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;
        Specified by:
        hasSecretRef in interface Generated.FlexVolumeSourceOrBuilder
        Returns:
        Whether the secretRef field is set.
      • getSecretRef

        public Generated.LocalObjectReference getSecretRef()
         secretRef is Optional: secretRef is reference to the secret object containing
         sensitive information to pass to the plugin scripts. This may be
         empty if no secret object is specified. If the secret object
         contains more than one secret, all secrets are passed to the plugin
         scripts.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;
        Specified by:
        getSecretRef in interface Generated.FlexVolumeSourceOrBuilder
        Returns:
        The secretRef.
      • setSecretRef

        public Generated.FlexVolumeSource.Builder setSecretRef​(Generated.LocalObjectReference value)
         secretRef is Optional: secretRef is reference to the secret object containing
         sensitive information to pass to the plugin scripts. This may be
         empty if no secret object is specified. If the secret object
         contains more than one secret, all secrets are passed to the plugin
         scripts.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;
      • setSecretRef

        public Generated.FlexVolumeSource.Builder setSecretRef​(Generated.LocalObjectReference.Builder builderForValue)
         secretRef is Optional: secretRef is reference to the secret object containing
         sensitive information to pass to the plugin scripts. This may be
         empty if no secret object is specified. If the secret object
         contains more than one secret, all secrets are passed to the plugin
         scripts.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;
      • mergeSecretRef

        public Generated.FlexVolumeSource.Builder mergeSecretRef​(Generated.LocalObjectReference value)
         secretRef is Optional: secretRef is reference to the secret object containing
         sensitive information to pass to the plugin scripts. This may be
         empty if no secret object is specified. If the secret object
         contains more than one secret, all secrets are passed to the plugin
         scripts.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;
      • clearSecretRef

        public Generated.FlexVolumeSource.Builder clearSecretRef()
         secretRef is Optional: secretRef is reference to the secret object containing
         sensitive information to pass to the plugin scripts. This may be
         empty if no secret object is specified. If the secret object
         contains more than one secret, all secrets are passed to the plugin
         scripts.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;
      • getSecretRefBuilder

        public Generated.LocalObjectReference.Builder getSecretRefBuilder()
         secretRef is Optional: secretRef is reference to the secret object containing
         sensitive information to pass to the plugin scripts. This may be
         empty if no secret object is specified. If the secret object
         contains more than one secret, all secrets are passed to the plugin
         scripts.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;
      • getSecretRefOrBuilder

        public Generated.LocalObjectReferenceOrBuilder getSecretRefOrBuilder()
         secretRef is Optional: secretRef is reference to the secret object containing
         sensitive information to pass to the plugin scripts. This may be
         empty if no secret object is specified. If the secret object
         contains more than one secret, all secrets are passed to the plugin
         scripts.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 3;
        Specified by:
        getSecretRefOrBuilder in interface Generated.FlexVolumeSourceOrBuilder
      • hasReadOnly

        public boolean hasReadOnly()
         readOnly is Optional: 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.FlexVolumeSourceOrBuilder
        Returns:
        Whether the readOnly field is set.
      • getReadOnly

        public boolean getReadOnly()
         readOnly is Optional: 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.FlexVolumeSourceOrBuilder
        Returns:
        The readOnly.
      • setReadOnly

        public Generated.FlexVolumeSource.Builder setReadOnly​(boolean value)
         readOnly is Optional: 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.FlexVolumeSource.Builder clearReadOnly()
         readOnly is Optional: defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         +optional
         
        optional bool readOnly = 4;
        Returns:
        This builder for chaining.
      • removeOptions

        public Generated.FlexVolumeSource.Builder removeOptions​(String key)
         options is Optional: this field holds extra command options if any.
         +optional
         
        map<string, string> options = 5;
      • getMutableOptions

        @Deprecated
        public Map<String,​String> getMutableOptions()
        Deprecated.
        Use alternate mutation accessors instead.
      • setUnknownFields

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

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