Class Generated.ISCSIVolumeSource.Builder

    • 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.ISCSIVolumeSource.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.ISCSIVolumeSource.Builder>
      • getDefaultInstanceForType

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

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

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

        public Generated.ISCSIVolumeSource.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.ISCSIVolumeSource.Builder>
        Throws:
        IOException
      • 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.ISCSIVolumeSourceOrBuilder
        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.ISCSIVolumeSourceOrBuilder
        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.ISCSIVolumeSourceOrBuilder
        Returns:
        The bytes for targetPortal.
      • setTargetPortal

        public Generated.ISCSIVolumeSource.Builder setTargetPortal​(String value)
         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;
        Parameters:
        value - The targetPortal to set.
        Returns:
        This builder for chaining.
      • clearTargetPortal

        public Generated.ISCSIVolumeSource.Builder clearTargetPortal()
         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;
        Returns:
        This builder for chaining.
      • setTargetPortalBytes

        public Generated.ISCSIVolumeSource.Builder setTargetPortalBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for targetPortal to set.
        Returns:
        This builder for chaining.
      • hasIqn

        public boolean hasIqn()
         iqn is the target iSCSI Qualified Name.
         
        optional string iqn = 2;
        Specified by:
        hasIqn in interface Generated.ISCSIVolumeSourceOrBuilder
        Returns:
        Whether the iqn field is set.
      • getIqnBytes

        public com.google.protobuf.ByteString getIqnBytes()
         iqn is the target iSCSI Qualified Name.
         
        optional string iqn = 2;
        Specified by:
        getIqnBytes in interface Generated.ISCSIVolumeSourceOrBuilder
        Returns:
        The bytes for iqn.
      • setIqn

        public Generated.ISCSIVolumeSource.Builder setIqn​(String value)
         iqn is the target iSCSI Qualified Name.
         
        optional string iqn = 2;
        Parameters:
        value - The iqn to set.
        Returns:
        This builder for chaining.
      • setIqnBytes

        public Generated.ISCSIVolumeSource.Builder setIqnBytes​(com.google.protobuf.ByteString value)
         iqn is the target iSCSI Qualified Name.
         
        optional string iqn = 2;
        Parameters:
        value - The bytes for iqn to set.
        Returns:
        This builder for chaining.
      • hasLun

        public boolean hasLun()
         lun represents iSCSI Target Lun number.
         
        optional int32 lun = 3;
        Specified by:
        hasLun in interface Generated.ISCSIVolumeSourceOrBuilder
        Returns:
        Whether the lun field is set.
      • setLun

        public Generated.ISCSIVolumeSource.Builder setLun​(int value)
         lun represents iSCSI Target Lun number.
         
        optional int32 lun = 3;
        Parameters:
        value - The lun to set.
        Returns:
        This builder for chaining.
      • 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.ISCSIVolumeSourceOrBuilder
        Returns:
        Whether the iscsiInterface field is set.
      • getIscsiInterface

        public String getIscsiInterface()
         iscsiInterface is the interface Name that uses an iSCSI transport.
         Defaults to 'default' (tcp).
         +optional
         +default="default"
         
        optional string iscsiInterface = 4;
        Specified by:
        getIscsiInterface in interface Generated.ISCSIVolumeSourceOrBuilder
        Returns:
        The iscsiInterface.
      • 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.ISCSIVolumeSourceOrBuilder
        Returns:
        The bytes for iscsiInterface.
      • setIscsiInterface

        public Generated.ISCSIVolumeSource.Builder setIscsiInterface​(String value)
         iscsiInterface is the interface Name that uses an iSCSI transport.
         Defaults to 'default' (tcp).
         +optional
         +default="default"
         
        optional string iscsiInterface = 4;
        Parameters:
        value - The iscsiInterface to set.
        Returns:
        This builder for chaining.
      • clearIscsiInterface

        public Generated.ISCSIVolumeSource.Builder clearIscsiInterface()
         iscsiInterface is the interface Name that uses an iSCSI transport.
         Defaults to 'default' (tcp).
         +optional
         +default="default"
         
        optional string iscsiInterface = 4;
        Returns:
        This builder for chaining.
      • setIscsiInterfaceBytes

        public Generated.ISCSIVolumeSource.Builder setIscsiInterfaceBytes​(com.google.protobuf.ByteString value)
         iscsiInterface is the interface Name that uses an iSCSI transport.
         Defaults to 'default' (tcp).
         +optional
         +default="default"
         
        optional string iscsiInterface = 4;
        Parameters:
        value - The bytes for iscsiInterface to set.
        Returns:
        This builder for chaining.
      • 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.ISCSIVolumeSourceOrBuilder
        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.ISCSIVolumeSourceOrBuilder
        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.ISCSIVolumeSourceOrBuilder
        Returns:
        The bytes for fsType.
      • setFsType

        public Generated.ISCSIVolumeSource.Builder setFsType​(String value)
         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;
        Parameters:
        value - The fsType to set.
        Returns:
        This builder for chaining.
      • clearFsType

        public Generated.ISCSIVolumeSource.Builder clearFsType()
         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;
        Returns:
        This builder for chaining.
      • setFsTypeBytes

        public Generated.ISCSIVolumeSource.Builder setFsTypeBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for fsType to set.
        Returns:
        This builder for chaining.
      • 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.ISCSIVolumeSourceOrBuilder
        Returns:
        Whether the readOnly field is set.
      • 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 Generated.ISCSIVolumeSourceOrBuilder
        Returns:
        The readOnly.
      • setReadOnly

        public Generated.ISCSIVolumeSource.Builder setReadOnly​(boolean value)
         readOnly here will force the ReadOnly setting in VolumeMounts.
         Defaults to false.
         +optional
         
        optional bool readOnly = 6;
        Parameters:
        value - The readOnly to set.
        Returns:
        This builder for chaining.
      • clearReadOnly

        public Generated.ISCSIVolumeSource.Builder clearReadOnly()
         readOnly here will force the ReadOnly setting in VolumeMounts.
         Defaults to false.
         +optional
         
        optional bool readOnly = 6;
        Returns:
        This builder for chaining.
      • 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.ISCSIVolumeSourceOrBuilder
        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.ISCSIVolumeSourceOrBuilder
        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.ISCSIVolumeSourceOrBuilder
        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.ISCSIVolumeSourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the portals at the given index.
      • setPortals

        public Generated.ISCSIVolumeSource.Builder setPortals​(int index,
                                                              String value)
         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;
        Parameters:
        index - The index to set the value at.
        value - The portals to set.
        Returns:
        This builder for chaining.
      • addPortals

        public Generated.ISCSIVolumeSource.Builder addPortals​(String value)
         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;
        Parameters:
        value - The portals to add.
        Returns:
        This builder for chaining.
      • addAllPortals

        public Generated.ISCSIVolumeSource.Builder addAllPortals​(Iterable<String> values)
         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;
        Parameters:
        values - The portals to add.
        Returns:
        This builder for chaining.
      • clearPortals

        public Generated.ISCSIVolumeSource.Builder clearPortals()
         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;
        Returns:
        This builder for chaining.
      • addPortalsBytes

        public Generated.ISCSIVolumeSource.Builder addPortalsBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes of the portals to add.
        Returns:
        This builder for chaining.
      • hasChapAuthDiscovery

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

        public boolean getChapAuthDiscovery()
         chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
         +optional
         
        optional bool chapAuthDiscovery = 8;
        Specified by:
        getChapAuthDiscovery in interface Generated.ISCSIVolumeSourceOrBuilder
        Returns:
        The chapAuthDiscovery.
      • setChapAuthDiscovery

        public Generated.ISCSIVolumeSource.Builder setChapAuthDiscovery​(boolean value)
         chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
         +optional
         
        optional bool chapAuthDiscovery = 8;
        Parameters:
        value - The chapAuthDiscovery to set.
        Returns:
        This builder for chaining.
      • clearChapAuthDiscovery

        public Generated.ISCSIVolumeSource.Builder clearChapAuthDiscovery()
         chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
         +optional
         
        optional bool chapAuthDiscovery = 8;
        Returns:
        This builder for chaining.
      • hasChapAuthSession

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

        public boolean getChapAuthSession()
         chapAuthSession defines whether support iSCSI Session CHAP authentication
         +optional
         
        optional bool chapAuthSession = 11;
        Specified by:
        getChapAuthSession in interface Generated.ISCSIVolumeSourceOrBuilder
        Returns:
        The chapAuthSession.
      • setChapAuthSession

        public Generated.ISCSIVolumeSource.Builder setChapAuthSession​(boolean value)
         chapAuthSession defines whether support iSCSI Session CHAP authentication
         +optional
         
        optional bool chapAuthSession = 11;
        Parameters:
        value - The chapAuthSession to set.
        Returns:
        This builder for chaining.
      • clearChapAuthSession

        public Generated.ISCSIVolumeSource.Builder clearChapAuthSession()
         chapAuthSession defines whether support iSCSI Session CHAP authentication
         +optional
         
        optional bool chapAuthSession = 11;
        Returns:
        This builder for chaining.
      • hasSecretRef

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

        public Generated.ISCSIVolumeSource.Builder clearSecretRef()
         secretRef is the CHAP Secret for iSCSI target and initiator authentication
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10;
      • getSecretRefBuilder

        public Generated.LocalObjectReference.Builder getSecretRefBuilder()
         secretRef is the CHAP Secret for iSCSI target and initiator authentication
         +optional
         
        optional .k8s.io.api.core.v1.LocalObjectReference secretRef = 10;
      • 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.ISCSIVolumeSourceOrBuilder
        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.ISCSIVolumeSourceOrBuilder
        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.ISCSIVolumeSourceOrBuilder
        Returns:
        The bytes for initiatorName.
      • setInitiatorName

        public Generated.ISCSIVolumeSource.Builder setInitiatorName​(String value)
         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;
        Parameters:
        value - The initiatorName to set.
        Returns:
        This builder for chaining.
      • clearInitiatorName

        public Generated.ISCSIVolumeSource.Builder clearInitiatorName()
         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;
        Returns:
        This builder for chaining.
      • setInitiatorNameBytes

        public Generated.ISCSIVolumeSource.Builder setInitiatorNameBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes for initiatorName to set.
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final Generated.ISCSIVolumeSource.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.ISCSIVolumeSource.Builder>