Class VolumeConfig (0.34.0)

public final class VolumeConfig extends GeneratedMessageV3 implements VolumeConfigOrBuilder

Configuration parameters for a new volume.

Protobuf type google.cloud.baremetalsolution.v2.VolumeConfig

Static Fields

GCP_SERVICE_FIELD_NUMBER

public static final int GCP_SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

LUN_RANGES_FIELD_NUMBER

public static final int LUN_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_IDS_FIELD_NUMBER

public static final int MACHINE_IDS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NFS_EXPORTS_FIELD_NUMBER

public static final int NFS_EXPORTS_FIELD_NUMBER
Field Value
TypeDescription
int

PERFORMANCE_TIER_FIELD_NUMBER

public static final int PERFORMANCE_TIER_FIELD_NUMBER
Field Value
TypeDescription
int

PROTOCOL_FIELD_NUMBER

public static final int PROTOCOL_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_GB_FIELD_NUMBER

public static final int SIZE_GB_FIELD_NUMBER
Field Value
TypeDescription
int

SNAPSHOTS_ENABLED_FIELD_NUMBER

public static final int SNAPSHOTS_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

USER_NOTE_FIELD_NUMBER

public static final int USER_NOTE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VolumeConfig getDefaultInstance()
Returns
TypeDescription
VolumeConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static VolumeConfig.Builder newBuilder()
Returns
TypeDescription
VolumeConfig.Builder

newBuilder(VolumeConfig prototype)

public static VolumeConfig.Builder newBuilder(VolumeConfig prototype)
Parameter
NameDescription
prototypeVolumeConfig
Returns
TypeDescription
VolumeConfig.Builder

parseDelimitedFrom(InputStream input)

public static VolumeConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VolumeConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VolumeConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VolumeConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VolumeConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VolumeConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VolumeConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VolumeConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VolumeConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VolumeConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VolumeConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VolumeConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VolumeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VolumeConfig> parser()
Returns
TypeDescription
Parser<VolumeConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public VolumeConfig getDefaultInstanceForType()
Returns
TypeDescription
VolumeConfig

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

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

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>

getParserForType()

public Parser<VolumeConfig> getParserForType()
Returns
TypeDescription
Parser<VolumeConfig>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VolumeConfig.Builder newBuilderForType()
Returns
TypeDescription
VolumeConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VolumeConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VolumeConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VolumeConfig.Builder toBuilder()
Returns
TypeDescription
VolumeConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException