Class Lun.Builder

  • All Implemented Interfaces:
    LunOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Lun

    public static final class Lun.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Lun.Builder>
    implements LunOrBuilder
     A storage volume logical unit number (LUN).
     
    Protobuf type google.cloud.baremetalsolution.v2.Lun
    • 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<Lun.Builder>
      • clear

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

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

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

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

        public Lun.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<Lun.Builder>
      • setField

        public Lun.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<Lun.Builder>
      • clearField

        public Lun.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<Lun.Builder>
      • clearOneof

        public Lun.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<Lun.Builder>
      • setRepeatedField

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

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

        public Lun.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<Lun.Builder>
      • isInitialized

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

        public Lun.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<Lun.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The name of the LUN.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface LunOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The name of the LUN.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface LunOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Lun.Builder setName​(String value)
         Output only. The name of the LUN.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Lun.Builder clearName()
         Output only. The name of the LUN.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Lun.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the LUN.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getId

        public String getId()
         An identifier for the LUN, generated by the backend.
         
        string id = 10;
        Specified by:
        getId in interface LunOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         An identifier for the LUN, generated by the backend.
         
        string id = 10;
        Specified by:
        getIdBytes in interface LunOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Lun.Builder setId​(String value)
         An identifier for the LUN, generated by the backend.
         
        string id = 10;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Lun.Builder clearId()
         An identifier for the LUN, generated by the backend.
         
        string id = 10;
        Returns:
        This builder for chaining.
      • setIdBytes

        public Lun.Builder setIdBytes​(com.google.protobuf.ByteString value)
         An identifier for the LUN, generated by the backend.
         
        string id = 10;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Lun.State state = 2;
        Specified by:
        getStateValue in interface LunOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Lun.Builder setStateValue​(int value)
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Lun.State state = 2;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Lun.State getState()
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Lun.State state = 2;
        Specified by:
        getState in interface LunOrBuilder
        Returns:
        The state.
      • setState

        public Lun.Builder setState​(Lun.State value)
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Lun.State state = 2;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Lun.Builder clearState()
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Lun.State state = 2;
        Returns:
        This builder for chaining.
      • getSizeGb

        public long getSizeGb()
         The size of this LUN, in gigabytes.
         
        int64 size_gb = 3;
        Specified by:
        getSizeGb in interface LunOrBuilder
        Returns:
        The sizeGb.
      • setSizeGb

        public Lun.Builder setSizeGb​(long value)
         The size of this LUN, in gigabytes.
         
        int64 size_gb = 3;
        Parameters:
        value - The sizeGb to set.
        Returns:
        This builder for chaining.
      • clearSizeGb

        public Lun.Builder clearSizeGb()
         The size of this LUN, in gigabytes.
         
        int64 size_gb = 3;
        Returns:
        This builder for chaining.
      • getMultiprotocolTypeValue

        public int getMultiprotocolTypeValue()
         The LUN multiprotocol type ensures the characteristics of the LUN are
         optimized for each operating system.
         
        .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4;
        Specified by:
        getMultiprotocolTypeValue in interface LunOrBuilder
        Returns:
        The enum numeric value on the wire for multiprotocolType.
      • setMultiprotocolTypeValue

        public Lun.Builder setMultiprotocolTypeValue​(int value)
         The LUN multiprotocol type ensures the characteristics of the LUN are
         optimized for each operating system.
         
        .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4;
        Parameters:
        value - The enum numeric value on the wire for multiprotocolType to set.
        Returns:
        This builder for chaining.
      • getMultiprotocolType

        public Lun.MultiprotocolType getMultiprotocolType()
         The LUN multiprotocol type ensures the characteristics of the LUN are
         optimized for each operating system.
         
        .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4;
        Specified by:
        getMultiprotocolType in interface LunOrBuilder
        Returns:
        The multiprotocolType.
      • setMultiprotocolType

        public Lun.Builder setMultiprotocolType​(Lun.MultiprotocolType value)
         The LUN multiprotocol type ensures the characteristics of the LUN are
         optimized for each operating system.
         
        .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4;
        Parameters:
        value - The multiprotocolType to set.
        Returns:
        This builder for chaining.
      • clearMultiprotocolType

        public Lun.Builder clearMultiprotocolType()
         The LUN multiprotocol type ensures the characteristics of the LUN are
         optimized for each operating system.
         
        .google.cloud.baremetalsolution.v2.Lun.MultiprotocolType multiprotocol_type = 4;
        Returns:
        This builder for chaining.
      • getStorageVolume

        public String getStorageVolume()
         Display the storage volume for this LUN.
         
        string storage_volume = 5 [(.google.api.resource_reference) = { ... }
        Specified by:
        getStorageVolume in interface LunOrBuilder
        Returns:
        The storageVolume.
      • getStorageVolumeBytes

        public com.google.protobuf.ByteString getStorageVolumeBytes()
         Display the storage volume for this LUN.
         
        string storage_volume = 5 [(.google.api.resource_reference) = { ... }
        Specified by:
        getStorageVolumeBytes in interface LunOrBuilder
        Returns:
        The bytes for storageVolume.
      • setStorageVolume

        public Lun.Builder setStorageVolume​(String value)
         Display the storage volume for this LUN.
         
        string storage_volume = 5 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The storageVolume to set.
        Returns:
        This builder for chaining.
      • clearStorageVolume

        public Lun.Builder clearStorageVolume()
         Display the storage volume for this LUN.
         
        string storage_volume = 5 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setStorageVolumeBytes

        public Lun.Builder setStorageVolumeBytes​(com.google.protobuf.ByteString value)
         Display the storage volume for this LUN.
         
        string storage_volume = 5 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for storageVolume to set.
        Returns:
        This builder for chaining.
      • getShareable

        public boolean getShareable()
         Display if this LUN can be shared between multiple physical servers.
         
        bool shareable = 6;
        Specified by:
        getShareable in interface LunOrBuilder
        Returns:
        The shareable.
      • setShareable

        public Lun.Builder setShareable​(boolean value)
         Display if this LUN can be shared between multiple physical servers.
         
        bool shareable = 6;
        Parameters:
        value - The shareable to set.
        Returns:
        This builder for chaining.
      • clearShareable

        public Lun.Builder clearShareable()
         Display if this LUN can be shared between multiple physical servers.
         
        bool shareable = 6;
        Returns:
        This builder for chaining.
      • getBootLun

        public boolean getBootLun()
         Display if this LUN is a boot LUN.
         
        bool boot_lun = 7;
        Specified by:
        getBootLun in interface LunOrBuilder
        Returns:
        The bootLun.
      • setBootLun

        public Lun.Builder setBootLun​(boolean value)
         Display if this LUN is a boot LUN.
         
        bool boot_lun = 7;
        Parameters:
        value - The bootLun to set.
        Returns:
        This builder for chaining.
      • clearBootLun

        public Lun.Builder clearBootLun()
         Display if this LUN is a boot LUN.
         
        bool boot_lun = 7;
        Returns:
        This builder for chaining.
      • getStorageTypeValue

        public int getStorageTypeValue()
         The storage type for this LUN.
         
        .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8;
        Specified by:
        getStorageTypeValue in interface LunOrBuilder
        Returns:
        The enum numeric value on the wire for storageType.
      • setStorageTypeValue

        public Lun.Builder setStorageTypeValue​(int value)
         The storage type for this LUN.
         
        .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8;
        Parameters:
        value - The enum numeric value on the wire for storageType to set.
        Returns:
        This builder for chaining.
      • getStorageType

        public Lun.StorageType getStorageType()
         The storage type for this LUN.
         
        .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8;
        Specified by:
        getStorageType in interface LunOrBuilder
        Returns:
        The storageType.
      • setStorageType

        public Lun.Builder setStorageType​(Lun.StorageType value)
         The storage type for this LUN.
         
        .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8;
        Parameters:
        value - The storageType to set.
        Returns:
        This builder for chaining.
      • clearStorageType

        public Lun.Builder clearStorageType()
         The storage type for this LUN.
         
        .google.cloud.baremetalsolution.v2.Lun.StorageType storage_type = 8;
        Returns:
        This builder for chaining.
      • getWwid

        public String getWwid()
         The WWID for this LUN.
         
        string wwid = 9;
        Specified by:
        getWwid in interface LunOrBuilder
        Returns:
        The wwid.
      • getWwidBytes

        public com.google.protobuf.ByteString getWwidBytes()
         The WWID for this LUN.
         
        string wwid = 9;
        Specified by:
        getWwidBytes in interface LunOrBuilder
        Returns:
        The bytes for wwid.
      • setWwid

        public Lun.Builder setWwid​(String value)
         The WWID for this LUN.
         
        string wwid = 9;
        Parameters:
        value - The wwid to set.
        Returns:
        This builder for chaining.
      • clearWwid

        public Lun.Builder clearWwid()
         The WWID for this LUN.
         
        string wwid = 9;
        Returns:
        This builder for chaining.
      • setWwidBytes

        public Lun.Builder setWwidBytes​(com.google.protobuf.ByteString value)
         The WWID for this LUN.
         
        string wwid = 9;
        Parameters:
        value - The bytes for wwid to set.
        Returns:
        This builder for chaining.
      • hasExpireTime

        public boolean hasExpireTime()
         Output only. Time after which LUN will be fully deleted.
         It is filled only for LUNs in COOL_OFF state.
         
        .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasExpireTime in interface LunOrBuilder
        Returns:
        Whether the expireTime field is set.
      • getExpireTime

        public com.google.protobuf.Timestamp getExpireTime()
         Output only. Time after which LUN will be fully deleted.
         It is filled only for LUNs in COOL_OFF state.
         
        .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExpireTime in interface LunOrBuilder
        Returns:
        The expireTime.
      • setExpireTime

        public Lun.Builder setExpireTime​(com.google.protobuf.Timestamp value)
         Output only. Time after which LUN will be fully deleted.
         It is filled only for LUNs in COOL_OFF state.
         
        .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setExpireTime

        public Lun.Builder setExpireTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Time after which LUN will be fully deleted.
         It is filled only for LUNs in COOL_OFF state.
         
        .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeExpireTime

        public Lun.Builder mergeExpireTime​(com.google.protobuf.Timestamp value)
         Output only. Time after which LUN will be fully deleted.
         It is filled only for LUNs in COOL_OFF state.
         
        .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearExpireTime

        public Lun.Builder clearExpireTime()
         Output only. Time after which LUN will be fully deleted.
         It is filled only for LUNs in COOL_OFF state.
         
        .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getExpireTimeBuilder

        public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
         Output only. Time after which LUN will be fully deleted.
         It is filled only for LUNs in COOL_OFF state.
         
        .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getExpireTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
         Output only. Time after which LUN will be fully deleted.
         It is filled only for LUNs in COOL_OFF state.
         
        .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExpireTimeOrBuilder in interface LunOrBuilder
      • getInstancesList

        public com.google.protobuf.ProtocolStringList getInstancesList()
         Output only. Instances this Lun is attached to.
         
        repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getInstancesList in interface LunOrBuilder
        Returns:
        A list containing the instances.
      • getInstancesCount

        public int getInstancesCount()
         Output only. Instances this Lun is attached to.
         
        repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getInstancesCount in interface LunOrBuilder
        Returns:
        The count of instances.
      • getInstances

        public String getInstances​(int index)
         Output only. Instances this Lun is attached to.
         
        repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getInstances in interface LunOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The instances at the given index.
      • getInstancesBytes

        public com.google.protobuf.ByteString getInstancesBytes​(int index)
         Output only. Instances this Lun is attached to.
         
        repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getInstancesBytes in interface LunOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the instances at the given index.
      • setInstances

        public Lun.Builder setInstances​(int index,
                                        String value)
         Output only. Instances this Lun is attached to.
         
        repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The instances to set.
        Returns:
        This builder for chaining.
      • addInstances

        public Lun.Builder addInstances​(String value)
         Output only. Instances this Lun is attached to.
         
        repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The instances to add.
        Returns:
        This builder for chaining.
      • addAllInstances

        public Lun.Builder addAllInstances​(Iterable<String> values)
         Output only. Instances this Lun is attached to.
         
        repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        values - The instances to add.
        Returns:
        This builder for chaining.
      • clearInstances

        public Lun.Builder clearInstances()
         Output only. Instances this Lun is attached to.
         
        repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • addInstancesBytes

        public Lun.Builder addInstancesBytes​(com.google.protobuf.ByteString value)
         Output only. Instances this Lun is attached to.
         
        repeated string instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes of the instances to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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