public static final class Volume.Builder extends GeneratedMessage.Builder<Volume.Builder> implements VolumeOrBuilderCarries information about storage that can be attached to a VM.
Specify either Volume or
Disk, but not both.
Protobuf type google.cloud.lifesciences.v2beta.Volume
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Volume.BuilderImplements
VolumeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Volume build()| Returns | |
|---|---|
| Type | Description |
Volume |
|
buildPartial()
public Volume buildPartial()| Returns | |
|---|---|
| Type | Description |
Volume |
|
clear()
public Volume.Builder clear()| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearExistingDisk()
public Volume.Builder clearExistingDisk()Configuration for a existing disk.
.google.cloud.lifesciences.v2beta.ExistingDisk existing_disk = 3;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearNfsMount()
public Volume.Builder clearNfsMount()Configuration for an NFS mount.
.google.cloud.lifesciences.v2beta.NFSMount nfs_mount = 4;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearPersistentDisk()
public Volume.Builder clearPersistentDisk()Configuration for a persistent disk.
.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearStorage()
public Volume.Builder clearStorage()| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearVolume()
public Volume.Builder clearVolume() A user-supplied name for the volume. Used when mounting the volume into
Actions. The name must contain
only upper and lowercase alphanumeric characters and hyphens and cannot
start with a hyphen.
string volume = 1;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Volume getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Volume |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExistingDisk()
public ExistingDisk getExistingDisk()Configuration for a existing disk.
.google.cloud.lifesciences.v2beta.ExistingDisk existing_disk = 3;
| Returns | |
|---|---|
| Type | Description |
ExistingDisk |
The existingDisk. |
getExistingDiskBuilder()
public ExistingDisk.Builder getExistingDiskBuilder()Configuration for a existing disk.
.google.cloud.lifesciences.v2beta.ExistingDisk existing_disk = 3;
| Returns | |
|---|---|
| Type | Description |
ExistingDisk.Builder |
|
getExistingDiskOrBuilder()
public ExistingDiskOrBuilder getExistingDiskOrBuilder()Configuration for a existing disk.
.google.cloud.lifesciences.v2beta.ExistingDisk existing_disk = 3;
| Returns | |
|---|---|
| Type | Description |
ExistingDiskOrBuilder |
|
getNfsMount()
public NFSMount getNfsMount()Configuration for an NFS mount.
.google.cloud.lifesciences.v2beta.NFSMount nfs_mount = 4;
| Returns | |
|---|---|
| Type | Description |
NFSMount |
The nfsMount. |
getNfsMountBuilder()
public NFSMount.Builder getNfsMountBuilder()Configuration for an NFS mount.
.google.cloud.lifesciences.v2beta.NFSMount nfs_mount = 4;
| Returns | |
|---|---|
| Type | Description |
NFSMount.Builder |
|
getNfsMountOrBuilder()
public NFSMountOrBuilder getNfsMountOrBuilder()Configuration for an NFS mount.
.google.cloud.lifesciences.v2beta.NFSMount nfs_mount = 4;
| Returns | |
|---|---|
| Type | Description |
NFSMountOrBuilder |
|
getPersistentDisk()
public PersistentDisk getPersistentDisk()Configuration for a persistent disk.
.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;
| Returns | |
|---|---|
| Type | Description |
PersistentDisk |
The persistentDisk. |
getPersistentDiskBuilder()
public PersistentDisk.Builder getPersistentDiskBuilder()Configuration for a persistent disk.
.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;
| Returns | |
|---|---|
| Type | Description |
PersistentDisk.Builder |
|
getPersistentDiskOrBuilder()
public PersistentDiskOrBuilder getPersistentDiskOrBuilder()Configuration for a persistent disk.
.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;
| Returns | |
|---|---|
| Type | Description |
PersistentDiskOrBuilder |
|
getStorageCase()
public Volume.StorageCase getStorageCase()| Returns | |
|---|---|
| Type | Description |
Volume.StorageCase |
|
getVolume()
public String getVolume() A user-supplied name for the volume. Used when mounting the volume into
Actions. The name must contain
only upper and lowercase alphanumeric characters and hyphens and cannot
start with a hyphen.
string volume = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The volume. |
getVolumeBytes()
public ByteString getVolumeBytes() A user-supplied name for the volume. Used when mounting the volume into
Actions. The name must contain
only upper and lowercase alphanumeric characters and hyphens and cannot
start with a hyphen.
string volume = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for volume. |
hasExistingDisk()
public boolean hasExistingDisk()Configuration for a existing disk.
.google.cloud.lifesciences.v2beta.ExistingDisk existing_disk = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the existingDisk field is set. |
hasNfsMount()
public boolean hasNfsMount()Configuration for an NFS mount.
.google.cloud.lifesciences.v2beta.NFSMount nfs_mount = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the nfsMount field is set. |
hasPersistentDisk()
public boolean hasPersistentDisk()Configuration for a persistent disk.
.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the persistentDisk field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeExistingDisk(ExistingDisk value)
public Volume.Builder mergeExistingDisk(ExistingDisk value)Configuration for a existing disk.
.google.cloud.lifesciences.v2beta.ExistingDisk existing_disk = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ExistingDisk |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeFrom(Volume other)
public Volume.Builder mergeFrom(Volume other)| Parameter | |
|---|---|
| Name | Description |
other |
Volume |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Volume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Volume.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeNfsMount(NFSMount value)
public Volume.Builder mergeNfsMount(NFSMount value)Configuration for an NFS mount.
.google.cloud.lifesciences.v2beta.NFSMount nfs_mount = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
NFSMount |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergePersistentDisk(PersistentDisk value)
public Volume.Builder mergePersistentDisk(PersistentDisk value)Configuration for a persistent disk.
.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
PersistentDisk |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setExistingDisk(ExistingDisk value)
public Volume.Builder setExistingDisk(ExistingDisk value)Configuration for a existing disk.
.google.cloud.lifesciences.v2beta.ExistingDisk existing_disk = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ExistingDisk |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setExistingDisk(ExistingDisk.Builder builderForValue)
public Volume.Builder setExistingDisk(ExistingDisk.Builder builderForValue)Configuration for a existing disk.
.google.cloud.lifesciences.v2beta.ExistingDisk existing_disk = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ExistingDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setNfsMount(NFSMount value)
public Volume.Builder setNfsMount(NFSMount value)Configuration for an NFS mount.
.google.cloud.lifesciences.v2beta.NFSMount nfs_mount = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
NFSMount |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setNfsMount(NFSMount.Builder builderForValue)
public Volume.Builder setNfsMount(NFSMount.Builder builderForValue)Configuration for an NFS mount.
.google.cloud.lifesciences.v2beta.NFSMount nfs_mount = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
NFSMount.Builder |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setPersistentDisk(PersistentDisk value)
public Volume.Builder setPersistentDisk(PersistentDisk value)Configuration for a persistent disk.
.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
PersistentDisk |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setPersistentDisk(PersistentDisk.Builder builderForValue)
public Volume.Builder setPersistentDisk(PersistentDisk.Builder builderForValue)Configuration for a persistent disk.
.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
PersistentDisk.Builder |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setVolume(String value)
public Volume.Builder setVolume(String value) A user-supplied name for the volume. Used when mounting the volume into
Actions. The name must contain
only upper and lowercase alphanumeric characters and hyphens and cannot
start with a hyphen.
string volume = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe volume to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setVolumeBytes(ByteString value)
public Volume.Builder setVolumeBytes(ByteString value) A user-supplied name for the volume. Used when mounting the volume into
Actions. The name must contain
only upper and lowercase alphanumeric characters and hyphens and cannot
start with a hyphen.
string volume = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for volume to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |