Class Generated.FCVolumeSource.Builder

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

    public static final class Generated.FCVolumeSource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.FCVolumeSource.Builder>
    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
    • 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.FCVolumeSource.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.FCVolumeSource.Builder>
      • getDefaultInstanceForType

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

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

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

        public Generated.FCVolumeSource.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.FCVolumeSource.Builder>
      • addRepeatedField

        public Generated.FCVolumeSource.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.FCVolumeSource.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.FCVolumeSource.Builder>
      • mergeFrom

        public Generated.FCVolumeSource.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.FCVolumeSource.Builder>
        Throws:
        IOException
      • 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.
      • setTargetWWNs

        public Generated.FCVolumeSource.Builder setTargetWWNs​(int index,
                                                              String value)
         targetWWNs is Optional: FC target worldwide names (WWNs)
         +optional
         +listType=atomic
         
        repeated string targetWWNs = 1;
        Parameters:
        index - The index to set the value at.
        value - The targetWWNs to set.
        Returns:
        This builder for chaining.
      • addTargetWWNs

        public Generated.FCVolumeSource.Builder addTargetWWNs​(String value)
         targetWWNs is Optional: FC target worldwide names (WWNs)
         +optional
         +listType=atomic
         
        repeated string targetWWNs = 1;
        Parameters:
        value - The targetWWNs to add.
        Returns:
        This builder for chaining.
      • addAllTargetWWNs

        public Generated.FCVolumeSource.Builder addAllTargetWWNs​(Iterable<String> values)
         targetWWNs is Optional: FC target worldwide names (WWNs)
         +optional
         +listType=atomic
         
        repeated string targetWWNs = 1;
        Parameters:
        values - The targetWWNs to add.
        Returns:
        This builder for chaining.
      • clearTargetWWNs

        public Generated.FCVolumeSource.Builder clearTargetWWNs()
         targetWWNs is Optional: FC target worldwide names (WWNs)
         +optional
         +listType=atomic
         
        repeated string targetWWNs = 1;
        Returns:
        This builder for chaining.
      • addTargetWWNsBytes

        public Generated.FCVolumeSource.Builder addTargetWWNsBytes​(com.google.protobuf.ByteString value)
         targetWWNs is Optional: FC target worldwide names (WWNs)
         +optional
         +listType=atomic
         
        repeated string targetWWNs = 1;
        Parameters:
        value - The bytes of the targetWWNs to add.
        Returns:
        This builder for chaining.
      • 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.
      • setLun

        public Generated.FCVolumeSource.Builder setLun​(int value)
         lun is Optional: FC target lun number
         +optional
         
        optional int32 lun = 2;
        Parameters:
        value - The lun to set.
        Returns:
        This builder for chaining.
      • clearLun

        public Generated.FCVolumeSource.Builder clearLun()
         lun is Optional: FC target lun number
         +optional
         
        optional int32 lun = 2;
        Returns:
        This builder for chaining.
      • 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.
      • setFsType

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

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

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

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

        public Generated.FCVolumeSource.Builder clearReadOnly()
         readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
         the ReadOnly setting in VolumeMounts.
         +optional
         
        optional bool readOnly = 4;
        Returns:
        This builder for chaining.
      • 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.
      • setWwids

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

        public Generated.FCVolumeSource.Builder addWwids​(String value)
         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;
        Parameters:
        value - The wwids to add.
        Returns:
        This builder for chaining.
      • addAllWwids

        public Generated.FCVolumeSource.Builder addAllWwids​(Iterable<String> values)
         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;
        Parameters:
        values - The wwids to add.
        Returns:
        This builder for chaining.
      • clearWwids

        public Generated.FCVolumeSource.Builder clearWwids()
         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;
        Returns:
        This builder for chaining.
      • addWwidsBytes

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

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

        public final Generated.FCVolumeSource.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.FCVolumeSource.Builder>