Package namespace.cloud.compute.v1beta
Class Compute.VolumeRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Compute.VolumeRequest.Builder>
com.google.protobuf.GeneratedMessage.Builder<Compute.VolumeRequest.Builder>
namespace.cloud.compute.v1beta.Compute.VolumeRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Compute.VolumeRequestOrBuilder
- Enclosing class:
Compute.VolumeRequest
public static final class Compute.VolumeRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Compute.VolumeRequest.Builder>
implements Compute.VolumeRequestOrBuilder
Protobuf type
namespace.cloud.compute.v1beta.VolumeRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()If set, initializes the volume from the specified snapshot.The absolute path where the volume is mounted inside the instance.The persistency kind of the volume.The requested size of the volume in megabytes.clearTag()A logical identifier for volume reuse across instances.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorIf 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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Compute.VolumeRequest other) setFromSnapshotId(String value) If set, initializes the volume from the specified snapshot.setFromSnapshotIdBytes(com.google.protobuf.ByteString value) If set, initializes the volume from the specified snapshot.setMountPoint(String value) The absolute path where the volume is mounted inside the instance.setMountPointBytes(com.google.protobuf.ByteString value) The absolute path where the volume is mounted inside the instance.The persistency kind of the volume.setPersistencyKindValue(int value) The persistency kind of the volume.setSizeMb(long value) The requested size of the volume in megabytes.A logical identifier for volume reuse across instances.setTagBytes(com.google.protobuf.ByteString value) A logical identifier for volume reuse across instances.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Compute.VolumeRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Compute.VolumeRequest.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.GeneratedMessage.Builder<Compute.VolumeRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Compute.VolumeRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Compute.VolumeRequest.Builder>
-
mergeFrom
public Compute.VolumeRequest.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<Compute.VolumeRequest.Builder>- Throws:
IOException
-
getMountPoint
The absolute path where the volume is mounted inside the instance.
string mount_point = 1;- Specified by:
getMountPointin interfaceCompute.VolumeRequestOrBuilder- Returns:
- The mountPoint.
-
getMountPointBytes
public com.google.protobuf.ByteString getMountPointBytes()The absolute path where the volume is mounted inside the instance.
string mount_point = 1;- Specified by:
getMountPointBytesin interfaceCompute.VolumeRequestOrBuilder- Returns:
- The bytes for mountPoint.
-
setMountPoint
The absolute path where the volume is mounted inside the instance.
string mount_point = 1;- Parameters:
value- The mountPoint to set.- Returns:
- This builder for chaining.
-
clearMountPoint
The absolute path where the volume is mounted inside the instance.
string mount_point = 1;- Returns:
- This builder for chaining.
-
setMountPointBytes
The absolute path where the volume is mounted inside the instance.
string mount_point = 1;- Parameters:
value- The bytes for mountPoint to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getTagin interfaceCompute.VolumeRequestOrBuilder- Returns:
- The tag.
-
getTagBytes
public 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;- Specified by:
getTagBytesin interfaceCompute.VolumeRequestOrBuilder- Returns:
- The bytes for tag.
-
setTag
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;- Parameters:
value- The tag to set.- Returns:
- This builder for chaining.
-
clearTag
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:
- This builder for chaining.
-
setTagBytes
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;- Parameters:
value- The bytes for tag to set.- Returns:
- This builder for chaining.
-
getSizeMb
public long getSizeMb()The requested size of the volume in megabytes.
int64 size_mb = 3;- Specified by:
getSizeMbin interfaceCompute.VolumeRequestOrBuilder- Returns:
- The sizeMb.
-
setSizeMb
The requested size of the volume in megabytes.
int64 size_mb = 3;- Parameters:
value- The sizeMb to set.- Returns:
- This builder for chaining.
-
clearSizeMb
The requested size of the volume in megabytes.
int64 size_mb = 3;- Returns:
- This builder for chaining.
-
getPersistencyKindValue
public int getPersistencyKindValue()The persistency kind of the volume.
.namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;- Specified by:
getPersistencyKindValuein interfaceCompute.VolumeRequestOrBuilder- Returns:
- The enum numeric value on the wire for persistencyKind.
-
setPersistencyKindValue
The persistency kind of the volume.
.namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;- Parameters:
value- The enum numeric value on the wire for persistencyKind to set.- Returns:
- This builder for chaining.
-
getPersistencyKind
The persistency kind of the volume.
.namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;- Specified by:
getPersistencyKindin interfaceCompute.VolumeRequestOrBuilder- Returns:
- The persistencyKind.
-
setPersistencyKind
public Compute.VolumeRequest.Builder setPersistencyKind(Compute.VolumeRequest.PersistencyKind value) The persistency kind of the volume.
.namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;- Parameters:
value- The persistencyKind to set.- Returns:
- This builder for chaining.
-
clearPersistencyKind
The persistency kind of the volume.
.namespace.cloud.compute.v1beta.VolumeRequest.PersistencyKind persistency_kind = 4;- Returns:
- This builder for chaining.
-
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;- Specified by:
getFromSnapshotIdin interfaceCompute.VolumeRequestOrBuilder- Returns:
- The fromSnapshotId.
-
getFromSnapshotIdBytes
public 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;- Specified by:
getFromSnapshotIdBytesin interfaceCompute.VolumeRequestOrBuilder- Returns:
- The bytes for fromSnapshotId.
-
setFromSnapshotId
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;- Parameters:
value- The fromSnapshotId to set.- Returns:
- This builder for chaining.
-
clearFromSnapshotId
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:
- This builder for chaining.
-
setFromSnapshotIdBytes
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;- Parameters:
value- The bytes for fromSnapshotId to set.- Returns:
- This builder for chaining.
-