Class Volume.Builder (0.42.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Volume.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Volume.Builder
Overrides

build()

public Volume build()
Returns
TypeDescription
Volume

buildPartial()

public Volume buildPartial()
Returns
TypeDescription
Volume

clear()

public Volume.Builder clear()
Returns
TypeDescription
Volume.Builder
Overrides

clearExistingDisk()

public Volume.Builder clearExistingDisk()

Configuration for a existing disk.

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

Returns
TypeDescription
Volume.Builder

clearField(Descriptors.FieldDescriptor field)

public Volume.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Volume.Builder
Overrides

clearNfsMount()

public Volume.Builder clearNfsMount()

Configuration for an NFS mount.

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

Returns
TypeDescription
Volume.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Volume.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Volume.Builder
Overrides

clearPersistentDisk()

public Volume.Builder clearPersistentDisk()

Configuration for a persistent disk.

.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;

Returns
TypeDescription
Volume.Builder

clearStorage()

public Volume.Builder clearStorage()
Returns
TypeDescription
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
TypeDescription
Volume.Builder

This builder for chaining.

clone()

public Volume.Builder clone()
Returns
TypeDescription
Volume.Builder
Overrides

getDefaultInstanceForType()

public Volume getDefaultInstanceForType()
Returns
TypeDescription
Volume

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExistingDisk()

public ExistingDisk getExistingDisk()

Configuration for a existing disk.

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

Returns
TypeDescription
ExistingDisk

The existingDisk.

getExistingDiskBuilder()

public ExistingDisk.Builder getExistingDiskBuilder()

Configuration for a existing disk.

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

Returns
TypeDescription
ExistingDisk.Builder

getExistingDiskOrBuilder()

public ExistingDiskOrBuilder getExistingDiskOrBuilder()

Configuration for a existing disk.

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

Returns
TypeDescription
ExistingDiskOrBuilder

getNfsMount()

public NFSMount getNfsMount()

Configuration for an NFS mount.

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

Returns
TypeDescription
NFSMount

The nfsMount.

getNfsMountBuilder()

public NFSMount.Builder getNfsMountBuilder()

Configuration for an NFS mount.

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

Returns
TypeDescription
NFSMount.Builder

getNfsMountOrBuilder()

public NFSMountOrBuilder getNfsMountOrBuilder()

Configuration for an NFS mount.

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

Returns
TypeDescription
NFSMountOrBuilder

getPersistentDisk()

public PersistentDisk getPersistentDisk()

Configuration for a persistent disk.

.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;

Returns
TypeDescription
PersistentDisk

The persistentDisk.

getPersistentDiskBuilder()

public PersistentDisk.Builder getPersistentDiskBuilder()

Configuration for a persistent disk.

.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;

Returns
TypeDescription
PersistentDisk.Builder

getPersistentDiskOrBuilder()

public PersistentDiskOrBuilder getPersistentDiskOrBuilder()

Configuration for a persistent disk.

.google.cloud.lifesciences.v2beta.PersistentDisk persistent_disk = 2;

Returns
TypeDescription
PersistentDiskOrBuilder

getStorageCase()

public Volume.StorageCase getStorageCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for volume.

hasExistingDisk()

public boolean hasExistingDisk()

Configuration for a existing disk.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the persistentDisk field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueExistingDisk
Returns
TypeDescription
Volume.Builder

mergeFrom(Volume other)

public Volume.Builder mergeFrom(Volume other)
Parameter
NameDescription
otherVolume
Returns
TypeDescription
Volume.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Volume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Volume.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Volume.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueNFSMount
Returns
TypeDescription
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
NameDescription
valuePersistentDisk
Returns
TypeDescription
Volume.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Volume.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueExistingDisk
Returns
TypeDescription
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
NameDescription
builderForValueExistingDisk.Builder
Returns
TypeDescription
Volume.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Volume.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueNFSMount
Returns
TypeDescription
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
NameDescription
builderForValueNFSMount.Builder
Returns
TypeDescription
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
NameDescription
valuePersistentDisk
Returns
TypeDescription
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
NameDescription
builderForValuePersistentDisk.Builder
Returns
TypeDescription
Volume.Builder

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

public Volume.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Volume.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Volume.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The volume to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for volume to set.

Returns
TypeDescription
Volume.Builder

This builder for chaining.