Class VirtualMachine.Builder (0.48.0)

public static final class VirtualMachine.Builder extends GeneratedMessageV3.Builder<VirtualMachine.Builder> implements VirtualMachineOrBuilder

Carries information about a Compute Engine VM resource.

Protobuf type google.cloud.lifesciences.v2beta.VirtualMachine

Static Methods

getDescriptor()

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

Methods

addAccelerators(Accelerator value)

public VirtualMachine.Builder addAccelerators(Accelerator value)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameter
Name Description
value Accelerator
Returns
Type Description
VirtualMachine.Builder

addAccelerators(Accelerator.Builder builderForValue)

public VirtualMachine.Builder addAccelerators(Accelerator.Builder builderForValue)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameter
Name Description
builderForValue Accelerator.Builder
Returns
Type Description
VirtualMachine.Builder

addAccelerators(int index, Accelerator value)

public VirtualMachine.Builder addAccelerators(int index, Accelerator value)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameters
Name Description
index int
value Accelerator
Returns
Type Description
VirtualMachine.Builder

addAccelerators(int index, Accelerator.Builder builderForValue)

public VirtualMachine.Builder addAccelerators(int index, Accelerator.Builder builderForValue)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameters
Name Description
index int
builderForValue Accelerator.Builder
Returns
Type Description
VirtualMachine.Builder

addAcceleratorsBuilder()

public Accelerator.Builder addAcceleratorsBuilder()

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Returns
Type Description
Accelerator.Builder

addAcceleratorsBuilder(int index)

public Accelerator.Builder addAcceleratorsBuilder(int index)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameter
Name Description
index int
Returns
Type Description
Accelerator.Builder

addAllAccelerators(Iterable<? extends Accelerator> values)

public VirtualMachine.Builder addAllAccelerators(Iterable<? extends Accelerator> values)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameter
Name Description
values Iterable<? extends com.google.cloud.lifesciences.v2beta.Accelerator>
Returns
Type Description
VirtualMachine.Builder

addAllDisks(Iterable<? extends Disk> values)

public VirtualMachine.Builder addAllDisks(Iterable<? extends Disk> values)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.lifesciences.v2beta.Disk>
Returns
Type Description
VirtualMachine.Builder

addAllDockerCacheImages(Iterable<String> values)

public VirtualMachine.Builder addAllDockerCacheImages(Iterable<String> values)

The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain image and overlay2 directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.

repeated string docker_cache_images = 13;

Parameter
Name Description
values Iterable<String>

The dockerCacheImages to add.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

addAllVolumes(Iterable<? extends Volume> values)

public VirtualMachine.Builder addAllVolumes(Iterable<? extends Volume> values)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameter
Name Description
values Iterable<? extends com.google.cloud.lifesciences.v2beta.Volume>
Returns
Type Description
VirtualMachine.Builder

addDisks(Disk value)

public VirtualMachine.Builder addDisks(Disk value)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameter
Name Description
value Disk
Returns
Type Description
VirtualMachine.Builder

addDisks(Disk.Builder builderForValue)

public VirtualMachine.Builder addDisks(Disk.Builder builderForValue)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameter
Name Description
builderForValue Disk.Builder
Returns
Type Description
VirtualMachine.Builder

addDisks(int index, Disk value)

public VirtualMachine.Builder addDisks(int index, Disk value)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameters
Name Description
index int
value Disk
Returns
Type Description
VirtualMachine.Builder

addDisks(int index, Disk.Builder builderForValue)

public VirtualMachine.Builder addDisks(int index, Disk.Builder builderForValue)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameters
Name Description
index int
builderForValue Disk.Builder
Returns
Type Description
VirtualMachine.Builder

addDisksBuilder()

public Disk.Builder addDisksBuilder()

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Returns
Type Description
Disk.Builder

addDisksBuilder(int index)

