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.BuilderaddAllInstances(Iterable<String> values)Output only.Volume.BuilderaddInstances(String value)Output only.Volume.BuilderaddInstancesBytes(com.google.protobuf.ByteString value)Output only.Volume.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Volumebuild()VolumebuildPartial()Volume.Builderclear()Volume.BuilderclearAttached()Output only.Volume.BuilderclearAutoGrownSizeGib()The size, in GiB, that this storage volume has expanded as a result of an auto grow policy.Volume.BuilderclearBootVolume()Output only.Volume.BuilderclearCurrentSizeGib()The current size of this storage volume, in GiB, including space reserved for snapshots.Volume.BuilderclearEmergencySizeGib()Additional emergency size that was requested for this Volume, in GiB.Volume.BuilderclearExpireTime()Output only.Volume.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Volume.BuilderclearId()An identifier for the `Volume`, generated by the backend.Volume.BuilderclearInstances()Output only.Volume.BuilderclearLabels()Volume.BuilderclearMaxSizeGib()Maximum size volume can be expanded to in case of evergency, in GiB.Volume.BuilderclearName()Output only.Volume.BuilderclearNotes()Input only.Volume.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Volume.BuilderclearOriginallyRequestedSizeGib()Originally requested size, in GiB.Volume.BuilderclearPerformanceTier()Immutable.Volume.BuilderclearPod()Immutable.Volume.BuilderclearProtocol()Output only.Volume.BuilderclearRemainingSpaceGib()The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.Volume.BuilderclearRequestedSizeGib()The requested size of this storage volume, in GiB.Volume.BuilderclearSnapshotAutoDeleteBehavior()The behavior to use when snapshot reserved space is full.Volume.BuilderclearSnapshotEnabled()Whether snapshots are enabled.Volume.BuilderclearSnapshotReservationDetail()Details about snapshot space reservation and usage on the storage volume.Volume.BuilderclearState()The state of this storage volume.Volume.BuilderclearStorageType()The storage type for this volume.Volume.BuilderclearWorkloadProfile()The workload profile for the volume.Volume.Builderclone()booleancontainsLabels(String key)Labels as key value pairs.booleangetAttached()Output only.longgetAutoGrownSizeGib()The size, in GiB, that this storage volume has expanded as a result of an auto grow policy.booleangetBootVolume()Output only.longgetCurrentSizeGib()The current size of this storage volume, in GiB, including space reserved for snapshots.VolumegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetEmergencySizeGib()Additional emergency size that was requested for this Volume, in GiB.com.google.protobuf.TimestampgetExpireTime()Output only.com.google.protobuf.Timestamp.BuildergetExpireTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetExpireTimeOrBuilder()Output only.StringgetId()An identifier for the `Volume`, generated by the backend.com.google.protobuf.ByteStringgetIdBytes()An identifier for the `Volume`, generated by the backend.StringgetInstances(int index)Output only.com.google.protobuf.ByteStringgetInstancesBytes(int index)Output only.intgetInstancesCount()Output only.com.google.protobuf.ProtocolStringListgetInstancesList()Output only.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels as key value pairs.Map<String,String>getLabelsMap()Labels as key value pairs.StringgetLabelsOrDefault(String key, String defaultValue)Labels as key value pairs.StringgetLabelsOrThrow(String key)Labels as key value pairs.longgetMaxSizeGib()Maximum size volume can be expanded to in case of evergency, in GiB.Map<String,String>getMutableLabels()Deprecated.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.StringgetNotes()Input only.com.google.protobuf.ByteStringgetNotesBytes()Input only.longgetOriginallyRequestedSizeGib()Originally requested size, in GiB.VolumePerformanceTiergetPerformanceTier()Immutable.intgetPerformanceTierValue()Immutable.StringgetPod()Immutable.com.google.protobuf.ByteStringgetPodBytes()Immutable.Volume.ProtocolgetProtocol()Output only.intgetProtocolValue()Output only.longgetRemainingSpaceGib()The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.longgetRequestedSizeGib()The requested size of this storage volume, in GiB.Volume.SnapshotAutoDeleteBehaviorgetSnapshotAutoDeleteBehavior()The behavior to use when snapshot reserved space is full.intgetSnapshotAutoDeleteBehaviorValue()The behavior to use when snapshot reserved space is full.booleangetSnapshotEnabled()Whether snapshots are enabled.Volume.SnapshotReservationDetailgetSnapshotReservationDetail()Details about snapshot space reservation and usage on the storage volume.Volume.SnapshotReservationDetail.BuildergetSnapshotReservationDetailBuilder()Details about snapshot space reservation and usage on the storage volume.Volume.SnapshotReservationDetailOrBuildergetSnapshotReservationDetailOrBuilder()Details about snapshot space reservation and usage on the storage volume.Volume.StategetState()The state of this storage volume.intgetStateValue()The state of this storage volume.Volume.StorageTypegetStorageType()The storage type for this volume.intgetStorageTypeValue()The storage type for this volume.Volume.WorkloadProfilegetWorkloadProfile()The workload profile for the volume.intgetWorkloadProfileValue()The workload profile for the volume.booleanhasExpireTime()Output only.booleanhasSnapshotReservationDetail()Details about snapshot space reservation and usage on the storage volume.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Volume.BuildermergeExpireTime(com.google.protobuf.Timestamp value)Output only.Volume.BuildermergeFrom(Volume other)Volume.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Volume.BuildermergeFrom(com.google.protobuf.Message other)Volume.BuildermergeSnapshotReservationDetail(Volume.SnapshotReservationDetail value)Details about snapshot space reservation and usage on the storage volume.Volume.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Volume.BuilderputAllLabels(Map<String,String> values)Labels as key value pairs.Volume.BuilderputLabels(String key, String value)Labels as key value pairs.Volume.BuilderremoveLabels(String key)Labels as key value pairs.Volume.BuildersetAttached(boolean value)Output only.Volume.BuildersetAutoGrownSizeGib(long value)The size, in GiB, that this storage volume has expanded as a result of an auto grow policy.Volume.BuildersetBootVolume(boolean value)Output only.Volume.BuildersetCurrentSizeGib(long value)The current size of this storage volume, in GiB, including space reserved for snapshots.Volume.BuildersetEmergencySizeGib(long value)Additional emergency size that was requested for this Volume, in GiB.Volume.BuildersetExpireTime(com.google.protobuf.Timestamp value)Output only.Volume.BuildersetExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Volume.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Volume.BuildersetId(String value)An identifier for the `Volume`, generated by the backend.Volume.BuildersetIdBytes(com.google.protobuf.ByteString value)An identifier for the `Volume`, generated by the backend.Volume.BuildersetInstances(int index, String value)Output only.Volume.BuildersetMaxSizeGib(long value)Maximum size volume can be expanded to in case of evergency, in GiB.Volume.BuildersetName(String value)Output only.Volume.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.Volume.BuildersetNotes(String value)Input only.Volume.BuildersetNotesBytes(com.google.protobuf.ByteString value)Input only.Volume.BuildersetOriginallyRequestedSizeGib(long value)Originally requested size, in GiB.Volume.BuildersetPerformanceTier(VolumePerformanceTier value)Immutable.Volume.BuildersetPerformanceTierValue(int value)Immutable.Volume.BuildersetPod(String value)Immutable.Volume.BuildersetPodBytes(com.google.protobuf.ByteString value)Immutable.Volume.BuildersetProtocol(Volume.Protocol value)Output only.Volume.BuildersetProtocolValue(int value)Output only.Volume.BuildersetRemainingSpaceGib(long value)The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.Volume.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Volume.BuildersetRequestedSizeGib(long value)The requested size of this storage volume, in GiB.Volume.BuildersetSnapshotAutoDeleteBehavior(Volume.SnapshotAutoDeleteBehavior value)The behavior to use when snapshot reserved space is full.Volume.BuildersetSnapshotAutoDeleteBehaviorValue(int value)The behavior to use when snapshot reserved space is full.Volume.BuildersetSnapshotEnabled(boolean value)Whether snapshots are enabled.Volume.BuildersetSnapshotReservationDetail(Volume.SnapshotReservationDetail value)Details about snapshot space reservation and usage on the storage volume.Volume.BuildersetSnapshotReservationDetail(Volume.SnapshotReservationDetail.Builder builderForValue)Details about snapshot space reservation and usage on the storage volume.Volume.BuildersetState(Volume.State value)The state of this storage volume.Volume.BuildersetStateValue(int value)The state of this storage volume.Volume.BuildersetStorageType(Volume.StorageType value)The storage type for this volume.Volume.BuildersetStorageTypeValue(int value)The storage type for this volume.Volume.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Volume.BuildersetWorkloadProfile(Volume.WorkloadProfile value)The workload profile for the volume.Volume.BuildersetWorkloadProfileValue(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:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
clear
public Volume.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
getDefaultInstanceForType
public Volume getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Volume build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Volume buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Volume.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
setField
public Volume.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
clearField
public Volume.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
clearOneof
public Volume.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
setRepeatedField
public Volume.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
addRepeatedField
public Volume.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
mergeFrom
public Volume.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Volume.Builder>
-
mergeFrom
public Volume.Builder mergeFrom(Volume other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getNamein 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:
getNameBytesin 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:
getIdin 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:
getIdBytesin 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:
getStorageTypeValuein 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:
getStorageTypein 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:
getStateValuein 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:
getStatein 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:
getRequestedSizeGibin 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:
getOriginallyRequestedSizeGibin 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:
getCurrentSizeGibin 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:
getEmergencySizeGibin 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:
getMaxSizeGibin 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:
getAutoGrownSizeGibin 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:
getRemainingSpaceGibin 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:
hasSnapshotReservationDetailin 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:
getSnapshotReservationDetailin 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:
getSnapshotReservationDetailOrBuilderin 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:
getSnapshotAutoDeleteBehaviorValuein 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:
getSnapshotAutoDeleteBehaviorin 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:VolumeOrBuilderLabels as key value pairs.
map<string, string> labels = 12;- Specified by:
getLabelsCountin interfaceVolumeOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 12;- Specified by:
containsLabelsin interfaceVolumeOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceVolumeOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 12;- Specified by:
getLabelsMapin interfaceVolumeOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 12;- Specified by:
getLabelsOrDefaultin interfaceVolumeOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 12;- Specified by:
getLabelsOrThrowin 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:
getSnapshotEnabledin 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:
getPodin interfaceVolumeOrBuilder- Returns:
- The pod.
-
getPodBytes
public com.google.protobuf.ByteString getPodBytes()
Immutable. Pod name.
string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getPodBytesin 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:
getProtocolValuein 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:
getProtocolin 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:
getBootVolumein 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:
getPerformanceTierValuein 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:
getPerformanceTierin 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:
getNotesin 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:
getNotesBytesin 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:
getWorkloadProfileValuein 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:
getWorkloadProfilein 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:
hasExpireTimein 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:
getExpireTimein 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:
getExpireTimeOrBuilderin 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:
getInstancesListin 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:
getInstancesCountin 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:
getInstancesin 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:
getInstancesBytesin 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:
getAttachedin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
mergeUnknownFields
public final Volume.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
-
-