- 0.53.0 (latest)
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.8
- 0.2.1
- 0.1.1
public static final class Volume.Builder extends GeneratedMessageV3.Builder<Volume.Builder> implements VolumeOrBuilder
A storage volume.
Protobuf type google.cloud.baremetalsolution.v2.Volume
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Volume.BuilderImplements
VolumeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Volume.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Volume.Builder |
build()
public Volume build()
Type | Description |
Volume |
buildPartial()
public Volume buildPartial()
Type | Description |
Volume |
clear()
public Volume.Builder clear()
Type | Description |
Volume.Builder |
clearAutoGrownSizeGib()
public Volume.Builder clearAutoGrownSizeGib()
The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
int64 auto_grown_size_gib = 6;
Type | Description |
Volume.Builder | This builder for chaining. |
clearCurrentSizeGib()
public Volume.Builder clearCurrentSizeGib()
The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
int64 current_size_gib = 5;
Type | Description |
Volume.Builder | This builder for chaining. |
clearEmergencySizeGib()
public Volume.Builder clearEmergencySizeGib()
Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
int64 emergency_size_gib = 14;
Type | Description |
Volume.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Volume.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Volume.Builder |
clearId()
public Volume.Builder clearId()
An identifier for the Volume
, generated by the backend.
string id = 11;
Type | Description |
Volume.Builder | This builder for chaining. |
clearLabels()
public Volume.Builder clearLabels()
Type | Description |
Volume.Builder |
clearName()
public Volume.Builder clearName()
Output only. The resource name of this Volume
.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
Format:
projects/{project}/locations/{location}/volumes/{volume}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Volume.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Volume.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Volume.Builder |
clearPod()
public Volume.Builder clearPod()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
Volume.Builder | This builder for chaining. |
clearRemainingSpaceGib()
public Volume.Builder clearRemainingSpaceGib()
The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
int64 remaining_space_gib = 7;
Type | Description |
Volume.Builder | This builder for chaining. |
clearRequestedSizeGib()
public Volume.Builder clearRequestedSizeGib()
The requested size of this storage volume, in GiB.
int64 requested_size_gib = 4;
Type | Description |
Volume.Builder | This builder for chaining. |
clearSnapshotAutoDeleteBehavior()
public Volume.Builder clearSnapshotAutoDeleteBehavior()
The behavior to use when snapshot reserved space is full.
.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
Type | Description |
Volume.Builder | This builder for chaining. |
clearSnapshotEnabled()
public Volume.Builder clearSnapshotEnabled()
Whether snapshots are enabled.
bool snapshot_enabled = 13;
Type | Description |
Volume.Builder | This builder for chaining. |
clearSnapshotReservationDetail()
public Volume.Builder clearSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Type | Description |
Volume.Builder |
clearState()
public Volume.Builder clearState()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
Type | Description |
Volume.Builder | This builder for chaining. |
clearStorageType()
public Volume.Builder clearStorageType()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
Type | Description |
Volume.Builder | This builder for chaining. |
clone()
public Volume.Builder clone()
Type | Description |
Volume.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 12;
Name | Description |
key | String |
Type | Description |
boolean |
getAutoGrownSizeGib()
public long getAutoGrownSizeGib()
The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
int64 auto_grown_size_gib = 6;
Type | Description |
long | The autoGrownSizeGib. |
getCurrentSizeGib()
public long getCurrentSizeGib()
The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
int64 current_size_gib = 5;
Type | Description |
long | The currentSizeGib. |
getDefaultInstanceForType()
public Volume getDefaultInstanceForType()
Type | Description |
Volume |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEmergencySizeGib()
public long getEmergencySizeGib()
Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
int64 emergency_size_gib = 14;
Type | Description |
long | The emergencySizeGib. |
getId()
public String getId()
An identifier for the Volume
, generated by the backend.
string id = 11;
Type | Description |
String | The id. |
getIdBytes()
public ByteString getIdBytes()
An identifier for the Volume
, generated by the backend.
string id = 11;
Type | Description |
ByteString | The bytes for id. |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Labels as key value pairs.
map<string, string> labels = 12;
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 12;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 12;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 12;
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getName()
public String getName()
Output only. The resource name of this Volume
.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
Format:
projects/{project}/locations/{location}/volumes/{volume}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. The resource name of this Volume
.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
Format:
projects/{project}/locations/{location}/volumes/{volume}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ByteString | The bytes for name. |
getPod()
public String getPod()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
String | The pod. |
getPodBytes()
public ByteString getPodBytes()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
Type | Description |
ByteString | The bytes for pod. |
getRemainingSpaceGib()
public long getRemainingSpaceGib()
The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
int64 remaining_space_gib = 7;
Type | Description |
long | The remainingSpaceGib. |
getRequestedSizeGib()
public long getRequestedSizeGib()
The requested size of this storage volume, in GiB.
int64 requested_size_gib = 4;
Type | Description |
long | The requestedSizeGib. |
getSnapshotAutoDeleteBehavior()
public Volume.SnapshotAutoDeleteBehavior getSnapshotAutoDeleteBehavior()
The behavior to use when snapshot reserved space is full.
.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
Type | Description |
Volume.SnapshotAutoDeleteBehavior | The snapshotAutoDeleteBehavior. |
getSnapshotAutoDeleteBehaviorValue()
public int getSnapshotAutoDeleteBehaviorValue()
The behavior to use when snapshot reserved space is full.
.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
Type | Description |
int | The enum numeric value on the wire for snapshotAutoDeleteBehavior. |
getSnapshotEnabled()
public boolean getSnapshotEnabled()
Whether snapshots are enabled.
bool snapshot_enabled = 13;
Type | Description |
boolean | The snapshotEnabled. |
getSnapshotReservationDetail()
public Volume.SnapshotReservationDetail getSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Type | Description |
Volume.SnapshotReservationDetail | The snapshotReservationDetail. |
getSnapshotReservationDetailBuilder()
public Volume.SnapshotReservationDetail.Builder getSnapshotReservationDetailBuilder()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Type | Description |
Volume.SnapshotReservationDetail.Builder |
getSnapshotReservationDetailOrBuilder()
public Volume.SnapshotReservationDetailOrBuilder getSnapshotReservationDetailOrBuilder()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Type | Description |
Volume.SnapshotReservationDetailOrBuilder |
getState()
public Volume.State getState()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
Type | Description |
Volume.State | The state. |
getStateValue()
public int getStateValue()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
Type | Description |
int | The enum numeric value on the wire for state. |
getStorageType()
public Volume.StorageType getStorageType()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
Type | Description |
Volume.StorageType | The storageType. |
getStorageTypeValue()
public int getStorageTypeValue()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
Type | Description |
int | The enum numeric value on the wire for storageType. |
hasSnapshotReservationDetail()
public boolean hasSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Type | Description |
boolean | Whether the snapshotReservationDetail field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Volume other)
public Volume.Builder mergeFrom(Volume other)
Name | Description |
other | Volume |
Type | Description |
Volume.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Volume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Volume.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Volume.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Volume.Builder |
mergeSnapshotReservationDetail(Volume.SnapshotReservationDetail value)
public Volume.Builder mergeSnapshotReservationDetail(Volume.SnapshotReservationDetail value)
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Name | Description |
value | Volume.SnapshotReservationDetail |
Type | Description |
Volume.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Volume.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Volume.Builder |
putAllLabels(Map<String,String> values)
public Volume.Builder putAllLabels(Map<String,String> values)
Labels as key value pairs.
map<string, string> labels = 12;
Name | Description |
values | Map<String,String> |
Type | Description |
Volume.Builder |
putLabels(String key, String value)
public Volume.Builder putLabels(String key, String value)
Labels as key value pairs.
map<string, string> labels = 12;
Name | Description |
key | String |
value | String |
Type | Description |
Volume.Builder |
removeLabels(String key)
public Volume.Builder removeLabels(String key)
Labels as key value pairs.
map<string, string> labels = 12;
Name | Description |
key | String |
Type | Description |
Volume.Builder |
setAutoGrownSizeGib(long value)
public Volume.Builder setAutoGrownSizeGib(long value)
The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
int64 auto_grown_size_gib = 6;
Name | Description |
value | long The autoGrownSizeGib to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setCurrentSizeGib(long value)
public Volume.Builder setCurrentSizeGib(long value)
The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
int64 current_size_gib = 5;
Name | Description |
value | long The currentSizeGib to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setEmergencySizeGib(long value)
public Volume.Builder setEmergencySizeGib(long value)
Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
int64 emergency_size_gib = 14;
Name | Description |
value | long The emergencySizeGib to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Volume.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Volume.Builder |
setId(String value)
public Volume.Builder setId(String value)
An identifier for the Volume
, generated by the backend.
string id = 11;
Name | Description |
value | String The id to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setIdBytes(ByteString value)
public Volume.Builder setIdBytes(ByteString value)
An identifier for the Volume
, generated by the backend.
string id = 11;
Name | Description |
value | ByteString The bytes for id to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setName(String value)
public Volume.Builder setName(String value)
Output only. The resource name of this Volume
.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
Format:
projects/{project}/locations/{location}/volumes/{volume}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | String The name to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Volume.Builder setNameBytes(ByteString value)
Output only. The resource name of this Volume
.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
Format:
projects/{project}/locations/{location}/volumes/{volume}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setPod(String value)
public Volume.Builder setPod(String value)
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | String The pod to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setPodBytes(ByteString value)
public Volume.Builder setPodBytes(ByteString value)
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
Name | Description |
value | ByteString The bytes for pod to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setRemainingSpaceGib(long value)
public Volume.Builder setRemainingSpaceGib(long value)
The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
int64 remaining_space_gib = 7;
Name | Description |
value | long The remainingSpaceGib to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Volume.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Volume.Builder |
setRequestedSizeGib(long value)
public Volume.Builder setRequestedSizeGib(long value)
The requested size of this storage volume, in GiB.
int64 requested_size_gib = 4;
Name | Description |
value | long The requestedSizeGib to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setSnapshotAutoDeleteBehavior(Volume.SnapshotAutoDeleteBehavior value)
public Volume.Builder setSnapshotAutoDeleteBehavior(Volume.SnapshotAutoDeleteBehavior value)
The behavior to use when snapshot reserved space is full.
.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
Name | Description |
value | Volume.SnapshotAutoDeleteBehavior The snapshotAutoDeleteBehavior to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setSnapshotAutoDeleteBehaviorValue(int value)
public Volume.Builder setSnapshotAutoDeleteBehaviorValue(int value)
The behavior to use when snapshot reserved space is full.
.google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
Name | Description |
value | int The enum numeric value on the wire for snapshotAutoDeleteBehavior to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setSnapshotEnabled(boolean value)
public Volume.Builder setSnapshotEnabled(boolean value)
Whether snapshots are enabled.
bool snapshot_enabled = 13;
Name | Description |
value | boolean The snapshotEnabled to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setSnapshotReservationDetail(Volume.SnapshotReservationDetail value)
public Volume.Builder setSnapshotReservationDetail(Volume.SnapshotReservationDetail value)
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Name | Description |
value | Volume.SnapshotReservationDetail |
Type | Description |
Volume.Builder |
setSnapshotReservationDetail(Volume.SnapshotReservationDetail.Builder builderForValue)
public Volume.Builder setSnapshotReservationDetail(Volume.SnapshotReservationDetail.Builder builderForValue)
Details about snapshot space reservation and usage on the storage volume.
.google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
Name | Description |
builderForValue | Volume.SnapshotReservationDetail.Builder |
Type | Description |
Volume.Builder |
setState(Volume.State value)
public Volume.Builder setState(Volume.State value)
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
Name | Description |
value | Volume.State The state to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setStateValue(int value)
public Volume.Builder setStateValue(int value)
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setStorageType(Volume.StorageType value)
public Volume.Builder setStorageType(Volume.StorageType value)
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
Name | Description |
value | Volume.StorageType The storageType to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setStorageTypeValue(int value)
public Volume.Builder setStorageTypeValue(int value)
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
Name | Description |
value | int The enum numeric value on the wire for storageType to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Volume.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Volume.Builder |