public Disk.Builder addDisksBuilder(int index)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameter
Name Description
index int
Returns
Type Description
Disk.Builder

addDockerCacheImages(String value)

public VirtualMachine.Builder addDockerCacheImages(String value)

The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain image and overlay2 directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.

repeated string docker_cache_images = 13;

Parameter
Name Description
value String

The dockerCacheImages to add.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

addDockerCacheImagesBytes(ByteString value)

public VirtualMachine.Builder addDockerCacheImagesBytes(ByteString value)

The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain image and overlay2 directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.

repeated string docker_cache_images = 13;

Parameter
Name Description
value ByteString

The bytes of the dockerCacheImages to add.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVolumes(Volume value)

public VirtualMachine.Builder addVolumes(Volume value)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameter
Name Description
value Volume
Returns
Type Description
VirtualMachine.Builder

addVolumes(Volume.Builder builderForValue)

public VirtualMachine.Builder addVolumes(Volume.Builder builderForValue)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameter
Name Description
builderForValue Volume.Builder
Returns
Type Description
VirtualMachine.Builder

addVolumes(int index, Volume value)

public VirtualMachine.Builder addVolumes(int index, Volume value)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameters
Name Description
index int
value Volume
Returns
Type Description
VirtualMachine.Builder

addVolumes(int index, Volume.Builder builderForValue)

public VirtualMachine.Builder addVolumes(int index, Volume.Builder builderForValue)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameters
Name Description
index int
builderForValue Volume.Builder
Returns
Type Description
VirtualMachine.Builder

addVolumesBuilder()

public Volume.Builder addVolumesBuilder()

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Returns
Type Description
Volume.Builder

addVolumesBuilder(int index)

public Volume.Builder addVolumesBuilder(int index)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameter
Name Description
index int
Returns
Type Description
Volume.Builder

build()

public VirtualMachine build()
Returns
Type Description
VirtualMachine

buildPartial()

public VirtualMachine buildPartial()
Returns
Type Description
VirtualMachine

clear()

public VirtualMachine.Builder clear()
Returns
Type Description
VirtualMachine.Builder
Overrides

clearAccelerators()

public VirtualMachine.Builder clearAccelerators()

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Returns
Type Description
VirtualMachine.Builder

clearBootDiskSizeGb()

public VirtualMachine.Builder clearBootDiskSizeGb()

The size of the boot disk, in GB. The boot disk must be large enough to accommodate all of the Docker images from each action in the pipeline at the same time. If not specified, a small but reasonable default value is used.

int32 boot_disk_size_gb = 8;

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearBootImage()

public VirtualMachine.Builder clearBootImage()

The host operating system image to use.

Currently, only Container-Optimized OS images can be used.

The default value is projects/cos-cloud/global/images/family/cos-stable, which selects the latest stable release of Container-Optimized OS.

This option is provided to allow testing against the beta release of the operating system to ensure that the new version does not interact negatively with production pipelines.

To test a pipeline against the beta release of Container-Optimized OS, use the value projects/cos-cloud/global/images/family/cos-beta.

string boot_image = 10;

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearCpuPlatform()

public VirtualMachine.Builder clearCpuPlatform()

The CPU platform to request. An instance based on a newer platform can be allocated, but never one with fewer capabilities. The value of this parameter must be a valid Compute Engine CPU platform name (such as "Intel Skylake"). This parameter is only useful for carefully optimized work loads where the CPU platform has a significant impact.

For more information about the effect of this parameter, see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.

string cpu_platform = 9;

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearDisks()

public VirtualMachine.Builder clearDisks()

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Returns
Type Description
VirtualMachine.Builder

clearDockerCacheImages()

public VirtualMachine.Builder clearDockerCacheImages()

The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain image and overlay2 directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.

repeated string docker_cache_images = 13;

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearEnableStackdriverMonitoring()

public VirtualMachine.Builder clearEnableStackdriverMonitoring()

Whether Stackdriver monitoring should be enabled on the VM.

