Class VolumeConfig.Builder (0.42.0)

public static final class VolumeConfig.Builder extends GeneratedMessageV3.Builder<VolumeConfig.Builder> implements VolumeConfigOrBuilder

Configuration parameters for a new volume.

Protobuf type google.cloud.baremetalsolution.v2.VolumeConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllLunRanges(Iterable<? extends VolumeConfig.LunRange> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.VolumeConfig.LunRange>
Returns
Type Description
VolumeConfig.Builder

addAllMachineIds(Iterable<String> values)

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;

Parameter
Name Description
values Iterable<String>

The machineIds to add.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

addAllNfsExports(Iterable<? extends VolumeConfig.NfsExport> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport>
Returns
Type Description
VolumeConfig.Builder

addLunRanges(VolumeConfig.LunRange value)

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;

Parameter
Name Description
value VolumeConfig.LunRange
Returns
Type Description
VolumeConfig.Builder

addLunRanges(VolumeConfig.LunRange.Builder builderForValue)

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;

Parameter
Name Description
builderForValue VolumeConfig.LunRange.Builder
Returns
Type Description
VolumeConfig.Builder

addLunRanges(int index, VolumeConfig.LunRange value)

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;

Parameters
Name Description
index int
value VolumeConfig.LunRange
Returns
Type Description
VolumeConfig.Builder

addLunRanges(int index, VolumeConfig.LunRange.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue VolumeConfig.LunRange.Builder
Returns
Type Description
VolumeConfig.Builder

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;

Returns
Type Description
VolumeConfig.LunRange.Builder

addLunRangesBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.LunRange.Builder

addMachineIds(String value)

public VolumeConfig.Builder addMachineIds(String value)

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

repeated string machine_ids = 8;

Parameter
Name Description
value String

The machineIds to add.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

addMachineIdsBytes(ByteString value)

public VolumeConfig.Builder addMachineIdsBytes(ByteString value)

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

repeated string machine_ids = 8;

Parameter
Name Description
value ByteString

The bytes of the machineIds to add.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

addNfsExports(VolumeConfig.NfsExport value)

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;

Parameter
Name Description
value VolumeConfig.NfsExport
Returns
Type Description
VolumeConfig.Builder

addNfsExports(VolumeConfig.NfsExport.Builder builderForValue)

public VolumeConfig.Builder addNfsExports(VolumeConfig.NfsExport.Builder builderForValue)

NFS exports. Set only when protocol is PROTOCOL_NFS.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;

Parameter
Name Description
builderForValue VolumeConfig.NfsExport.Builder
Returns
Type Description
VolumeConfig.Builder

addNfsExports(int index, VolumeConfig.NfsExport value)

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;

Parameters
Name Description
index int
value VolumeConfig.NfsExport
Returns
Type Description
VolumeConfig.Builder

addNfsExports(int index, VolumeConfig.NfsExport.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue VolumeConfig.NfsExport.Builder
Returns
Type Description
VolumeConfig.Builder

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;

Returns
Type Description
VolumeConfig.NfsExport.Builder

addNfsExportsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.NfsExport.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VolumeConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VolumeConfig.Builder
Overrides

build()

public VolumeConfig build()
Returns
Type Description
VolumeConfig

buildPartial()

public VolumeConfig buildPartial()
Returns
Type Description
VolumeConfig

clear()

public VolumeConfig.Builder clear()
Returns
Type Description
VolumeConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VolumeConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VolumeConfig.Builder
Overrides

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
Type Description
VolumeConfig.Builder

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
Type Description
VolumeConfig.Builder

This builder for chaining.

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;

Returns
Type Description
VolumeConfig.Builder

clearMachineIds()

public VolumeConfig.Builder clearMachineIds()

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

repeated string machine_ids = 8;

Returns
Type Description
VolumeConfig.Builder

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
Type Description
VolumeConfig.Builder

This builder for chaining.

clearNfsExports()

public VolumeConfig.Builder clearNfsExports()

NFS exports. Set only when protocol is PROTOCOL_NFS.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;

Returns
Type Description
VolumeConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public VolumeConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VolumeConfig.Builder
Overrides

clearPerformanceTier()

public VolumeConfig.Builder clearPerformanceTier()

Performance tier of the Volume. Default is SHARED.

.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

clearProtocol()

public VolumeConfig.Builder clearProtocol()

Volume protocol.

.google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

clearSizeGb()

public VolumeConfig.Builder clearSizeGb()

The requested size of this volume, in GB.

int32 size_gb = 6;

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

clearSnapshotsEnabled()

public VolumeConfig.Builder clearSnapshotsEnabled()

Whether snapshots should be enabled.

bool snapshots_enabled = 3;

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

clearType()

public VolumeConfig.Builder clearType()

The type of this Volume.

.google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;

Returns
Type Description
VolumeConfig.Builder

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
Type Description
VolumeConfig.Builder

This builder for chaining.

clone()

public VolumeConfig.Builder clone()
Returns
Type Description
VolumeConfig.Builder
Overrides

getDefaultInstanceForType()

public VolumeConfig getDefaultInstanceForType()
Returns
Type Description
VolumeConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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;

Returns
Type Description
String

The gcpService.

getGcpServiceBytes()

public 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;

Returns
Type Description
ByteString

The bytes for gcpService.

getId()

public String getId()

A transient unique identifier to identify a volume within an ProvisioningConfig request.

string id = 2;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

A transient unique identifier to identify a volume within an ProvisioningConfig request.

string id = 2;

Returns
Type Description
ByteString

The bytes for id.

getLunRanges(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.LunRange

getLunRangesBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.LunRange.Builder

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
int

getLunRangesList()

public List<VolumeConfig.LunRange> getLunRangesList()

LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;

Returns
Type Description
List<LunRange>

getLunRangesOrBuilder(int index)

public VolumeConfig.LunRangeOrBuilder getLunRangesOrBuilder(int index)

LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.LunRangeOrBuilder

getLunRangesOrBuilderList()

public List<? extends VolumeConfig.LunRangeOrBuilder> getLunRangesOrBuilderList()

LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.VolumeConfig.LunRangeOrBuilder>

getMachineIds(int index)

public String getMachineIds(int index)

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

repeated string machine_ids = 8;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The machineIds at the given index.

getMachineIdsBytes(int index)

public ByteString getMachineIdsBytes(int index)

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

repeated string machine_ids = 8;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the machineIds at the given index.

getMachineIdsCount()

public int getMachineIdsCount()

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

repeated string machine_ids = 8;

Returns
Type Description
int

The count of machineIds.

getMachineIdsList()

public ProtocolStringList getMachineIdsList()

Machine ids connected to this volume. Set only when protocol is PROTOCOL_FC.

repeated string machine_ids = 8;

Returns
Type Description
ProtocolStringList

A list containing the machineIds.

getName()

public String getName()

Output only. The name of the volume config.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the volume config.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getNfsExports(int index)

public VolumeConfig.NfsExport getNfsExports(int index)

NFS exports. Set only when protocol is PROTOCOL_NFS.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.NfsExport

getNfsExportsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.NfsExport.Builder

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;

Returns
Type Description
List<Builder>

getNfsExportsCount()

public int getNfsExportsCount()

NFS exports. Set only when protocol is PROTOCOL_NFS.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;

Returns
Type Description
int

getNfsExportsList()

public List<VolumeConfig.NfsExport> getNfsExportsList()

NFS exports. Set only when protocol is PROTOCOL_NFS.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;

Returns
Type Description
List<NfsExport>

getNfsExportsOrBuilder(int index)

public VolumeConfig.NfsExportOrBuilder getNfsExportsOrBuilder(int index)

NFS exports. Set only when protocol is PROTOCOL_NFS.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.NfsExportOrBuilder

getNfsExportsOrBuilderList()

public List<? extends VolumeConfig.NfsExportOrBuilder> getNfsExportsOrBuilderList()

NFS exports. Set only when protocol is PROTOCOL_NFS.

repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.VolumeConfig.NfsExportOrBuilder>

getPerformanceTier()

public VolumePerformanceTier getPerformanceTier()

Performance tier of the Volume. Default is SHARED.

.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;

Returns
Type Description
VolumePerformanceTier

The performanceTier.

getPerformanceTierValue()

public int getPerformanceTierValue()

Performance tier of the Volume. Default is SHARED.

.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;

Returns
Type Description
int

The enum numeric value on the wire for performanceTier.

getProtocol()

public VolumeConfig.Protocol getProtocol()

Volume protocol.

.google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;

Returns
Type Description
VolumeConfig.Protocol

The protocol.

getProtocolValue()

public int getProtocolValue()

Volume protocol.

.google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;

Returns
Type Description
int

The enum numeric value on the wire for protocol.

getSizeGb()

public int getSizeGb()

The requested size of this volume, in GB.

int32 size_gb = 6;

Returns
Type Description
int

The sizeGb.

getSnapshotsEnabled()

public boolean getSnapshotsEnabled()

Whether snapshots should be enabled.

bool snapshots_enabled = 3;

Returns
Type Description
boolean

The snapshotsEnabled.

getType()

public VolumeConfig.Type getType()

The type of this Volume.

.google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;

Returns
Type Description
VolumeConfig.Type

The type.

getTypeValue()

public int getTypeValue()

The type of this Volume.

.google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;

Returns
Type Description
int

The enum numeric value on the wire for type.

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;

Returns
Type Description
String

The userNote.

getUserNoteBytes()

public ByteString getUserNoteBytes()

User note field, it can be used by customers to add additional information for the BMS Ops team .

string user_note = 10;

Returns
Type Description
ByteString

The bytes for userNote.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VolumeConfig other)

public VolumeConfig.Builder mergeFrom(VolumeConfig other)
Parameter
Name Description
other VolumeConfig
Returns
Type Description
VolumeConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VolumeConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VolumeConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VolumeConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VolumeConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VolumeConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VolumeConfig.Builder
Overrides

removeLunRanges(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.Builder

removeNfsExports(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
VolumeConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VolumeConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VolumeConfig.Builder
Overrides

setGcpService(String value)

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;

Parameter
Name Description
value String

The gcpService to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setGcpServiceBytes(ByteString value)

public VolumeConfig.Builder setGcpServiceBytes(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;

Parameter
Name Description
value ByteString

The bytes for gcpService to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setId(String value)

public VolumeConfig.Builder setId(String value)

A transient unique identifier to identify a volume within an ProvisioningConfig request.

string id = 2;

Parameter
Name Description
value String

The id to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setIdBytes(ByteString value)

public VolumeConfig.Builder setIdBytes(ByteString value)

A transient unique identifier to identify a volume within an ProvisioningConfig request.

string id = 2;

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setLunRanges(int index, VolumeConfig.LunRange value)

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;

Parameters
Name Description
index int
value VolumeConfig.LunRange
Returns
Type Description
VolumeConfig.Builder

setLunRanges(int index, VolumeConfig.LunRange.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue VolumeConfig.LunRange.Builder
Returns
Type Description
VolumeConfig.Builder

setMachineIds(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The machineIds to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setName(String value)

public VolumeConfig.Builder setName(String value)

Output only. The name of the volume config.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VolumeConfig.Builder setNameBytes(ByteString value)

Output only. The name of the volume config.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setNfsExports(int index, VolumeConfig.NfsExport value)

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;

Parameters
Name Description
index int
value VolumeConfig.NfsExport
Returns
Type Description
VolumeConfig.Builder

setNfsExports(int index, VolumeConfig.NfsExport.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue VolumeConfig.NfsExport.Builder
Returns
Type Description
VolumeConfig.Builder

setPerformanceTier(VolumePerformanceTier value)

public VolumeConfig.Builder setPerformanceTier(VolumePerformanceTier value)

Performance tier of the Volume. Default is SHARED.

.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;

Parameter
Name Description
value VolumePerformanceTier

The performanceTier to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setPerformanceTierValue(int value)

public VolumeConfig.Builder setPerformanceTierValue(int value)

Performance tier of the Volume. Default is SHARED.

.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;

Parameter
Name Description
value int

The enum numeric value on the wire for performanceTier to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setProtocol(VolumeConfig.Protocol value)

public VolumeConfig.Builder setProtocol(VolumeConfig.Protocol value)

Volume protocol.

.google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;

Parameter
Name Description
value VolumeConfig.Protocol

The protocol to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setProtocolValue(int value)

public VolumeConfig.Builder setProtocolValue(int value)

Volume protocol.

.google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for protocol to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VolumeConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VolumeConfig.Builder
Overrides

setSizeGb(int value)

public VolumeConfig.Builder setSizeGb(int value)

The requested size of this volume, in GB.

int32 size_gb = 6;

Parameter
Name Description
value int

The sizeGb to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setSnapshotsEnabled(boolean value)

public VolumeConfig.Builder setSnapshotsEnabled(boolean value)

Whether snapshots should be enabled.

bool snapshots_enabled = 3;

Parameter
Name Description
value boolean

The snapshotsEnabled to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setType(VolumeConfig.Type value)

public VolumeConfig.Builder setType(VolumeConfig.Type value)

The type of this Volume.

.google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;

Parameter
Name Description
value VolumeConfig.Type

The type to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setTypeValue(int value)

public VolumeConfig.Builder setTypeValue(int value)

The type of this Volume.

.google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VolumeConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VolumeConfig.Builder
Overrides

setUserNote(String value)

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;

Parameter
Name Description
value String

The userNote to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.

setUserNoteBytes(ByteString value)

public VolumeConfig.Builder setUserNoteBytes(ByteString value)

User note field, it can be used by customers to add additional information for the BMS Ops team .

string user_note = 10;

Parameter
Name Description
value ByteString

The bytes for userNote to set.

Returns
Type Description
VolumeConfig.Builder

This builder for chaining.