Package namespace.cloud.compute.v1beta
Interface Compute.VolumeRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Compute.VolumeRequest,Compute.VolumeRequest.Builder
- Enclosing class:
Compute
public static interface Compute.VolumeRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionIf set, initializes the volume from the specified snapshot.com.google.protobuf.ByteStringIf set, initializes the volume from the specified snapshot.The absolute path where the volume is mounted inside the instance.com.google.protobuf.ByteStringThe absolute path where the volume is mounted inside the instance.The persistency kind of the volume.intThe persistency kind of the volume.longThe requested size of the volume in megabytes.getTag()A logical identifier for volume reuse across instances.com.google.protobuf.ByteStringA logical identifier for volume reuse across instances.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getMountPoint
String getMountPoint()The absolute path where the volume is mounted inside the instance.
string mount_point = 1;- Returns:
- The mountPoint.
-
getMountPointBytes
com.google.protobuf.ByteString getMountPointBytes()The absolute path where the volume is mounted inside the instance.
string mount_point = 1;- Returns:
- The bytes for mountPoint.
-
getTag
String getTag()A logical identifier for volume reuse across instances. For CACHE volumes, the platform attempts to mount a recently used volume with the same tag. For PERSISTENT volumes, the tag maps to a named durable volume.
string tag = 2;- Returns:
- The tag.
-
getTagBytes
com.google.protobuf.ByteString getTagBytes()A logical identifier for volume reuse across instances. For CACHE volumes, the platform attempts to mount a recently used volume with the same tag. For PERSISTENT volumes, the tag maps to a named durable volume.
string tag = 2;- Returns:
- The bytes for tag.
-
getSizeMb
long getSizeMb()The requested size of the volume in megabytes.
int64 size_mb = 3;- Returns:
- The sizeMb.
-
getPersistencyKindValue
int getPersistencyKindValue()The persistency kind of the volume.
.namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;- Returns:
- The enum numeric value on the wire for persistencyKind.
-
getPersistencyKind
Compute.VolumeRequest.PersistencyKind getPersistencyKind()The persistency kind of the volume.
.namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;- Returns:
- The persistencyKind.
-
getFromSnapshotId
String getFromSnapshotId()If set, initializes the volume from the specified snapshot. Only supported for PERSISTENT volumes. If set on a CACHE volume, the request will fail. For persistent volumes, a new snapshot is created starting from the specified snapshot ID.
string from_snapshot_id = 5;- Returns:
- The fromSnapshotId.
-
getFromSnapshotIdBytes
com.google.protobuf.ByteString getFromSnapshotIdBytes()If set, initializes the volume from the specified snapshot. Only supported for PERSISTENT volumes. If set on a CACHE volume, the request will fail. For persistent volumes, a new snapshot is created starting from the specified snapshot ID.
string from_snapshot_id = 5;- Returns:
- The bytes for fromSnapshotId.
-