bool enable_stackdriver_monitoring = 12;

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public VirtualMachine.Builder clearLabels()
Returns
Type Description
VirtualMachine.Builder

clearMachineType()

public VirtualMachine.Builder clearMachineType()

Required. The machine type of the virtual machine to create. Must be the short name of a standard machine type (such as "n1-standard-1") or a custom machine type (such as "custom-1-4096", where "1" indicates the number of vCPUs and "4096" indicates the memory in MB). See Creating an instance with a custom machine type for more specifications on creating a custom machine type.

string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearNetwork()

public VirtualMachine.Builder clearNetwork()

The VM network configuration.

.google.cloud.lifesciences.v2beta.Network network = 5;

Returns
Type Description
VirtualMachine.Builder

clearNvidiaDriverVersion() (deprecated)

public VirtualMachine.Builder clearNvidiaDriverVersion()

Deprecated. google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411

The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The version specified here must be compatible with the GPU libraries contained in the container being executed, and must be one of the drivers hosted in the nvidia-drivers-us-public bucket on Google Cloud Storage.

string nvidia_driver_version = 11 [deprecated = true];

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreemptible()

public VirtualMachine.Builder clearPreemptible()

If true, allocate a preemptible VM.

bool preemptible = 2;

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearReservation()

public VirtualMachine.Builder clearReservation()

If specified, the VM will only be allocated inside the matching reservation. It will fail if the VM parameters don't match the reservation.

string reservation = 15;

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

clearServiceAccount()

public VirtualMachine.Builder clearServiceAccount()

The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.

.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;

Returns
Type Description
VirtualMachine.Builder

clearVolumes()

public VirtualMachine.Builder clearVolumes()

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Returns
Type Description
VirtualMachine.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the name and value restrictions on VM labels imposed by Compute Engine.

Labels keys with the prefix 'google-' are reserved for use by Google.

Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getAccelerators(int index)

public Accelerator getAccelerators(int index)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameter
Name Description
index int
Returns
Type Description
Accelerator

getAcceleratorsBuilder(int index)

public Accelerator.Builder getAcceleratorsBuilder(int index)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameter
Name Description
index int
Returns
Type Description
Accelerator.Builder

getAcceleratorsBuilderList()

public List<Accelerator.Builder> getAcceleratorsBuilderList()

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Returns
Type Description
List<Builder>

getAcceleratorsCount()

public int getAcceleratorsCount()

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Returns
Type Description
int

getAcceleratorsList()

public List<Accelerator> getAcceleratorsList()

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Returns
Type Description
List<Accelerator>

getAcceleratorsOrBuilder(int index)

public AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameter
Name Description
index int
Returns
Type Description
AcceleratorOrBuilder

getAcceleratorsOrBuilderList()

public List<? extends AcceleratorOrBuilder> getAcceleratorsOrBuilderList()

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Returns
Type Description
List<? extends com.google.cloud.lifesciences.v2beta.AcceleratorOrBuilder>

getBootDiskSizeGb()

public int getBootDiskSizeGb()

The size of the boot disk, in GB. The boot disk must be large enough to accommodate all of the Docker images from each action in the pipeline at the same time. If not specified, a small but reasonable default value is used.

int32 boot_disk_size_gb = 8;

Returns
Type Description
int

The bootDiskSizeGb.

getBootImage()

public String getBootImage()

The host operating system image to use.

Currently, only Container-Optimized OS images can be used.

The default value is projects/cos-cloud/global/images/family/cos-stable, which selects the latest stable release of Container-Optimized OS.

This option is provided to allow testing against the beta release of the operating system to ensure that the new version does not interact negatively with production pipelines.

To test a pipeline against the beta release of Container-Optimized OS, use the value projects/cos-cloud/global/images/family/cos-beta.

string boot_image = 10;

Returns
Type Description
String

The bootImage.

getBootImageBytes()

public ByteString getBootImageBytes()

The host operating system image to use.

Currently, only Container-Optimized OS images can be used.

The default value is projects/cos-cloud/global/images/family/cos-stable, which selects the latest stable release of Container-Optimized OS.

This option is provided to allow testing against the beta release of the operating system to ensure that the new version does not interact negatively with production pipelines.

To test a pipeline against the beta release of Container-Optimized OS, use the value projects/cos-cloud/global/images/family/cos-beta.

string boot_image = 10;

Returns
Type Description
ByteString

The bytes for bootImage.

getCpuPlatform()

public String getCpuPlatform()

The CPU platform to request. An instance based on a newer platform can be allocated, but never one with fewer capabilities. The value of this parameter must be a valid Compute Engine CPU platform name (such as "Intel Skylake"). This parameter is only useful for carefully optimized work loads where the CPU platform has a significant impact.

For more information about the effect of this parameter, see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.

string cpu_platform = 9;

Returns
Type Description
String

The cpuPlatform.

getCpuPlatformBytes()

public ByteString getCpuPlatformBytes()

The CPU platform to request. An instance based on a newer platform can be allocated, but never one with fewer capabilities. The value of this parameter must be a valid Compute Engine CPU platform name (such as "Intel Skylake"). This parameter is only useful for carefully optimized work loads where the CPU platform has a significant impact.

For more information about the effect of this parameter, see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.

string cpu_platform = 9;

Returns
Type Description
ByteString

The bytes for cpuPlatform.

getDefaultInstanceForType()

public VirtualMachine getDefaultInstanceForType()
Returns
Type Description
VirtualMachine

getDescriptorForType()

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

getDisks(int index)

public Disk getDisks(int index)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameter
Name Description
index int
Returns
Type Description
Disk

getDisksBuilder(int index)

public Disk.Builder getDisksBuilder(int index)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameter
Name Description
index int
Returns
Type Description
Disk.Builder

getDisksBuilderList()

public List<Disk.Builder> getDisksBuilderList()

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Returns
Type Description
List<Builder>

getDisksCount()

public int getDisksCount()

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Returns
Type Description
int

getDisksList()

public List<Disk> getDisksList()

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Returns
Type Description
List<Disk>

getDisksOrBuilder(int index)

public DiskOrBuilder getDisksOrBuilder(int index)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameter
Name Description
index int
Returns
Type Description
DiskOrBuilder

getDisksOrBuilderList()

public List<? extends DiskOrBuilder> getDisksOrBuilderList()

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Returns
Type Description
List<? extends com.google.cloud.lifesciences.v2beta.DiskOrBuilder>

getDockerCacheImages(int index)

public String getDockerCacheImages(int index)

The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain image and overlay2 directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.

repeated string docker_cache_images = 13;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The dockerCacheImages at the given index.

getDockerCacheImagesBytes(int index)

public ByteString getDockerCacheImagesBytes(int index)

The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain image and overlay2 directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.

repeated string docker_cache_images = 13;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the dockerCacheImages at the given index.

getDockerCacheImagesCount()

public int getDockerCacheImagesCount()

The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain image and overlay2 directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.

repeated string docker_cache_images = 13;

Returns
Type Description
int

The count of dockerCacheImages.

getDockerCacheImagesList()

public ProtocolStringList getDockerCacheImagesList()

The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain image and overlay2 directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.

repeated string docker_cache_images = 13;

Returns
Type Description
ProtocolStringList

A list containing the dockerCacheImages.

getEnableStackdriverMonitoring()

public boolean getEnableStackdriverMonitoring()

Whether Stackdriver monitoring should be enabled on the VM.

bool enable_stackdriver_monitoring = 12;

Returns
Type Description
boolean

The enableStackdriverMonitoring.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the name and value restrictions on VM labels imposed by Compute Engine.

Labels keys with the prefix 'google-' are reserved for use by Google.

Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.

