Class Generated.CinderVolumeSource.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.CinderVolumeSourceOrBuilder
    Enclosing class:
    Generated.CinderVolumeSource

    public static final class Generated.CinderVolumeSource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.CinderVolumeSource.Builder>
    implements Generated.CinderVolumeSourceOrBuilder
     Represents a cinder volume resource in Openstack.
     A Cinder volume must exist before mounting to a container.
     The volume must also be in the same region as the kubelet.
     Cinder volumes support ownership management and SELinux relabeling.
     
    Protobuf type k8s.io.api.core.v1.CinderVolumeSource
    • 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.CinderVolumeSource.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.CinderVolumeSource.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public boolean hasVolumeID()
         volumeID used to identify the volume in cinder.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         
        optional string volumeID = 1;
        Specified by:
        hasVolumeID in interface Generated.CinderVolumeSourceOrBuilder
        Returns:
        Whether the volumeID field is set.
      • getVolumeID

        public String getVolumeID()
         volumeID used to identify the volume in cinder.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         
        optional string volumeID = 1;
        Specified by:
        getVolumeID in interface Generated.CinderVolumeSourceOrBuilder
        Returns:
        The volumeID.
      • getVolumeIDBytes

        public com.google.protobuf.ByteString getVolumeIDBytes()
         volumeID used to identify the volume in cinder.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         
        optional string volumeID = 1;
        Specified by:
        getVolumeIDBytes in interface Generated.CinderVolumeSourceOrBuilder
        Returns:
        The bytes for volumeID.
      • setVolumeID

        public Generated.CinderVolumeSource.Builder setVolumeID​(String value)
         volumeID used to identify the volume in cinder.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         
        optional string volumeID = 1;
        Parameters:
        value - The volumeID to set.
        Returns:
        This builder for chaining.
      • clearVolumeID

        public Generated.CinderVolumeSource.Builder clearVolumeID()
         volumeID used to identify the volume in cinder.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         
        optional string volumeID = 1;
        Returns:
        This builder for chaining.
      • setVolumeIDBytes

        public Generated.CinderVolumeSource.Builder setVolumeIDBytes​(com.google.protobuf.ByteString value)
         volumeID used to identify the volume in cinder.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         
        optional string volumeID = 1;
        Parameters:
        value - The bytes for volumeID 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.
         Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional string fsType = 2;
        Specified by:
        hasFsType in interface Generated.CinderVolumeSourceOrBuilder
        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.
         Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional string fsType = 2;
        Specified by:
        getFsType in interface Generated.CinderVolumeSourceOrBuilder
        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.
         Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional string fsType = 2;
        Specified by:
        getFsTypeBytes in interface Generated.CinderVolumeSourceOrBuilder
        Returns:
        The bytes for fsType.
      • setFsType

        public Generated.CinderVolumeSource.Builder setFsType​(String value)
         fsType is the filesystem type to mount.
         Must be a filesystem type supported by the host operating system.
         Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional string fsType = 2;
        Parameters:
        value - The fsType to set.
        Returns:
        This builder for chaining.
      • clearFsType

        public Generated.CinderVolumeSource.Builder clearFsType()
         fsType is the filesystem type to mount.
         Must be a filesystem type supported by the host operating system.
         Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional string fsType = 2;
        Returns:
        This builder for chaining.
      • setFsTypeBytes

        public Generated.CinderVolumeSource.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.
         Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional string fsType = 2;
        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.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional bool readOnly = 3;
        Specified by:
        hasReadOnly in interface Generated.CinderVolumeSourceOrBuilder
        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.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional bool readOnly = 3;
        Specified by:
        getReadOnly in interface Generated.CinderVolumeSourceOrBuilder
        Returns:
        The readOnly.
      • setReadOnly

        public Generated.CinderVolumeSource.Builder setReadOnly​(boolean value)
         readOnly defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional bool readOnly = 3;
        Parameters:
        value - The readOnly to set.
        Returns:
        This builder for chaining.
      • clearReadOnly

        public Generated.CinderVolumeSource.Builder clearReadOnly()
         readOnly defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional bool readOnly = 3;
        Returns:
        This builder for chaining.
      • hasSecretRef

        public boolean hasSecretRef()
         secretRef is optional: points to a secret object containing parameters used to connect
         to OpenStack.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4;
        Specified by:
        hasSecretRef in interface Generated.CinderVolumeSourceOrBuilder
        Returns:
        Whether the secretRef field is set.
      • clearSecretRef

        public Generated.CinderVolumeSource.Builder clearSecretRef()
         secretRef is optional: points to a secret object containing parameters used to connect
         to OpenStack.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4;
      • getSecretRefBuilder

        public Generated.LocalObjectReference.Builder getSecretRefBuilder()
         secretRef is optional: points to a secret object containing parameters used to connect
         to OpenStack.
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 4;