Class V1.ISCSIVolumeSource

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1.ISCSIVolumeSource
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.ISCSIVolumeSourceOrBuilder, Serializable
Enclosing class:
V1

public static final class V1.ISCSIVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements V1.ISCSIVolumeSourceOrBuilder
 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.ISCSIVolumeSource
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields 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()
       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 V1.ISCSIVolumeSourceOrBuilder
    • getTargetPortal

      public String getTargetPortal()
       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 V1.ISCSIVolumeSourceOrBuilder
    • getTargetPortalBytes

      public com.google.protobuf.ByteString getTargetPortalBytes()
       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 V1.ISCSIVolumeSourceOrBuilder
    • hasIqn

      public boolean hasIqn()
       Target iSCSI Qualified Name.
       
      optional string iqn = 2;
      Specified by:
      hasIqn in interface V1.ISCSIVolumeSourceOrBuilder
    • getIqn

      public String getIqn()
       Target iSCSI Qualified Name.
       
      optional string iqn = 2;
      Specified by:
      getIqn in interface V1.ISCSIVolumeSourceOrBuilder
    • getIqnBytes

      public com.google.protobuf.ByteString getIqnBytes()
       Target iSCSI Qualified Name.
       
      optional string iqn = 2;
      Specified by:
      getIqnBytes in interface V1.ISCSIVolumeSourceOrBuilder
    • hasLun

      public boolean hasLun()
       iSCSI Target Lun number.
       
      optional int32 lun = 3;
      Specified by:
      hasLun in interface V1.ISCSIVolumeSourceOrBuilder
    • getLun

      public int getLun()
       iSCSI Target Lun number.
       
      optional int32 lun = 3;
      Specified by:
      getLun in interface V1.ISCSIVolumeSourceOrBuilder
    • hasIscsiInterface

      public boolean hasIscsiInterface()
       iSCSI Interface Name that uses an iSCSI transport.
       Defaults to 'default' (tcp).
       +optional
       
      optional string iscsiInterface = 4;
      Specified by:
      hasIscsiInterface in interface V1.ISCSIVolumeSourceOrBuilder
    • getIscsiInterface

      public String getIscsiInterface()
       iSCSI Interface Name that uses an iSCSI transport.
       Defaults to 'default' (tcp).
       +optional
       
      optional string iscsiInterface = 4;
      Specified by:
      getIscsiInterface in interface V1.ISCSIVolumeSourceOrBuilder
    • getIscsiInterfaceBytes

      public com.google.protobuf.ByteString getIscsiInterfaceBytes()
       iSCSI Interface Name that uses an iSCSI transport.
       Defaults to 'default' (tcp).
       +optional
       
      optional string iscsiInterface = 4;
      Specified by:
      getIscsiInterfaceBytes in interface V1.ISCSIVolumeSourceOrBuilder
    • hasFsType

      public boolean hasFsType()
       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 V1.ISCSIVolumeSourceOrBuilder
    • getFsType

      public String getFsType()
       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 V1.ISCSIVolumeSourceOrBuilder
    • getFsTypeBytes

      public com.google.protobuf.ByteString getFsTypeBytes()
       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 V1.ISCSIVolumeSourceOrBuilder
    • 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 V1.ISCSIVolumeSourceOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       ReadOnly here will force the ReadOnly setting in VolumeMounts.
       Defaults to false.
       +optional
       
      optional bool readOnly = 6;
      Specified by:
      getReadOnly in interface V1.ISCSIVolumeSourceOrBuilder
    • getPortalsList

      public com.google.protobuf.ProtocolStringList getPortalsList()
       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
       
      repeated string portals = 7;
      Specified by:
      getPortalsList in interface V1.ISCSIVolumeSourceOrBuilder
    • getPortalsCount

      public int getPortalsCount()
       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
       
      repeated string portals = 7;
      Specified by:
      getPortalsCount in interface V1.ISCSIVolumeSourceOrBuilder
    • getPortals

      public String getPortals(int index)
       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
       
      repeated string portals = 7;
      Specified by:
      getPortals in interface V1.ISCSIVolumeSourceOrBuilder
    • getPortalsBytes

      public com.google.protobuf.ByteString getPortalsBytes(int index)
       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
       
      repeated string portals = 7;
      Specified by:
      getPortalsBytes in interface V1.ISCSIVolumeSourceOrBuilder
    • hasChapAuthDiscovery

      public boolean hasChapAuthDiscovery()
       whether support iSCSI Discovery CHAP authentication
       +optional
       
      optional bool chapAuthDiscovery = 8;
      Specified by:
      hasChapAuthDiscovery in interface V1.ISCSIVolumeSourceOrBuilder
    • getChapAuthDiscovery

      public boolean getChapAuthDiscovery()
       whether support iSCSI Discovery CHAP authentication
       +optional
       
      optional bool chapAuthDiscovery = 8;
      Specified by:
      getChapAuthDiscovery in interface V1.ISCSIVolumeSourceOrBuilder
    • hasChapAuthSession

      public boolean hasChapAuthSession()
       whether support iSCSI Session CHAP authentication
       +optional
       
      optional bool chapAuthSession = 11;
      Specified by:
      hasChapAuthSession in interface V1.ISCSIVolumeSourceOrBuilder
    • getChapAuthSession

      public boolean getChapAuthSession()
       whether support iSCSI Session CHAP authentication
       +optional
       
      optional bool chapAuthSession = 11;
      Specified by:
      getChapAuthSession in interface V1.ISCSIVolumeSourceOrBuilder
    • hasSecretRef

      public boolean hasSecretRef()
       CHAP Secret for iSCSI target and initiator authentication
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10;
      Specified by:
      hasSecretRef in interface V1.ISCSIVolumeSourceOrBuilder
    • getSecretRef

      public V1.LocalObjectReference getSecretRef()
       CHAP Secret for iSCSI target and initiator authentication
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10;
      Specified by:
      getSecretRef in interface V1.ISCSIVolumeSourceOrBuilder
    • getSecretRefOrBuilder

      public V1.LocalObjectReferenceOrBuilder getSecretRefOrBuilder()
       CHAP Secret for iSCSI target and initiator authentication
       +optional
       
      optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10;
      Specified by:
      getSecretRefOrBuilder in interface V1.ISCSIVolumeSourceOrBuilder
    • hasInitiatorName

      public boolean hasInitiatorName()
       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 V1.ISCSIVolumeSourceOrBuilder
    • getInitiatorName

      public String getInitiatorName()
       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 V1.ISCSIVolumeSourceOrBuilder
    • getInitiatorNameBytes

      public com.google.protobuf.ByteString getInitiatorNameBytes()
       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 V1.ISCSIVolumeSourceOrBuilder
    • 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 V1.ISCSIVolumeSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.ISCSIVolumeSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.ISCSIVolumeSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.ISCSIVolumeSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.ISCSIVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.ISCSIVolumeSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.ISCSIVolumeSource parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.ISCSIVolumeSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.ISCSIVolumeSource parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.ISCSIVolumeSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.ISCSIVolumeSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.ISCSIVolumeSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1.ISCSIVolumeSource.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1.ISCSIVolumeSource.Builder newBuilder()
    • newBuilder

      public static V1.ISCSIVolumeSource.Builder newBuilder(V1.ISCSIVolumeSource prototype)
    • toBuilder

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

      protected V1.ISCSIVolumeSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1.ISCSIVolumeSource getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1.ISCSIVolumeSource> parser()
    • getParserForType

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