Class Volume.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
- com.google.cloud.baremetalsolution.v2.Volume.Builder
-
- All Implemented Interfaces:
VolumeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Volume
public static final class Volume.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder> implements VolumeOrBuilder
A storage volume.
Protobuf typegoogle.cloud.baremetalsolution.v2.Volume
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Volume.Builder
addAllInstances(Iterable<String> values)
Output only.Volume.Builder
addInstances(String value)
Output only.Volume.Builder
addInstancesBytes(com.google.protobuf.ByteString value)
Output only.Volume.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Volume
build()
Volume
buildPartial()
Volume.Builder
clear()
Volume.Builder
clearAttached()
Output only.Volume.Builder
clearAutoGrownSizeGib()
The size, in GiB, that this storage volume has expanded as a result of an auto grow policy.Volume.Builder
clearBootVolume()
Output only.Volume.Builder
clearCurrentSizeGib()
The current size of this storage volume, in GiB, including space reserved for snapshots.Volume.Builder
clearEmergencySizeGib()
Additional emergency size that was requested for this Volume, in GiB.Volume.Builder
clearExpireTime()
Output only.Volume.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Volume.Builder
clearId()
An identifier for the `Volume`, generated by the backend.Volume.Builder
clearInstances()
Output only.Volume.Builder
clearLabels()
Volume.Builder
clearMaxSizeGib()
Maximum size volume can be expanded to in case of evergency, in GiB.Volume.Builder
clearName()
Output only.Volume.Builder
clearNotes()
Input only.Volume.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Volume.Builder
clearOriginallyRequestedSizeGib()
Originally requested size, in GiB.Volume.Builder
clearPerformanceTier()
Immutable.Volume.Builder
clearPod()
Immutable.Volume.Builder
clearProtocol()
Output only.Volume.Builder
clearRemainingSpaceGib()
The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.Volume.Builder
clearRequestedSizeGib()
The requested size of this storage volume, in GiB.Volume.Builder
clearSnapshotAutoDeleteBehavior()
The behavior to use when snapshot reserved space is full.Volume.Builder
clearSnapshotEnabled()
Whether snapshots are enabled.Volume.Builder
clearSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.Volume.Builder
clearState()
The state of this storage volume.Volume.Builder
clearStorageType()
The storage type for this volume.Volume.Builder
clearWorkloadProfile()
The workload profile for the volume.Volume.Builder
clone()
boolean
containsLabels(String key)
Labels as key value pairs.boolean
getAttached()
Output only.long
getAutoGrownSizeGib()
The size, in GiB, that this storage volume has expanded as a result of an auto grow policy.boolean
getBootVolume()
Output only.long
getCurrentSizeGib()
The current size of this storage volume, in GiB, including space reserved for snapshots.Volume
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getEmergencySizeGib()
Additional emergency size that was requested for this Volume, in GiB.com.google.protobuf.Timestamp
getExpireTime()
Output only.com.google.protobuf.Timestamp.Builder
getExpireTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getExpireTimeOrBuilder()
Output only.String
getId()
An identifier for the `Volume`, generated by the backend.com.google.protobuf.ByteString
getIdBytes()
An identifier for the `Volume`, generated by the backend.String
getInstances(int index)
Output only.com.google.protobuf.ByteString
getInstancesBytes(int index)
Output only.int
getInstancesCount()
Output only.com.google.protobuf.ProtocolStringList
getInstancesList()
Output only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels as key value pairs.Map<String,String>
getLabelsMap()
Labels as key value pairs.String
getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.String
getLabelsOrThrow(String key)
Labels as key value pairs.long
getMaxSizeGib()
Maximum size volume can be expanded to in case of evergency, in GiB.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.String
getNotes()
Input only.com.google.protobuf.ByteString
getNotesBytes()
Input only.long
getOriginallyRequestedSizeGib()
Originally requested size, in GiB.VolumePerformanceTier
getPerformanceTier()
Immutable.int
getPerformanceTierValue()
Immutable.String
getPod()
Immutable.com.google.protobuf.ByteString
getPodBytes()
Immutable.Volume.Protocol
getProtocol()
Output only.int
getProtocolValue()
Output only.long
getRemainingSpaceGib()
The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.long
getRequestedSizeGib()
The requested size of this storage volume, in GiB.Volume.SnapshotAutoDeleteBehavior
getSnapshotAutoDeleteBehavior()
The behavior to use when snapshot reserved space is full.int
getSnapshotAutoDeleteBehaviorValue()
The behavior to use when snapshot reserved space is full.boolean
getSnapshotEnabled()
Whether snapshots are enabled.Volume.SnapshotReservationDetail
getSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.Volume.SnapshotReservationDetail.Builder
getSnapshotReservationDetailBuilder()
Details about snapshot space reservation and usage on the storage volume.Volume.SnapshotReservationDetailOrBuilder
getSnapshotReservationDetailOrBuilder()
Details about snapshot space reservation and usage on the storage volume.Volume.State
getState()
The state of this storage volume.int
getStateValue()
The state of this storage volume.Volume.StorageType
getStorageType()
The storage type for this volume.int
getStorageTypeValue()
The storage type for this volume.Volume.WorkloadProfile
getWorkloadProfile()
The workload profile for the volume.int
getWorkloadProfileValue()
The workload profile for the volume.boolean
hasExpireTime()
Output only.boolean
hasSnapshotReservationDetail()
Details about snapshot space reservation and usage on the storage volume.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
Volume.Builder
mergeExpireTime(com.google.protobuf.Timestamp value)
Output only.Volume.Builder
mergeFrom(Volume other)
Volume.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Volume.Builder
mergeFrom(com.google.protobuf.Message other)
Volume.Builder
mergeSnapshotReservationDetail(Volume.SnapshotReservationDetail value)
Details about snapshot space reservation and usage on the storage volume.Volume.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Volume.Builder
putAllLabels(Map<String,String> values)
Labels as key value pairs.Volume.Builder
putLabels(String key, String value)
Labels as key value pairs.Volume.Builder
removeLabels(String key)
Labels as key value pairs.Volume.Builder
setAttached(boolean value)
Output only.Volume.Builder
setAutoGrownSizeGib(long value)
The size, in GiB, that this storage volume has expanded as a result of an auto grow policy.Volume.Builder
setBootVolume(boolean value)
Output only.Volume.Builder
setCurrentSizeGib(long value)
The current size of this storage volume, in GiB, including space reserved for snapshots.Volume.Builder
setEmergencySizeGib(long value)
Additional emergency size that was requested for this Volume, in GiB.Volume.Builder
setExpireTime(com.google.protobuf.Timestamp value)
Output only.Volume.Builder
setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.Volume.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Volume.Builder
setId(String value)
An identifier for the `Volume`, generated by the backend.Volume.Builder
setIdBytes(com.google.protobuf.ByteString value)
An identifier for the `Volume`, generated by the backend.Volume.Builder
setInstances(int index, String value)
Output only.Volume.Builder
setMaxSizeGib(long value)
Maximum size volume can be expanded to in case of evergency, in GiB.Volume.Builder
setName(String value)
Output only.Volume.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.Volume.Builder
setNotes(String value)
Input only.Volume.Builder
setNotesBytes(com.google.protobuf.ByteString value)
Input only.Volume.Builder
setOriginallyRequestedSizeGib(long value)
Originally requested size, in GiB.Volume.Builder
setPerformanceTier(VolumePerformanceTier value)
Immutable.Volume.Builder
setPerformanceTierValue(int value)
Immutable.Volume.Builder
setPod(String value)
Immutable.Volume.Builder
setPodBytes(com.google.protobuf.ByteString value)
Immutable.Volume.Builder
setProtocol(Volume.Protocol value)
Output only.Volume.Builder
setProtocolValue(int value)
Output only.Volume.Builder
setRemainingSpaceGib(long value)
The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.Volume.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Volume.Builder
setRequestedSizeGib(long value)
The requested size of this storage volume, in GiB.Volume.Builder
setSnapshotAutoDeleteBehavior(Volume.SnapshotAutoDeleteBehavior value)
The behavior to use when snapshot reserved space is full.Volume.Builder
setSnapshotAutoDeleteBehaviorValue(int value)
The behavior to use when snapshot reserved space is full.Volume.Builder
setSnapshotEnabled(boolean value)
Whether snapshots are enabled.Volume.Builder
setSnapshotReservationDetail(Volume.SnapshotReservationDetail value)
Details about snapshot space reservation and usage on the storage volume.Volume.Builder
setSnapshotReservationDetail(Volume.SnapshotReservationDetail.Builder builderForValue)
Details about snapshot space reservation and usage on the storage volume.Volume.Builder
setState(Volume.State value)
The state of this storage volume.Volume.Builder
setStateValue(int value)
The state of this storage volume.Volume.Builder
setStorageType(Volume.StorageType value)
The storage type for this volume.Volume.Builder
setStorageTypeValue(int value)
The storage type for this volume.Volume.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Volume.Builder
setWorkloadProfile(Volume.WorkloadProfile value)
The workload profile for the volume.Volume.Builder
setWorkloadProfileValue(int value)
The workload profile for the volume.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
clear
public Volume.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
getDefaultInstanceForType
public Volume getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Volume build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Volume buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Volume.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
setField
public Volume.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
clearField
public Volume.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
clearOneof
public Volume.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
setRepeatedField
public Volume.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
addRepeatedField
public Volume.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
mergeFrom
public Volume.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Volume.Builder>
-
mergeFrom
public Volume.Builder mergeFrom(Volume other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
mergeFrom
public Volume.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Volume.Builder>
- Throws:
IOException
-
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];
- Specified by:
getName
in interfaceVolumeOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];
- Specified by:
getNameBytes
in interfaceVolumeOrBuilder
- Returns:
- The bytes for name.
-
setName
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];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
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];
- Returns:
- This builder for chaining.
-
setNameBytes
public Volume.Builder setNameBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getId
public String getId()
An identifier for the `Volume`, generated by the backend.
string id = 11;
- Specified by:
getId
in interfaceVolumeOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
An identifier for the `Volume`, generated by the backend.
string id = 11;
- Specified by:
getIdBytes
in interfaceVolumeOrBuilder
- Returns:
- The bytes for id.
-
setId
public Volume.Builder setId(String value)
An identifier for the `Volume`, generated by the backend.
string id = 11;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public Volume.Builder clearId()
An identifier for the `Volume`, generated by the backend.
string id = 11;
- Returns:
- This builder for chaining.
-
setIdBytes
public Volume.Builder setIdBytes(com.google.protobuf.ByteString value)
An identifier for the `Volume`, generated by the backend.
string id = 11;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getStorageTypeValue
public int getStorageTypeValue()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
- Specified by:
getStorageTypeValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for storageType.
-
setStorageTypeValue
public Volume.Builder setStorageTypeValue(int value)
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
- Parameters:
value
- The enum numeric value on the wire for storageType to set.- Returns:
- This builder for chaining.
-
getStorageType
public Volume.StorageType getStorageType()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
- Specified by:
getStorageType
in interfaceVolumeOrBuilder
- Returns:
- The storageType.
-
setStorageType
public Volume.Builder setStorageType(Volume.StorageType value)
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
- Parameters:
value
- The storageType to set.- Returns:
- This builder for chaining.
-
clearStorageType
public Volume.Builder clearStorageType()
The storage type for this volume.
.google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
- Specified by:
getStateValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public Volume.Builder setStateValue(int value)
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public Volume.State getState()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
- Specified by:
getState
in interfaceVolumeOrBuilder
- Returns:
- The state.
-
setState
public Volume.Builder setState(Volume.State value)
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public Volume.Builder clearState()
The state of this storage volume.
.google.cloud.baremetalsolution.v2.Volume.State state = 3;
- Returns:
- This builder for chaining.
-
getRequestedSizeGib
public long getRequestedSizeGib()
The requested size of this storage volume, in GiB.
int64 requested_size_gib = 4;
- Specified by:
getRequestedSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The requestedSizeGib.
-
setRequestedSizeGib
public Volume.Builder setRequestedSizeGib(long value)
The requested size of this storage volume, in GiB.
int64 requested_size_gib = 4;
- Parameters:
value
- The requestedSizeGib to set.- Returns:
- This builder for chaining.
-
clearRequestedSizeGib
public Volume.Builder clearRequestedSizeGib()
The requested size of this storage volume, in GiB.
int64 requested_size_gib = 4;
- Returns:
- This builder for chaining.
-
getOriginallyRequestedSizeGib
public long getOriginallyRequestedSizeGib()
Originally requested size, in GiB.
int64 originally_requested_size_gib = 16;
- Specified by:
getOriginallyRequestedSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The originallyRequestedSizeGib.
-
setOriginallyRequestedSizeGib
public Volume.Builder setOriginallyRequestedSizeGib(long value)
Originally requested size, in GiB.
int64 originally_requested_size_gib = 16;
- Parameters:
value
- The originallyRequestedSizeGib to set.- Returns:
- This builder for chaining.
-
clearOriginallyRequestedSizeGib
public Volume.Builder clearOriginallyRequestedSizeGib()
Originally requested size, in GiB.
int64 originally_requested_size_gib = 16;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getCurrentSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The currentSizeGib.
-
setCurrentSizeGib
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;
- Parameters:
value
- The currentSizeGib to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getEmergencySizeGib
in interfaceVolumeOrBuilder
- Returns:
- The emergencySizeGib.
-
setEmergencySizeGib
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;
- Parameters:
value
- The emergencySizeGib to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
getMaxSizeGib
public long getMaxSizeGib()
Maximum size volume can be expanded to in case of evergency, in GiB.
int64 max_size_gib = 17;
- Specified by:
getMaxSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The maxSizeGib.
-
setMaxSizeGib
public Volume.Builder setMaxSizeGib(long value)
Maximum size volume can be expanded to in case of evergency, in GiB.
int64 max_size_gib = 17;
- Parameters:
value
- The maxSizeGib to set.- Returns:
- This builder for chaining.
-
clearMaxSizeGib
public Volume.Builder clearMaxSizeGib()
Maximum size volume can be expanded to in case of evergency, in GiB.
int64 max_size_gib = 17;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getAutoGrownSizeGib
in interfaceVolumeOrBuilder
- Returns:
- The autoGrownSizeGib.
-
setAutoGrownSizeGib
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;
- Parameters:
value
- The autoGrownSizeGib to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getRemainingSpaceGib
in interfaceVolumeOrBuilder
- Returns:
- The remainingSpaceGib.
-
setRemainingSpaceGib
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;
- Parameters:
value
- The remainingSpaceGib to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasSnapshotReservationDetail
in interfaceVolumeOrBuilder
- Returns:
- Whether the snapshotReservationDetail field is set.
-
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;
- Specified by:
getSnapshotReservationDetail
in interfaceVolumeOrBuilder
- Returns:
- The snapshotReservationDetail.
-
setSnapshotReservationDetail
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;
-
setSnapshotReservationDetail
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;
-
mergeSnapshotReservationDetail
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;
-
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;
-
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;
-
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;
- Specified by:
getSnapshotReservationDetailOrBuilder
in interfaceVolumeOrBuilder
-
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;
- Specified by:
getSnapshotAutoDeleteBehaviorValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for snapshotAutoDeleteBehavior.
-
setSnapshotAutoDeleteBehaviorValue
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;
- Parameters:
value
- The enum numeric value on the wire for snapshotAutoDeleteBehavior to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getSnapshotAutoDeleteBehavior
in interfaceVolumeOrBuilder
- Returns:
- The snapshotAutoDeleteBehavior.
-
setSnapshotAutoDeleteBehavior
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;
- Parameters:
value
- The snapshotAutoDeleteBehavior to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:VolumeOrBuilder
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
getLabelsCount
in interfaceVolumeOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
containsLabels
in interfaceVolumeOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceVolumeOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
getLabelsMap
in interfaceVolumeOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
getLabelsOrDefault
in interfaceVolumeOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 12;
- Specified by:
getLabelsOrThrow
in interfaceVolumeOrBuilder
-
clearLabels
public Volume.Builder clearLabels()
-
removeLabels
public Volume.Builder removeLabels(String key)
Labels as key value pairs.
map<string, string> labels = 12;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Volume.Builder putLabels(String key, String value)
Labels as key value pairs.
map<string, string> labels = 12;
-
putAllLabels
public Volume.Builder putAllLabels(Map<String,String> values)
Labels as key value pairs.
map<string, string> labels = 12;
-
getSnapshotEnabled
public boolean getSnapshotEnabled()
Whether snapshots are enabled.
bool snapshot_enabled = 13;
- Specified by:
getSnapshotEnabled
in interfaceVolumeOrBuilder
- Returns:
- The snapshotEnabled.
-
setSnapshotEnabled
public Volume.Builder setSnapshotEnabled(boolean value)
Whether snapshots are enabled.
bool snapshot_enabled = 13;
- Parameters:
value
- The snapshotEnabled to set.- Returns:
- This builder for chaining.
-
clearSnapshotEnabled
public Volume.Builder clearSnapshotEnabled()
Whether snapshots are enabled.
bool snapshot_enabled = 13;
- Returns:
- This builder for chaining.
-
getPod
public String getPod()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getPod
in interfaceVolumeOrBuilder
- Returns:
- The pod.
-
getPodBytes
public com.google.protobuf.ByteString getPodBytes()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getPodBytes
in interfaceVolumeOrBuilder
- Returns:
- The bytes for pod.
-
setPod
public Volume.Builder setPod(String value)
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The pod to set.- Returns:
- This builder for chaining.
-
clearPod
public Volume.Builder clearPod()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- This builder for chaining.
-
setPodBytes
public Volume.Builder setPodBytes(com.google.protobuf.ByteString value)
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The bytes for pod to set.- Returns:
- This builder for chaining.
-
getProtocolValue
public int getProtocolValue()
Output only. Storage protocol for the Volume.
.google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProtocolValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for protocol.
-
setProtocolValue
public Volume.Builder setProtocolValue(int value)
Output only. Storage protocol for the Volume.
.google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for protocol to set.- Returns:
- This builder for chaining.
-
getProtocol
public Volume.Protocol getProtocol()
Output only. Storage protocol for the Volume.
.google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getProtocol
in interfaceVolumeOrBuilder
- Returns:
- The protocol.
-
setProtocol
public Volume.Builder setProtocol(Volume.Protocol value)
Output only. Storage protocol for the Volume.
.google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
public Volume.Builder clearProtocol()
Output only. Storage protocol for the Volume.
.google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getBootVolume
public boolean getBootVolume()
Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
bool boot_volume = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getBootVolume
in interfaceVolumeOrBuilder
- Returns:
- The bootVolume.
-
setBootVolume
public Volume.Builder setBootVolume(boolean value)
Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
bool boot_volume = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bootVolume to set.- Returns:
- This builder for chaining.
-
clearBootVolume
public Volume.Builder clearBootVolume()
Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
bool boot_volume = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getPerformanceTierValue
public int getPerformanceTierValue()
Immutable. Performance tier of the Volume. Default is SHARED.
.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getPerformanceTierValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for performanceTier.
-
setPerformanceTierValue
public Volume.Builder setPerformanceTierValue(int value)
Immutable. Performance tier of the Volume. Default is SHARED.
.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The enum numeric value on the wire for performanceTier to set.- Returns:
- This builder for chaining.
-
getPerformanceTier
public VolumePerformanceTier getPerformanceTier()
Immutable. Performance tier of the Volume. Default is SHARED.
.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getPerformanceTier
in interfaceVolumeOrBuilder
- Returns:
- The performanceTier.
-
setPerformanceTier
public Volume.Builder setPerformanceTier(VolumePerformanceTier value)
Immutable. Performance tier of the Volume. Default is SHARED.
.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The performanceTier to set.- Returns:
- This builder for chaining.
-
clearPerformanceTier
public Volume.Builder clearPerformanceTier()
Immutable. Performance tier of the Volume. Default is SHARED.
.google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- This builder for chaining.
-
getNotes
public String getNotes()
Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getNotes
in interfaceVolumeOrBuilder
- Returns:
- The notes.
-
getNotesBytes
public com.google.protobuf.ByteString getNotesBytes()
Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
- Specified by:
getNotesBytes
in interfaceVolumeOrBuilder
- Returns:
- The bytes for notes.
-
setNotes
public Volume.Builder setNotes(String value)
Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The notes to set.- Returns:
- This builder for chaining.
-
clearNotes
public Volume.Builder clearNotes()
Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
- Returns:
- This builder for chaining.
-
setNotesBytes
public Volume.Builder setNotesBytes(com.google.protobuf.ByteString value)
Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
- Parameters:
value
- The bytes for notes to set.- Returns:
- This builder for chaining.
-
getWorkloadProfileValue
public int getWorkloadProfileValue()
The workload profile for the volume.
.google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
- Specified by:
getWorkloadProfileValue
in interfaceVolumeOrBuilder
- Returns:
- The enum numeric value on the wire for workloadProfile.
-
setWorkloadProfileValue
public Volume.Builder setWorkloadProfileValue(int value)
The workload profile for the volume.
.google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
- Parameters:
value
- The enum numeric value on the wire for workloadProfile to set.- Returns:
- This builder for chaining.
-
getWorkloadProfile
public Volume.WorkloadProfile getWorkloadProfile()
The workload profile for the volume.
.google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
- Specified by:
getWorkloadProfile
in interfaceVolumeOrBuilder
- Returns:
- The workloadProfile.
-
setWorkloadProfile
public Volume.Builder setWorkloadProfile(Volume.WorkloadProfile value)
The workload profile for the volume.
.google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
- Parameters:
value
- The workloadProfile to set.- Returns:
- This builder for chaining.
-
clearWorkloadProfile
public Volume.Builder clearWorkloadProfile()
The workload profile for the volume.
.google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
- Returns:
- This builder for chaining.
-
hasExpireTime
public boolean hasExpireTime()
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasExpireTime
in interfaceVolumeOrBuilder
- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.Timestamp getExpireTime()
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getExpireTime
in interfaceVolumeOrBuilder
- Returns:
- The expireTime.
-
setExpireTime
public Volume.Builder setExpireTime(com.google.protobuf.Timestamp value)
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setExpireTime
public Volume.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeExpireTime
public Volume.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearExpireTime
public Volume.Builder clearExpireTime()
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getExpireTimeBuilder
public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
.google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getExpireTimeOrBuilder
in interfaceVolumeOrBuilder
-
getInstancesList
public com.google.protobuf.ProtocolStringList getInstancesList()
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getInstancesList
in interfaceVolumeOrBuilder
- Returns:
- A list containing the instances.
-
getInstancesCount
public int getInstancesCount()
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getInstancesCount
in interfaceVolumeOrBuilder
- Returns:
- The count of instances.
-
getInstances
public String getInstances(int index)
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getInstances
in interfaceVolumeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The instances at the given index.
-
getInstancesBytes
public com.google.protobuf.ByteString getInstancesBytes(int index)
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Specified by:
getInstancesBytes
in interfaceVolumeOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
setInstances
public Volume.Builder setInstances(int index, String value)
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Parameters:
index
- The index to set the value at.value
- The instances to set.- Returns:
- This builder for chaining.
-
addInstances
public Volume.Builder addInstances(String value)
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The instances to add.- Returns:
- This builder for chaining.
-
addAllInstances
public Volume.Builder addAllInstances(Iterable<String> values)
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Parameters:
values
- The instances to add.- Returns:
- This builder for chaining.
-
clearInstances
public Volume.Builder clearInstances()
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
addInstancesBytes
public Volume.Builder addInstancesBytes(com.google.protobuf.ByteString value)
Output only. Instances this Volume is attached to. This field is set only in Get requests.
repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes of the instances to add.- Returns:
- This builder for chaining.
-
getAttached
public boolean getAttached()
Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
bool attached = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getAttached
in interfaceVolumeOrBuilder
- Returns:
- The attached.
-
setAttached
public Volume.Builder setAttached(boolean value)
Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
bool attached = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The attached to set.- Returns:
- This builder for chaining.
-
clearAttached
public Volume.Builder clearAttached()
Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
bool attached = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Volume.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
mergeUnknownFields
public final Volume.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
-