Class Generated.CinderPersistentVolumeSource

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

    public static final class Generated.CinderPersistentVolumeSource
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.CinderPersistentVolumeSourceOrBuilder
     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.CinderPersistentVolumeSource
    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()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.CinderPersistentVolumeSourceOrBuilder
        Returns:
        Whether the volumeID field is set.
      • 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.CinderPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for volumeID.
      • hasFsType

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

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

        public com.google.protobuf.ByteString getFsTypeBytes()
         fsType 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.CinderPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for fsType.
      • hasReadOnly

        public boolean hasReadOnly()
         readOnly is Optional: 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.CinderPersistentVolumeSourceOrBuilder
        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.
         More info: https://examples.k8s.io/mysql-cinder-pd/README.md
         +optional
         
        optional bool readOnly = 3;
        Specified by:
        getReadOnly in interface Generated.CinderPersistentVolumeSourceOrBuilder
        Returns:
        The readOnly.
      • 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.SecretReference secretRef = 4;
        Specified by:
        hasSecretRef in interface Generated.CinderPersistentVolumeSourceOrBuilder
        Returns:
        Whether the secretRef field is set.
      • 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.CinderPersistentVolumeSource parseFrom​(ByteBuffer data,
                                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static Generated.CinderPersistentVolumeSource 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.CinderPersistentVolumeSource parseFrom​(byte[] data)
                                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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