Class VolumeConfig.Builder (0.28.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.VolumeConfig.LunRange>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The machineIds to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport>
Returns
TypeDescription
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
NameDescription
valueVolumeConfig.LunRange
Returns
TypeDescription
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
NameDescription
builderForValueVolumeConfig.LunRange.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVolumeConfig.LunRange
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolumeConfig.LunRange.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The machineIds to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the machineIds to add.

Returns
TypeDescription
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
NameDescription
valueVolumeConfig.NfsExport
Returns
TypeDescription
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
NameDescription
builderForValueVolumeConfig.NfsExport.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVolumeConfig.NfsExport
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolumeConfig.NfsExport.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VolumeConfig.NfsExport.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VolumeConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VolumeConfig.Builder
Overrides

build()

public VolumeConfig build()
Returns
TypeDescription
VolumeConfig

buildPartial()

public VolumeConfig buildPartial()
Returns
TypeDescription
VolumeConfig

clear()

public VolumeConfig.Builder clear()
Returns
TypeDescription
VolumeConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VolumeConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VolumeConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public VolumeConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
VolumeConfig.Builder

This builder for chaining.

clearProtocol()

public VolumeConfig.Builder clearProtocol()

Volume protocol.

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

Returns
TypeDescription
VolumeConfig.Builder

This builder for chaining.

clearSizeGb()

public VolumeConfig.Builder clearSizeGb()

The requested size of this volume, in GB.

int32 size_gb = 6;

Returns
TypeDescription
VolumeConfig.Builder

This builder for chaining.

clearSnapshotsEnabled()

public VolumeConfig.Builder clearSnapshotsEnabled()

Whether snapshots should be enabled.

bool snapshots_enabled = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VolumeConfig.Builder

This builder for chaining.

clone()

public VolumeConfig.Builder clone()
Returns
TypeDescription
VolumeConfig.Builder
Overrides

getDefaultInstanceForType()

public VolumeConfig getDefaultInstanceForType()
Returns
TypeDescription
VolumeConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 2;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VolumePerformanceTier

The performanceTier.

getPerformanceTierValue()

public int getPerformanceTierValue()

Performance tier of the Volume. Default is SHARED.

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

Returns
TypeDescription
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
TypeDescription
VolumeConfig.Protocol

The protocol.

getProtocolValue()

public int getProtocolValue()

Volume protocol.

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

Returns
TypeDescription
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
TypeDescription
int

The sizeGb.

getSnapshotsEnabled()

public boolean getSnapshotsEnabled()

Whether snapshots should be enabled.

bool snapshots_enabled = 3;

Returns
TypeDescription
boolean

The snapshotsEnabled.

getType()

public VolumeConfig.Type getType()

The type of this Volume.

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

Returns
TypeDescription
VolumeConfig.Type

The type.

getTypeValue()

public int getTypeValue()

The type of this Volume.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for userNote.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VolumeConfig other)

public VolumeConfig.Builder mergeFrom(VolumeConfig other)
Parameter
NameDescription
otherVolumeConfig
Returns
TypeDescription
VolumeConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VolumeConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VolumeConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VolumeConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VolumeConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VolumeConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VolumeConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VolumeConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The gcpService to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gcpService to set.

Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
indexint
valueVolumeConfig.LunRange
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolumeConfig.LunRange.Builder
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The machineIds to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint
valueVolumeConfig.NfsExport
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolumeConfig.NfsExport.Builder
Returns
TypeDescription
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
NameDescription
valueVolumePerformanceTier

The performanceTier to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueVolumeConfig.Protocol

The protocol to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The sizeGb to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The snapshotsEnabled to set.

Returns
TypeDescription
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
NameDescription
valueVolumeConfig.Type

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
VolumeConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final VolumeConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The userNote to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for userNote to set.

Returns
TypeDescription
VolumeConfig.Builder

This builder for chaining.