Class Generated.ISCSIPersistentVolumeSource

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

    public static final class Generated.ISCSIPersistentVolumeSource
    extends com.google.protobuf.GeneratedMessageV3
    implements Generated.ISCSIPersistentVolumeSourceOrBuilder
     ISCSIPersistentVolumeSource represents an ISCSI disk.
     ISCSI volumes can only be mounted as read/write once.
     ISCSI volumes support ownership management and SELinux relabeling.
     
    Protobuf type k8s.io.api.core.v1.ISCSIPersistentVolumeSource
    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
      • hasTargetPortal

        public boolean hasTargetPortal()
         targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
         is other than default (typically TCP ports 860 and 3260).
         
        optional string targetPortal = 1;
        Specified by:
        hasTargetPortal in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        Whether the targetPortal field is set.
      • getTargetPortal

        public String getTargetPortal()
         targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
         is other than default (typically TCP ports 860 and 3260).
         
        optional string targetPortal = 1;
        Specified by:
        getTargetPortal in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        The targetPortal.
      • getTargetPortalBytes

        public com.google.protobuf.ByteString getTargetPortalBytes()
         targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
         is other than default (typically TCP ports 860 and 3260).
         
        optional string targetPortal = 1;
        Specified by:
        getTargetPortalBytes in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for targetPortal.
      • hasIscsiInterface

        public boolean hasIscsiInterface()
         iscsiInterface is the interface Name that uses an iSCSI transport.
         Defaults to 'default' (tcp).
         +optional
         +default="default"
         
        optional string iscsiInterface = 4;
        Specified by:
        hasIscsiInterface in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        Whether the iscsiInterface field is set.
      • getIscsiInterfaceBytes

        public com.google.protobuf.ByteString getIscsiInterfaceBytes()
         iscsiInterface is the interface Name that uses an iSCSI transport.
         Defaults to 'default' (tcp).
         +optional
         +default="default"
         
        optional string iscsiInterface = 4;
        Specified by:
        getIscsiInterfaceBytes in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for iscsiInterface.
      • hasFsType

        public boolean hasFsType()
         fsType is the filesystem type of the volume that you want to mount.
         Tip: Ensure that the filesystem type is supported by the host operating system.
         Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
         TODO: how do we prevent errors in the filesystem from compromising the machine
         +optional
         
        optional string fsType = 5;
        Specified by:
        hasFsType in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        Whether the fsType field is set.
      • getFsType

        public String getFsType()
         fsType is the filesystem type of the volume that you want to mount.
         Tip: Ensure that the filesystem type is supported by the host operating system.
         Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
         TODO: how do we prevent errors in the filesystem from compromising the machine
         +optional
         
        optional string fsType = 5;
        Specified by:
        getFsType in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        The fsType.
      • getFsTypeBytes

        public com.google.protobuf.ByteString getFsTypeBytes()
         fsType is the filesystem type of the volume that you want to mount.
         Tip: Ensure that the filesystem type is supported by the host operating system.
         Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
         More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
         TODO: how do we prevent errors in the filesystem from compromising the machine
         +optional
         
        optional string fsType = 5;
        Specified by:
        getFsTypeBytes in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for fsType.
      • hasReadOnly

        public boolean hasReadOnly()
         readOnly here will force the ReadOnly setting in VolumeMounts.
         Defaults to false.
         +optional
         
        optional bool readOnly = 6;
        Specified by:
        hasReadOnly in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        Whether the readOnly field is set.
      • getPortalsList

        public com.google.protobuf.ProtocolStringList getPortalsList()
         portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
         is other than default (typically TCP ports 860 and 3260).
         +optional
         +listType=atomic
         
        repeated string portals = 7;
        Specified by:
        getPortalsList in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        A list containing the portals.
      • getPortalsCount

        public int getPortalsCount()
         portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
         is other than default (typically TCP ports 860 and 3260).
         +optional
         +listType=atomic
         
        repeated string portals = 7;
        Specified by:
        getPortalsCount in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        The count of portals.
      • getPortals

        public String getPortals​(int index)
         portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
         is other than default (typically TCP ports 860 and 3260).
         +optional
         +listType=atomic
         
        repeated string portals = 7;
        Specified by:
        getPortals in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The portals at the given index.
      • getPortalsBytes

        public com.google.protobuf.ByteString getPortalsBytes​(int index)
         portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
         is other than default (typically TCP ports 860 and 3260).
         +optional
         +listType=atomic
         
        repeated string portals = 7;
        Specified by:
        getPortalsBytes in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the portals at the given index.
      • hasChapAuthDiscovery

        public boolean hasChapAuthDiscovery()
         chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
         +optional
         
        optional bool chapAuthDiscovery = 8;
        Specified by:
        hasChapAuthDiscovery in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        Whether the chapAuthDiscovery field is set.
      • hasChapAuthSession

        public boolean hasChapAuthSession()
         chapAuthSession defines whether support iSCSI Session CHAP authentication
         +optional
         
        optional bool chapAuthSession = 11;
        Specified by:
        hasChapAuthSession in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        Whether the chapAuthSession field is set.
      • hasSecretRef

        public boolean hasSecretRef()
         secretRef is the CHAP Secret for iSCSI target and initiator authentication
         +optional
         
        optional .k8s.io.api.core.v1.SecretReference secretRef = 10;
        Specified by:
        hasSecretRef in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        Whether the secretRef field is set.
      • hasInitiatorName

        public boolean hasInitiatorName()
         initiatorName is the custom iSCSI Initiator Name.
         If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
         <target portal>:<volume name> will be created for the connection.
         +optional
         
        optional string initiatorName = 12;
        Specified by:
        hasInitiatorName in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        Whether the initiatorName field is set.
      • getInitiatorName

        public String getInitiatorName()
         initiatorName is the custom iSCSI Initiator Name.
         If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
         <target portal>:<volume name> will be created for the connection.
         +optional
         
        optional string initiatorName = 12;
        Specified by:
        getInitiatorName in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        The initiatorName.
      • getInitiatorNameBytes

        public com.google.protobuf.ByteString getInitiatorNameBytes()
         initiatorName is the custom iSCSI Initiator Name.
         If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
         <target portal>:<volume name> will be created for the connection.
         +optional
         
        optional string initiatorName = 12;
        Specified by:
        getInitiatorNameBytes in interface Generated.ISCSIPersistentVolumeSourceOrBuilder
        Returns:
        The bytes for initiatorName.
      • 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.ISCSIPersistentVolumeSource parseFrom​(ByteBuffer data,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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