Class Volume.Builder (0.45.0)

public static final class Volume.Builder extends GeneratedMessageV3.Builder<Volume.Builder> implements VolumeOrBuilder

Carries 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

Implements

VolumeOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Volume.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Volume.Builder
Overrides

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
Overrides

clearExistingDisk()

public Volume.Builder clearExistingDisk()

Configuration for a existing disk.

.google.cloud.lifesciences.v2beta.ExistingDisk existing_disk = 3;

Returns
Type Description
Volume.Builder

clearField(Descriptors.FieldDescriptor field)

public Volume.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Volume.Builder
Overrides

clearNfsMount()

public Volume.Builder clearNfsMount()

Configuration for an NFS mount.

.google.cloud.lifesciences.v2beta.NFSMount nfs_mount = 4;

Returns
Type Description
Volume.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Volume.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Volume.Builder
Overrides

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.

clone()

public Volume.Builder clone()
Returns
Type Description
Volume.Builder
Overrides

getDefaultInstanceForType()

public Volume getDefaultInstanceForType()
Returns
Type Description
Volume

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Volume.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Volume.Builder
Overrides

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Volume.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Volume.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public Volume.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Volume.Builder
Overrides

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Volume.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Volume.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Volume.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Volume.Builder
Overrides

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 String

The 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 ByteString

The bytes for volume to set.

Returns
Type Description
Volume.Builder

This builder for chaining.