Class Generated.FCVolumeSource

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

    public static final class Generated.FCVolumeSource
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.FCVolumeSourceOrBuilder
     Represents a Fibre Channel volume.
     Fibre Channel volumes can only be mounted as read/write once.
     Fibre Channel volumes support ownership management and SELinux relabeling.
     
    Protobuf type k8s.io.api.core.v1.FCVolumeSource
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Generated.FCVolumeSource.Builder
      Represents a Fibre Channel volume.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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
      • getTargetWWNsList

        public com.google.protobuf.ProtocolStringList getTargetWWNsList()
         targetWWNs is Optional: FC target worldwide names (WWNs)
         +optional
         +listType=atomic
         
        repeated string targetWWNs = 1;
        Specified by:
        getTargetWWNsList in interface Generated.FCVolumeSourceOrBuilder
        Returns:
        A list containing the targetWWNs.
      • getTargetWWNsCount

        public int getTargetWWNsCount()
         targetWWNs is Optional: FC target worldwide names (WWNs)
         +optional
         +listType=atomic
         
        repeated string targetWWNs = 1;
        Specified by:
        getTargetWWNsCount in interface Generated.FCVolumeSourceOrBuilder
        Returns:
        The count of targetWWNs.
      • getTargetWWNs

        public String getTargetWWNs​(int index)
         targetWWNs is Optional: FC target worldwide names (WWNs)
         +optional
         +listType=atomic
         
        repeated string targetWWNs = 1;
        Specified by:
        getTargetWWNs in interface Generated.FCVolumeSourceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The targetWWNs at the given index.
      • getTargetWWNsBytes

        public com.google.protobuf.ByteString getTargetWWNsBytes​(int index)
         targetWWNs is Optional: FC target worldwide names (WWNs)
         +optional
         +listType=atomic
         
        repeated string targetWWNs = 1;
        Specified by:
        getTargetWWNsBytes in interface Generated.FCVolumeSourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the targetWWNs at the given index.
      • hasLun

        public boolean hasLun()
         lun is Optional: FC target lun number
         +optional
         
        optional int32 lun = 2;
        Specified by:
        hasLun in interface Generated.FCVolumeSourceOrBuilder
        Returns:
        Whether the lun field is set.
      • 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.
         TODO: how do we prevent errors in the filesystem from compromising the machine
         +optional
         
        optional string fsType = 3;
        Specified by:
        hasFsType in interface Generated.FCVolumeSourceOrBuilder
        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.
         TODO: how do we prevent errors in the filesystem from compromising the machine
         +optional
         
        optional string fsType = 3;
        Specified by:
        getFsType in interface Generated.FCVolumeSourceOrBuilder
        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.
         TODO: how do we prevent errors in the filesystem from compromising the machine
         +optional
         
        optional string fsType = 3;
        Specified by:
        getFsTypeBytes in interface Generated.FCVolumeSourceOrBuilder
        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.
         +optional
         
        optional bool readOnly = 4;
        Specified by:
        hasReadOnly in interface Generated.FCVolumeSourceOrBuilder
        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.FCVolumeSourceOrBuilder
        Returns:
        The readOnly.
      • getWwidsList

        public com.google.protobuf.ProtocolStringList getWwidsList()
         wwids Optional: FC volume world wide identifiers (wwids)
         Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
         +optional
         +listType=atomic
         
        repeated string wwids = 5;
        Specified by:
        getWwidsList in interface Generated.FCVolumeSourceOrBuilder
        Returns:
        A list containing the wwids.
      • getWwidsCount

        public int getWwidsCount()
         wwids Optional: FC volume world wide identifiers (wwids)
         Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
         +optional
         +listType=atomic
         
        repeated string wwids = 5;
        Specified by:
        getWwidsCount in interface Generated.FCVolumeSourceOrBuilder
        Returns:
        The count of wwids.
      • getWwids

        public String getWwids​(int index)
         wwids Optional: FC volume world wide identifiers (wwids)
         Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
         +optional
         +listType=atomic
         
        repeated string wwids = 5;
        Specified by:
        getWwids in interface Generated.FCVolumeSourceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The wwids at the given index.
      • getWwidsBytes

        public com.google.protobuf.ByteString getWwidsBytes​(int index)
         wwids Optional: FC volume world wide identifiers (wwids)
         Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
         +optional
         +listType=atomic
         
        repeated string wwids = 5;
        Specified by:
        getWwidsBytes in interface Generated.FCVolumeSourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the wwids at the given index.
      • 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.FCVolumeSource parseFrom​(ByteBuffer data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Generated.FCVolumeSource parseFrom​(ByteBuffer data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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