map<string, string> labels = 3;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the name and value restrictions on VM labels imposed by Compute Engine.

Labels keys with the prefix 'google-' are reserved for use by Google.

Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.

map<string, string> labels = 3;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the name and value restrictions on VM labels imposed by Compute Engine.

Labels keys with the prefix 'google-' are reserved for use by Google.

Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.

map<string, string> labels = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the name and value restrictions on VM labels imposed by Compute Engine.

Labels keys with the prefix 'google-' are reserved for use by Google.

Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getMachineType()

public String getMachineType()

Required. The machine type of the virtual machine to create. Must be the short name of a standard machine type (such as "n1-standard-1") or a custom machine type (such as "custom-1-4096", where "1" indicates the number of vCPUs and "4096" indicates the memory in MB). See Creating an instance with a custom machine type for more specifications on creating a custom machine type.

string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

Required. The machine type of the virtual machine to create. Must be the short name of a standard machine type (such as "n1-standard-1") or a custom machine type (such as "custom-1-4096", where "1" indicates the number of vCPUs and "4096" indicates the memory in MB). See Creating an instance with a custom machine type for more specifications on creating a custom machine type.

string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for machineType.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getNetwork()

public Network getNetwork()

The VM network configuration.

.google.cloud.lifesciences.v2beta.Network network = 5;

Returns
Type Description
Network

The network.

getNetworkBuilder()

public Network.Builder getNetworkBuilder()

The VM network configuration.

.google.cloud.lifesciences.v2beta.Network network = 5;

Returns
Type Description
Network.Builder

getNetworkOrBuilder()

public NetworkOrBuilder getNetworkOrBuilder()

The VM network configuration.

.google.cloud.lifesciences.v2beta.Network network = 5;

Returns
Type Description
NetworkOrBuilder

getNvidiaDriverVersion() (deprecated)

public String getNvidiaDriverVersion()

Deprecated. google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411

The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The version specified here must be compatible with the GPU libraries contained in the container being executed, and must be one of the drivers hosted in the nvidia-drivers-us-public bucket on Google Cloud Storage.

string nvidia_driver_version = 11 [deprecated = true];

Returns
Type Description
String

The nvidiaDriverVersion.

getNvidiaDriverVersionBytes() (deprecated)

public ByteString getNvidiaDriverVersionBytes()

Deprecated. google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411

The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The version specified here must be compatible with the GPU libraries contained in the container being executed, and must be one of the drivers hosted in the nvidia-drivers-us-public bucket on Google Cloud Storage.

string nvidia_driver_version = 11 [deprecated = true];

Returns
Type Description
ByteString

The bytes for nvidiaDriverVersion.

getPreemptible()

public boolean getPreemptible()

If true, allocate a preemptible VM.

bool preemptible = 2;

Returns
Type Description
boolean

The preemptible.

getReservation()

public String getReservation()

If specified, the VM will only be allocated inside the matching reservation. It will fail if the VM parameters don't match the reservation.

string reservation = 15;

Returns
Type Description
String

The reservation.

getReservationBytes()

public ByteString getReservationBytes()

If specified, the VM will only be allocated inside the matching reservation. It will fail if the VM parameters don't match the reservation.

string reservation = 15;

Returns
Type Description
ByteString

The bytes for reservation.

getServiceAccount()

public ServiceAccount getServiceAccount()

The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.

.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;

Returns
Type Description
ServiceAccount

The serviceAccount.

getServiceAccountBuilder()

public ServiceAccount.Builder getServiceAccountBuilder()

The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.

.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;

Returns
Type Description
ServiceAccount.Builder

getServiceAccountOrBuilder()

public ServiceAccountOrBuilder getServiceAccountOrBuilder()

The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.

.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;

Returns
Type Description
ServiceAccountOrBuilder

getVolumes(int index)

public Volume getVolumes(int index)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameter
Name Description
index int
Returns
Type Description
Volume

getVolumesBuilder(int index)

