Class VirtualMachine.Builder

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
TypeDescription
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
NameDescription
valueAccelerator
Returns
TypeDescription
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
NameDescription
builderForValueAccelerator.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueAccelerator
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAccelerator.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.lifesciences.v2beta.Accelerator>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.lifesciences.v2beta.Disk>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The dockerCacheImages to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.lifesciences.v2beta.Volume>
Returns
TypeDescription
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
NameDescription
valueDisk
Returns
TypeDescription
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
NameDescription
builderForValueDisk.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDisk
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDisk.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The dockerCacheImages to add.

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

The bytes of the dockerCacheImages to add.

Returns
TypeDescription
VirtualMachine.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VirtualMachine.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueVolume
Returns
TypeDescription
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
NameDescription
builderForValueVolume.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVolume
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Volume.Builder

build()

public VirtualMachine build()
Returns
TypeDescription
VirtualMachine

buildPartial()

public VirtualMachine buildPartial()
Returns
TypeDescription
VirtualMachine

clear()

public VirtualMachine.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
VirtualMachine.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public VirtualMachine.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
VirtualMachine.Builder

This builder for chaining.

clearNetwork()

public VirtualMachine.Builder clearNetwork()

The VM network configuration.

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

Returns
TypeDescription
VirtualMachine.Builder

clearNvidiaDriverVersion()

public VirtualMachine.Builder clearNvidiaDriverVersion()

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
TypeDescription
VirtualMachine.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreemptible()

public VirtualMachine.Builder clearPreemptible()

If true, allocate a preemptible VM.

bool preemptible = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VirtualMachine.Builder

clone()

public VirtualMachine.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getAcceleratorsCount()

public int getAcceleratorsCount()

The list of accelerators to attach to the VM.

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

Returns
TypeDescription
int

getAcceleratorsList()

public List<Accelerator> getAcceleratorsList()

The list of accelerators to attach to the VM.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for cpuPlatform.

getDefaultInstanceForType()

public VirtualMachine getDefaultInstanceForType()
Returns
TypeDescription
VirtualMachine

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

The enableStackdriverMonitoring.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for machineType.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getNetwork()

public Network getNetwork()

The VM network configuration.

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

Returns
TypeDescription
Network

The network.

getNetworkBuilder()

public Network.Builder getNetworkBuilder()

The VM network configuration.

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

Returns
TypeDescription
Network.Builder

getNetworkOrBuilder()

public NetworkOrBuilder getNetworkOrBuilder()

The VM network configuration.

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

Returns
TypeDescription
NetworkOrBuilder

getNvidiaDriverVersion()

public String getNvidiaDriverVersion()

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
TypeDescription
String

The nvidiaDriverVersion.

getNvidiaDriverVersionBytes()

public ByteString getNvidiaDriverVersionBytes()

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

The bytes for nvidiaDriverVersion.

getPreemptible()

public boolean getPreemptible()

If true, allocate a preemptible VM.

bool preemptible = 2;

Returns
TypeDescription
boolean

The preemptible.

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.lifesciences.v2beta.VolumeOrBuilder>

hasNetwork()

public boolean hasNetwork()

The VM network configuration.

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

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

Whether the serviceAccount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VirtualMachine other)

public VirtualMachine.Builder mergeFrom(VirtualMachine other)
Parameter
NameDescription
otherVirtualMachine
Returns
TypeDescription
VirtualMachine.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VirtualMachine.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VirtualMachine.Builder
Overrides

mergeNetwork(Network value)

public VirtualMachine.Builder mergeNetwork(Network value)

The VM network configuration.

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

Parameter
NameDescription
valueNetwork
Returns
TypeDescription
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
NameDescription
valueServiceAccount
Returns
TypeDescription
VirtualMachine.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VirtualMachine.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueAccelerator
Returns
TypeDescription
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
NameDescription
indexint
builderForValueAccelerator.Builder
Returns
TypeDescription
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
NameDescription
valueint

The bootDiskSizeGb to set.

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

The bootImage to set.

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

The bytes for bootImage to set.

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

The cpuPlatform to set.

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

The bytes for cpuPlatform to set.

Returns
TypeDescription
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
NameDescription
indexint
valueDisk
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDisk.Builder
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The dockerCacheImages to set.

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

The enableStackdriverMonitoring to set.

Returns
TypeDescription
VirtualMachine.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VirtualMachine.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The machineType to set.

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

The bytes for machineType to set.

Returns
TypeDescription
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
NameDescription
valueNetwork
Returns
TypeDescription
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
NameDescription
builderForValueNetwork.Builder
Returns
TypeDescription
VirtualMachine.Builder

setNvidiaDriverVersion(String value)

public VirtualMachine.Builder setNvidiaDriverVersion(String value)

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
NameDescription
valueString

The nvidiaDriverVersion to set.

Returns
TypeDescription
VirtualMachine.Builder

This builder for chaining.

setNvidiaDriverVersionBytes(ByteString value)

public VirtualMachine.Builder setNvidiaDriverVersionBytes(ByteString value)

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

The bytes for nvidiaDriverVersion to set.

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

The preemptible to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VirtualMachine.Builder
Overrides

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
NameDescription
valueServiceAccount
Returns
TypeDescription
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
NameDescription
builderForValueServiceAccount.Builder
Returns
TypeDescription
VirtualMachine.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final VirtualMachine.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueVolume
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
VirtualMachine.Builder