- 0.51.0 (latest)
- 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. |
clearField(Descriptors.FieldDescriptor field)
public Volume.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
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 |
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. |
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 |
clearSnapshotSchedulePolicy()
public Volume.Builder clearSnapshotSchedulePolicy()
The name of the snapshot schedule policy in use for this volume, if any.
string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... }
Type | Description |
Volume.Builder | This builder for chaining. |
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 |
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 |
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. |
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. |
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 |
getSnapshotSchedulePolicy()
public String getSnapshotSchedulePolicy()
The name of the snapshot schedule policy in use for this volume, if any.
string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... }
Type | Description |
String | The snapshotSchedulePolicy. |
getSnapshotSchedulePolicyBytes()
public ByteString getSnapshotSchedulePolicyBytes()
The name of the snapshot schedule policy in use for this volume, if any.
string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for snapshotSchedulePolicy. |
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 |
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 |
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. |
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 |
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. |
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. |
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 |
setSnapshotSchedulePolicy(String value)
public Volume.Builder setSnapshotSchedulePolicy(String value)
The name of the snapshot schedule policy in use for this volume, if any.
string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... }
Name | Description |
value | String The snapshotSchedulePolicy to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
setSnapshotSchedulePolicyBytes(ByteString value)
public Volume.Builder setSnapshotSchedulePolicyBytes(ByteString value)
The name of the snapshot schedule policy in use for this volume, if any.
string snapshot_schedule_policy = 10 [(.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for snapshotSchedulePolicy to set. |
Type | Description |
Volume.Builder | This builder for chaining. |
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 |