public Volume.Builder getVolumesBuilder(int index)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameter
Name Description
index int
Returns
Type Description
Volume.Builder

getVolumesBuilderList()

public List<Volume.Builder> getVolumesBuilderList()

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Returns
Type Description
List<Builder>

getVolumesCount()

public int getVolumesCount()

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Returns
Type Description
int

getVolumesList()

public List<Volume> getVolumesList()

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Returns
Type Description
List<Volume>

getVolumesOrBuilder(int index)

public VolumeOrBuilder getVolumesOrBuilder(int index)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameter
Name Description
index int
Returns
Type Description
VolumeOrBuilder

getVolumesOrBuilderList()

public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Returns
Type Description
List<? extends com.google.cloud.lifesciences.v2beta.VolumeOrBuilder>

hasNetwork()

public boolean hasNetwork()

The VM network configuration.

.google.cloud.lifesciences.v2beta.Network network = 5;

Returns
Type Description
boolean

Whether the network field is set.

hasServiceAccount()

public boolean hasServiceAccount()

The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.

.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;

Returns
Type Description
boolean

Whether the serviceAccount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VirtualMachine other)

public VirtualMachine.Builder mergeFrom(VirtualMachine other)
Parameter
Name Description
other VirtualMachine
Returns
Type Description
VirtualMachine.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VirtualMachine.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VirtualMachine.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeNetwork(Network value)

public VirtualMachine.Builder mergeNetwork(Network value)

The VM network configuration.

.google.cloud.lifesciences.v2beta.Network network = 5;

Parameter
Name Description
value Network
Returns
Type Description
VirtualMachine.Builder

mergeServiceAccount(ServiceAccount value)

public VirtualMachine.Builder mergeServiceAccount(ServiceAccount value)

The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.

.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;

Parameter
Name Description
value ServiceAccount
Returns
Type Description
VirtualMachine.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public VirtualMachine.Builder putAllLabels(Map<String,String> values)

Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the name and value restrictions on VM labels imposed by Compute Engine.

Labels keys with the prefix 'google-' are reserved for use by Google.

Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.

map<string, string> labels = 3;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
VirtualMachine.Builder

putLabels(String key, String value)

public VirtualMachine.Builder putLabels(String key, String value)

Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the name and value restrictions on VM labels imposed by Compute Engine.

Labels keys with the prefix 'google-' are reserved for use by Google.

Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.

map<string, string> labels = 3;

Parameters
Name Description
key String
value String
Returns
Type Description
VirtualMachine.Builder

removeAccelerators(int index)

public VirtualMachine.Builder removeAccelerators(int index)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameter
Name Description
index int
Returns
Type Description
VirtualMachine.Builder

removeDisks(int index)

public VirtualMachine.Builder removeDisks(int index)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameter
Name Description
index int
Returns
Type Description
VirtualMachine.Builder

removeLabels(String key)

public VirtualMachine.Builder removeLabels(String key)

Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the name and value restrictions on VM labels imposed by Compute Engine.

Labels keys with the prefix 'google-' are reserved for use by Google.

Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
VirtualMachine.Builder

removeVolumes(int index)

public VirtualMachine.Builder removeVolumes(int index)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameter
Name Description
index int
Returns
Type Description
VirtualMachine.Builder

setAccelerators(int index, Accelerator value)

public VirtualMachine.Builder setAccelerators(int index, Accelerator value)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameters
Name Description
index int
value Accelerator
Returns
Type Description
VirtualMachine.Builder

setAccelerators(int index, Accelerator.Builder builderForValue)

public VirtualMachine.Builder setAccelerators(int index, Accelerator.Builder builderForValue)

The list of accelerators to attach to the VM.

repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;

Parameters
Name Description
index int
builderForValue Accelerator.Builder
Returns
Type Description
VirtualMachine.Builder

setBootDiskSizeGb(int value)

public VirtualMachine.Builder setBootDiskSizeGb(int value)

The size of the boot disk, in GB. The boot disk must be large enough to accommodate all of the Docker images from each action in the pipeline at the same time. If not specified, a small but reasonable default value is used.

int32 boot_disk_size_gb = 8;

Parameter
Name Description
value int

The bootDiskSizeGb to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setBootImage(String value)

public VirtualMachine.Builder setBootImage(String value)

The host operating system image to use.

Currently, only Container-Optimized OS images can be used.

The default value is projects/cos-cloud/global/images/family/cos-stable, which selects the latest stable release of Container-Optimized OS.

This option is provided to allow testing against the beta release of the operating system to ensure that the new version does not interact negatively with production pipelines.

To test a pipeline against the beta release of Container-Optimized OS, use the value projects/cos-cloud/global/images/family/cos-beta.

string boot_image = 10;

Parameter
Name Description
value String

The bootImage to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setBootImageBytes(ByteString value)

public VirtualMachine.Builder setBootImageBytes(ByteString value)

The host operating system image to use.

Currently, only Container-Optimized OS images can be used.

The default value is projects/cos-cloud/global/images/family/cos-stable, which selects the latest stable release of Container-Optimized OS.

This option is provided to allow testing against the beta release of the operating system to ensure that the new version does not interact negatively with production pipelines.

To test a pipeline against the beta release of Container-Optimized OS, use the value projects/cos-cloud/global/images/family/cos-beta.

string boot_image = 10;

Parameter
Name Description
value ByteString

The bytes for bootImage to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setCpuPlatform(String value)

public VirtualMachine.Builder setCpuPlatform(String value)

The CPU platform to request. An instance based on a newer platform can be allocated, but never one with fewer capabilities. The value of this parameter must be a valid Compute Engine CPU platform name (such as "Intel Skylake"). This parameter is only useful for carefully optimized work loads where the CPU platform has a significant impact.

For more information about the effect of this parameter, see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.

string cpu_platform = 9;

Parameter
Name Description
value String

The cpuPlatform to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setCpuPlatformBytes(ByteString value)

public VirtualMachine.Builder setCpuPlatformBytes(ByteString value)

The CPU platform to request. An instance based on a newer platform can be allocated, but never one with fewer capabilities. The value of this parameter must be a valid Compute Engine CPU platform name (such as "Intel Skylake"). This parameter is only useful for carefully optimized work loads where the CPU platform has a significant impact.

For more information about the effect of this parameter, see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.

string cpu_platform = 9;

Parameter
Name Description
value ByteString

The bytes for cpuPlatform to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setDisks(int index, Disk value)

public VirtualMachine.Builder setDisks(int index, Disk value)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameters
Name Description
index int
value Disk
Returns
Type Description
VirtualMachine.Builder

setDisks(int index, Disk.Builder builderForValue)

public VirtualMachine.Builder setDisks(int index, Disk.Builder builderForValue)

The list of disks to create and attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;

Parameters
Name Description
index int
builderForValue Disk.Builder
Returns
Type Description
VirtualMachine.Builder

setDockerCacheImages(int index, String value)

public VirtualMachine.Builder setDockerCacheImages(int index, String value)

The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain image and overlay2 directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.

repeated string docker_cache_images = 13;

Parameters
Name Description
index int

The index to set the value at.

value String

The dockerCacheImages to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setEnableStackdriverMonitoring(boolean value)

public VirtualMachine.Builder setEnableStackdriverMonitoring(boolean value)

Whether Stackdriver monitoring should be enabled on the VM.

bool enable_stackdriver_monitoring = 12;

Parameter
Name Description
value boolean

The enableStackdriverMonitoring to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineType(String value)

public VirtualMachine.Builder setMachineType(String value)

Required. The machine type of the virtual machine to create. Must be the short name of a standard machine type (such as "n1-standard-1") or a custom machine type (such as "custom-1-4096", where "1" indicates the number of vCPUs and "4096" indicates the memory in MB). See Creating an instance with a custom machine type for more specifications on creating a custom machine type.

string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public VirtualMachine.Builder setMachineTypeBytes(ByteString value)

Required. The machine type of the virtual machine to create. Must be the short name of a standard machine type (such as "n1-standard-1") or a custom machine type (such as "custom-1-4096", where "1" indicates the number of vCPUs and "4096" indicates the memory in MB). See Creating an instance with a custom machine type for more specifications on creating a custom machine type.

string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setNetwork(Network value)

public VirtualMachine.Builder setNetwork(Network value)

The VM network configuration.

.google.cloud.lifesciences.v2beta.Network network = 5;

Parameter
Name Description
value Network
Returns
Type Description
VirtualMachine.Builder

setNetwork(Network.Builder builderForValue)

public VirtualMachine.Builder setNetwork(Network.Builder builderForValue)

The VM network configuration.

.google.cloud.lifesciences.v2beta.Network network = 5;

Parameter
Name Description
builderForValue Network.Builder
Returns
Type Description
VirtualMachine.Builder

setNvidiaDriverVersion(String value) (deprecated)

public VirtualMachine.Builder setNvidiaDriverVersion(String value)

Deprecated. google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411

The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The version specified here must be compatible with the GPU libraries contained in the container being executed, and must be one of the drivers hosted in the nvidia-drivers-us-public bucket on Google Cloud Storage.

string nvidia_driver_version = 11 [deprecated = true];

Parameter
Name Description
value String

The nvidiaDriverVersion to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setNvidiaDriverVersionBytes(ByteString value) (deprecated)

public VirtualMachine.Builder setNvidiaDriverVersionBytes(ByteString value)

Deprecated. google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411

The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The version specified here must be compatible with the GPU libraries contained in the container being executed, and must be one of the drivers hosted in the nvidia-drivers-us-public bucket on Google Cloud Storage.

string nvidia_driver_version = 11 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for nvidiaDriverVersion to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setPreemptible(boolean value)

public VirtualMachine.Builder setPreemptible(boolean value)

If true, allocate a preemptible VM.

bool preemptible = 2;

Parameter
Name Description
value boolean

The preemptible to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

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

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

setReservation(String value)

public VirtualMachine.Builder setReservation(String value)

If specified, the VM will only be allocated inside the matching reservation. It will fail if the VM parameters don't match the reservation.

string reservation = 15;

Parameter
Name Description
value String

The reservation to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setReservationBytes(ByteString value)

public VirtualMachine.Builder setReservationBytes(ByteString value)

If specified, the VM will only be allocated inside the matching reservation. It will fail if the VM parameters don't match the reservation.

string reservation = 15;

Parameter
Name Description
value ByteString

The bytes for reservation to set.

Returns
Type Description
VirtualMachine.Builder

This builder for chaining.

setServiceAccount(ServiceAccount value)

public VirtualMachine.Builder setServiceAccount(ServiceAccount value)

The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.

.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;

Parameter
Name Description
value ServiceAccount
Returns
Type Description
VirtualMachine.Builder

setServiceAccount(ServiceAccount.Builder builderForValue)

public VirtualMachine.Builder setServiceAccount(ServiceAccount.Builder builderForValue)

The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.

.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;

Parameter
Name Description
builderForValue ServiceAccount.Builder
Returns
Type Description
VirtualMachine.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setVolumes(int index, Volume value)

public VirtualMachine.Builder setVolumes(int index, Volume value)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameters
Name Description
index int
value Volume
Returns
Type Description
VirtualMachine.Builder

setVolumes(int index, Volume.Builder builderForValue)

public VirtualMachine.Builder setVolumes(int index, Volume.Builder builderForValue)

The list of disks and other storage to create or attach to the VM.

Specify either the volumes[] field or the disks[] field, but not both.

repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;

Parameters
Name Description
index int
builderForValue Volume.Builder
Returns
Type Description
VirtualMachine.Builder