public final class VolumeConfig extends GeneratedMessageV3 implements VolumeConfigOrBuilder
Configuration parameters for a new volume.
Protobuf type google.cloud.baremetalsolution.v2.VolumeConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int GCP_SERVICE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int LUN_RANGES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MACHINE_IDS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int NFS_EXPORTS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PERFORMANCE_TIER_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PROTOCOL_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SIZE_GB_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SNAPSHOTS_ENABLED_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int USER_NOTE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static VolumeConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static VolumeConfig.Builder newBuilder()
public static VolumeConfig.Builder newBuilder(VolumeConfig prototype)
public static VolumeConfig parseDelimitedFrom(InputStream input)
public static VolumeConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static VolumeConfig parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static VolumeConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static VolumeConfig parseFrom(ByteString data)
public static VolumeConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static VolumeConfig parseFrom(CodedInputStream input)
public static VolumeConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static VolumeConfig parseFrom(InputStream input)
public static VolumeConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static VolumeConfig parseFrom(ByteBuffer data)
public static VolumeConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<VolumeConfig> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public VolumeConfig getDefaultInstanceForType()
public String getGcpService()
Returns |
Type |
Description |
String |
The gcpService.
|
public ByteString getGcpServiceBytes()
Returns |
Type |
Description |
ByteString |
The bytes for gcpService.
|
A transient unique identifier to identify a volume within an
ProvisioningConfig request.
string id = 2;
Returns |
Type |
Description |
String |
The id.
|
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.
|
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
|
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 |
|
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;
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
|
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> |
|
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.
|
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.
|
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.
|
public ProtocolStringList getMachineIdsList()
Machine ids connected to this volume. Set only when protocol is
PROTOCOL_FC.
repeated string machine_ids = 8;
Output only. The name of the volume config.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
String |
The name.
|
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.
|
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
|
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 |
|
public List<VolumeConfig.NfsExport> getNfsExportsList()
NFS exports. Set only when protocol is PROTOCOL_NFS.
repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
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
|
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> |
|
public Parser<VolumeConfig> getParserForType()
Overrides
public VolumePerformanceTier getPerformanceTier()
Performance tier of the Volume.
Default is SHARED.
.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;
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.
|
public VolumeConfig.Protocol getProtocol()
Volume protocol.
.google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;
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.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
The requested size of this volume, in GB.
int32 size_gb = 6;
Returns |
Type |
Description |
int |
The sizeGb.
|
public boolean getSnapshotsEnabled()
Whether snapshots should be enabled.
bool snapshots_enabled = 3;
Returns |
Type |
Description |
boolean |
The snapshotsEnabled.
|
public VolumeConfig.Type getType()
The type of this Volume.
.google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;
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.
|
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.
|
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.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public VolumeConfig.Builder newBuilderForType()
protected VolumeConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public VolumeConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides