Class V1.FCVolumeSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.FCVolumeSource.Builder>
io.kubernetes.client.proto.V1.FCVolumeSource.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.FCVolumeSourceOrBuilder, Cloneable
Enclosing class:
V1.FCVolumeSource

public static final class V1.FCVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.FCVolumeSource.Builder> implements V1.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 Details

    • 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<V1.FCVolumeSource.Builder>
    • clear

      public V1.FCVolumeSource.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.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<V1.FCVolumeSource.Builder>
    • getDefaultInstanceForType

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

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

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

      public V1.FCVolumeSource.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.FCVolumeSource.Builder>
    • setField

      public V1.FCVolumeSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.FCVolumeSource.Builder>
    • clearField

      public V1.FCVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.FCVolumeSource.Builder>
    • clearOneof

      public V1.FCVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.FCVolumeSource.Builder>
    • setRepeatedField

      public V1.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<V1.FCVolumeSource.Builder>
    • addRepeatedField

      public V1.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<V1.FCVolumeSource.Builder>
    • mergeFrom

      public V1.FCVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.FCVolumeSource.Builder>
    • mergeFrom

      public V1.FCVolumeSource.Builder mergeFrom(V1.FCVolumeSource other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.FCVolumeSource.Builder>
    • mergeFrom

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

      public com.google.protobuf.ProtocolStringList getTargetWWNsList()
       Optional: FC target worldwide names (WWNs)
       +optional
       
      repeated string targetWWNs = 1;
      Specified by:
      getTargetWWNsList in interface V1.FCVolumeSourceOrBuilder
    • getTargetWWNsCount

      public int getTargetWWNsCount()
       Optional: FC target worldwide names (WWNs)
       +optional
       
      repeated string targetWWNs = 1;
      Specified by:
      getTargetWWNsCount in interface V1.FCVolumeSourceOrBuilder
    • getTargetWWNs

      public String getTargetWWNs(int index)
       Optional: FC target worldwide names (WWNs)
       +optional
       
      repeated string targetWWNs = 1;
      Specified by:
      getTargetWWNs in interface V1.FCVolumeSourceOrBuilder
    • getTargetWWNsBytes

      public com.google.protobuf.ByteString getTargetWWNsBytes(int index)
       Optional: FC target worldwide names (WWNs)
       +optional
       
      repeated string targetWWNs = 1;
      Specified by:
      getTargetWWNsBytes in interface V1.FCVolumeSourceOrBuilder
    • setTargetWWNs

      public V1.FCVolumeSource.Builder setTargetWWNs(int index, String value)
       Optional: FC target worldwide names (WWNs)
       +optional
       
      repeated string targetWWNs = 1;
    • addTargetWWNs

      public V1.FCVolumeSource.Builder addTargetWWNs(String value)
       Optional: FC target worldwide names (WWNs)
       +optional
       
      repeated string targetWWNs = 1;
    • addAllTargetWWNs

      public V1.FCVolumeSource.Builder addAllTargetWWNs(Iterable<String> values)
       Optional: FC target worldwide names (WWNs)
       +optional
       
      repeated string targetWWNs = 1;
    • clearTargetWWNs

      public V1.FCVolumeSource.Builder clearTargetWWNs()
       Optional: FC target worldwide names (WWNs)
       +optional
       
      repeated string targetWWNs = 1;
    • addTargetWWNsBytes

      public V1.FCVolumeSource.Builder addTargetWWNsBytes(com.google.protobuf.ByteString value)
       Optional: FC target worldwide names (WWNs)
       +optional
       
      repeated string targetWWNs = 1;
    • hasLun

      public boolean hasLun()
       Optional: FC target lun number
       +optional
       
      optional int32 lun = 2;
      Specified by:
      hasLun in interface V1.FCVolumeSourceOrBuilder
    • getLun

      public int getLun()
       Optional: FC target lun number
       +optional
       
      optional int32 lun = 2;
      Specified by:
      getLun in interface V1.FCVolumeSourceOrBuilder
    • setLun

      public V1.FCVolumeSource.Builder setLun(int value)
       Optional: FC target lun number
       +optional
       
      optional int32 lun = 2;
    • clearLun

      public V1.FCVolumeSource.Builder clearLun()
       Optional: FC target lun number
       +optional
       
      optional int32 lun = 2;
    • hasFsType

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

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

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

      public V1.FCVolumeSource.Builder setFsType(String value)
       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;
    • clearFsType

      public V1.FCVolumeSource.Builder clearFsType()
       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;
    • setFsTypeBytes

      public V1.FCVolumeSource.Builder setFsTypeBytes(com.google.protobuf.ByteString value)
       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;
    • hasReadOnly

      public boolean hasReadOnly()
       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 V1.FCVolumeSourceOrBuilder
    • getReadOnly

      public boolean getReadOnly()
       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 V1.FCVolumeSourceOrBuilder
    • setReadOnly

      public V1.FCVolumeSource.Builder setReadOnly(boolean value)
       Optional: Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       +optional
       
      optional bool readOnly = 4;
    • clearReadOnly

      public V1.FCVolumeSource.Builder clearReadOnly()
       Optional: Defaults to false (read/write). ReadOnly here will force
       the ReadOnly setting in VolumeMounts.
       +optional
       
      optional bool readOnly = 4;
    • getWwidsList

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

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

      public String getWwids(int index)
       Optional: FC volume world wide identifiers (wwids)
       Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       +optional
       
      repeated string wwids = 5;
      Specified by:
      getWwids in interface V1.FCVolumeSourceOrBuilder
    • getWwidsBytes

      public com.google.protobuf.ByteString getWwidsBytes(int index)
       Optional: FC volume world wide identifiers (wwids)
       Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       +optional
       
      repeated string wwids = 5;
      Specified by:
      getWwidsBytes in interface V1.FCVolumeSourceOrBuilder
    • setWwids

      public V1.FCVolumeSource.Builder setWwids(int index, String value)
       Optional: FC volume world wide identifiers (wwids)
       Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       +optional
       
      repeated string wwids = 5;
    • addWwids

      public V1.FCVolumeSource.Builder addWwids(String value)
       Optional: FC volume world wide identifiers (wwids)
       Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       +optional
       
      repeated string wwids = 5;
    • addAllWwids

      public V1.FCVolumeSource.Builder addAllWwids(Iterable<String> values)
       Optional: FC volume world wide identifiers (wwids)
       Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       +optional
       
      repeated string wwids = 5;
    • clearWwids

      public V1.FCVolumeSource.Builder clearWwids()
       Optional: FC volume world wide identifiers (wwids)
       Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       +optional
       
      repeated string wwids = 5;
    • addWwidsBytes

      public V1.FCVolumeSource.Builder addWwidsBytes(com.google.protobuf.ByteString value)
       Optional: FC volume world wide identifiers (wwids)
       Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
       +optional
       
      repeated string wwids = 5;
    • setUnknownFields

      public final V1.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<V1.FCVolumeSource.Builder>
    • mergeUnknownFields

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