Class VolumeConfig.Builder

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

    public static final class VolumeConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VolumeConfig.Builder>
    implements VolumeConfigOrBuilder
     Configuration parameters for a new volume.
     
    Protobuf type google.cloud.baremetalsolution.v2.VolumeConfig
    • 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<VolumeConfig.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public VolumeConfig.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The name of the volume config.
         
        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()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Specified by:
        getId in interface VolumeConfigOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Specified by:
        getIdBytes in interface VolumeConfigOrBuilder
        Returns:
        The bytes for id.
      • setId

        public VolumeConfig.Builder setId​(String value)
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public VolumeConfig.Builder clearId()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Returns:
        This builder for chaining.
      • setIdBytes

        public VolumeConfig.Builder setIdBytes​(com.google.protobuf.ByteString value)
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getSnapshotsEnabled

        public boolean getSnapshotsEnabled()
         Whether snapshots should be enabled.
         
        bool snapshots_enabled = 3;
        Specified by:
        getSnapshotsEnabled in interface VolumeConfigOrBuilder
        Returns:
        The snapshotsEnabled.
      • setSnapshotsEnabled

        public VolumeConfig.Builder setSnapshotsEnabled​(boolean value)
         Whether snapshots should be enabled.
         
        bool snapshots_enabled = 3;
        Parameters:
        value - The snapshotsEnabled to set.
        Returns:
        This builder for chaining.
      • clearSnapshotsEnabled

        public VolumeConfig.Builder clearSnapshotsEnabled()
         Whether snapshots should be enabled.
         
        bool snapshots_enabled = 3;
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         The type of this Volume.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;
        Specified by:
        getTypeValue in interface VolumeConfigOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public VolumeConfig.Builder setTypeValue​(int value)
         The type of this Volume.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public VolumeConfig.Builder setType​(VolumeConfig.Type value)
         The type of this Volume.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public VolumeConfig.Builder clearType()
         The type of this Volume.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;
        Returns:
        This builder for chaining.
      • getProtocolValue

        public int getProtocolValue()
         Volume protocol.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;
        Specified by:
        getProtocolValue in interface VolumeConfigOrBuilder
        Returns:
        The enum numeric value on the wire for protocol.
      • setProtocolValue

        public VolumeConfig.Builder setProtocolValue​(int value)
         Volume protocol.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;
        Parameters:
        value - The enum numeric value on the wire for protocol to set.
        Returns:
        This builder for chaining.
      • setProtocol

        public VolumeConfig.Builder setProtocol​(VolumeConfig.Protocol value)
         Volume protocol.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public VolumeConfig.Builder clearProtocol()
         Volume protocol.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;
        Returns:
        This builder for chaining.
      • getSizeGb

        public int getSizeGb()
         The requested size of this volume, in GB.
         
        int32 size_gb = 6;
        Specified by:
        getSizeGb in interface VolumeConfigOrBuilder
        Returns:
        The sizeGb.
      • setSizeGb

        public VolumeConfig.Builder setSizeGb​(int value)
         The requested size of this volume, in GB.
         
        int32 size_gb = 6;
        Parameters:
        value - The sizeGb to set.
        Returns:
        This builder for chaining.
      • clearSizeGb

        public VolumeConfig.Builder clearSizeGb()
         The requested size of this volume, in GB.
         
        int32 size_gb = 6;
        Returns:
        This builder for chaining.
      • getLunRangesCount

        public int getLunRangesCount()
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
        Specified by:
        getLunRangesCount in interface VolumeConfigOrBuilder
      • getLunRanges

        public VolumeConfig.LunRange getLunRanges​(int index)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
        Specified by:
        getLunRanges in interface VolumeConfigOrBuilder
      • setLunRanges

        public VolumeConfig.Builder setLunRanges​(int index,
                                                 VolumeConfig.LunRange value)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • setLunRanges

        public VolumeConfig.Builder setLunRanges​(int index,
                                                 VolumeConfig.LunRange.Builder builderForValue)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • addLunRanges

        public VolumeConfig.Builder addLunRanges​(VolumeConfig.LunRange value)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • addLunRanges

        public VolumeConfig.Builder addLunRanges​(int index,
                                                 VolumeConfig.LunRange value)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • addLunRanges

        public VolumeConfig.Builder addLunRanges​(VolumeConfig.LunRange.Builder builderForValue)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • addLunRanges

        public VolumeConfig.Builder addLunRanges​(int index,
                                                 VolumeConfig.LunRange.Builder builderForValue)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • addAllLunRanges

        public VolumeConfig.Builder addAllLunRanges​(Iterable<? extends VolumeConfig.LunRange> values)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • clearLunRanges

        public VolumeConfig.Builder clearLunRanges()
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • removeLunRanges

        public VolumeConfig.Builder removeLunRanges​(int index)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • getLunRangesBuilder

        public VolumeConfig.LunRange.Builder getLunRangesBuilder​(int index)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • addLunRangesBuilder

        public VolumeConfig.LunRange.Builder addLunRangesBuilder()
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • addLunRangesBuilder

        public VolumeConfig.LunRange.Builder addLunRangesBuilder​(int index)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • getLunRangesBuilderList

        public List<VolumeConfig.LunRange.Builder> getLunRangesBuilderList()
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
      • getMachineIdsList

        public com.google.protobuf.ProtocolStringList getMachineIdsList()
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Specified by:
        getMachineIdsList in interface VolumeConfigOrBuilder
        Returns:
        A list containing the machineIds.
      • getMachineIdsCount

        public int getMachineIdsCount()
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Specified by:
        getMachineIdsCount in interface VolumeConfigOrBuilder
        Returns:
        The count of machineIds.
      • getMachineIds

        public String getMachineIds​(int index)
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Specified by:
        getMachineIds in interface VolumeConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The machineIds at the given index.
      • getMachineIdsBytes

        public com.google.protobuf.ByteString getMachineIdsBytes​(int index)
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Specified by:
        getMachineIdsBytes in interface VolumeConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the machineIds at the given index.
      • setMachineIds

        public VolumeConfig.Builder setMachineIds​(int index,
                                                  String value)
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Parameters:
        index - The index to set the value at.
        value - The machineIds to set.
        Returns:
        This builder for chaining.
      • addMachineIds

        public VolumeConfig.Builder addMachineIds​(String value)
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Parameters:
        value - The machineIds to add.
        Returns:
        This builder for chaining.
      • addAllMachineIds

        public VolumeConfig.Builder addAllMachineIds​(Iterable<String> values)
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Parameters:
        values - The machineIds to add.
        Returns:
        This builder for chaining.
      • clearMachineIds

        public VolumeConfig.Builder clearMachineIds()
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Returns:
        This builder for chaining.
      • addMachineIdsBytes

        public VolumeConfig.Builder addMachineIdsBytes​(com.google.protobuf.ByteString value)
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Parameters:
        value - The bytes of the machineIds to add.
        Returns:
        This builder for chaining.
      • getNfsExportsCount

        public int getNfsExportsCount()
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
        Specified by:
        getNfsExportsCount in interface VolumeConfigOrBuilder
      • setNfsExports

        public VolumeConfig.Builder setNfsExports​(int index,
                                                  VolumeConfig.NfsExport value)
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • setNfsExports

        public VolumeConfig.Builder setNfsExports​(int index,
                                                  VolumeConfig.NfsExport.Builder builderForValue)
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • addNfsExports

        public VolumeConfig.Builder addNfsExports​(VolumeConfig.NfsExport value)
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • addNfsExports

        public VolumeConfig.Builder addNfsExports​(int index,
                                                  VolumeConfig.NfsExport value)
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • addNfsExports

        public VolumeConfig.Builder addNfsExports​(int index,
                                                  VolumeConfig.NfsExport.Builder builderForValue)
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • addAllNfsExports

        public VolumeConfig.Builder addAllNfsExports​(Iterable<? extends VolumeConfig.NfsExport> values)
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • clearNfsExports

        public VolumeConfig.Builder clearNfsExports()
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • removeNfsExports

        public VolumeConfig.Builder removeNfsExports​(int index)
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • getNfsExportsBuilder

        public VolumeConfig.NfsExport.Builder getNfsExportsBuilder​(int index)
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • addNfsExportsBuilder

        public VolumeConfig.NfsExport.Builder addNfsExportsBuilder()
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • addNfsExportsBuilder

        public VolumeConfig.NfsExport.Builder addNfsExportsBuilder​(int index)
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • getNfsExportsBuilderList

        public List<VolumeConfig.NfsExport.Builder> getNfsExportsBuilderList()
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
      • getUserNote

        public String getUserNote()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 10;
        Specified by:
        getUserNote in interface VolumeConfigOrBuilder
        Returns:
        The userNote.
      • getUserNoteBytes

        public com.google.protobuf.ByteString getUserNoteBytes()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 10;
        Specified by:
        getUserNoteBytes in interface VolumeConfigOrBuilder
        Returns:
        The bytes for userNote.
      • setUserNote

        public VolumeConfig.Builder setUserNote​(String value)
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 10;
        Parameters:
        value - The userNote to set.
        Returns:
        This builder for chaining.
      • clearUserNote

        public VolumeConfig.Builder clearUserNote()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 10;
        Returns:
        This builder for chaining.
      • setUserNoteBytes

        public VolumeConfig.Builder setUserNoteBytes​(com.google.protobuf.ByteString value)
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 10;
        Parameters:
        value - The bytes for userNote to set.
        Returns:
        This builder for chaining.
      • getGcpService

        public String getGcpService()
         The GCP service of the storage volume. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 11;
        Specified by:
        getGcpService in interface VolumeConfigOrBuilder
        Returns:
        The gcpService.
      • getGcpServiceBytes

        public com.google.protobuf.ByteString getGcpServiceBytes()
         The GCP service of the storage volume. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 11;
        Specified by:
        getGcpServiceBytes in interface VolumeConfigOrBuilder
        Returns:
        The bytes for gcpService.
      • setGcpService

        public VolumeConfig.Builder setGcpService​(String value)
         The GCP service of the storage volume. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 11;
        Parameters:
        value - The gcpService to set.
        Returns:
        This builder for chaining.
      • clearGcpService

        public VolumeConfig.Builder clearGcpService()
         The GCP service of the storage volume. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 11;
        Returns:
        This builder for chaining.
      • setGcpServiceBytes

        public VolumeConfig.Builder setGcpServiceBytes​(com.google.protobuf.ByteString value)
         The GCP service of the storage volume. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 11;
        Parameters:
        value - The bytes for gcpService to set.
        Returns:
        This builder for chaining.
      • getPerformanceTierValue

        public int getPerformanceTierValue()
         Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;
        Specified by:
        getPerformanceTierValue in interface VolumeConfigOrBuilder
        Returns:
        The enum numeric value on the wire for performanceTier.
      • setPerformanceTierValue

        public VolumeConfig.Builder setPerformanceTierValue​(int value)
         Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;
        Parameters:
        value - The enum numeric value on the wire for performanceTier to set.
        Returns:
        This builder for chaining.
      • getPerformanceTier

        public VolumePerformanceTier getPerformanceTier()
         Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;
        Specified by:
        getPerformanceTier in interface VolumeConfigOrBuilder
        Returns:
        The performanceTier.
      • setPerformanceTier

        public VolumeConfig.Builder setPerformanceTier​(VolumePerformanceTier value)
         Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;
        Parameters:
        value - The performanceTier to set.
        Returns:
        This builder for chaining.
      • clearPerformanceTier

        public VolumeConfig.Builder clearPerformanceTier()
         Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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