Class VirtualMachine.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
- com.google.cloud.lifesciences.v2beta.VirtualMachine.Builder
-
- All Implemented Interfaces:
VirtualMachineOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- VirtualMachine
public static final class VirtualMachine.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder> implements VirtualMachineOrBuilder
Carries information about a Compute Engine VM resource.
Protobuf typegoogle.cloud.lifesciences.v2beta.VirtualMachine
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description VirtualMachine.Builder
addAccelerators(int index, Accelerator value)
The list of accelerators to attach to the VM.VirtualMachine.Builder
addAccelerators(int index, Accelerator.Builder builderForValue)
The list of accelerators to attach to the VM.VirtualMachine.Builder
addAccelerators(Accelerator value)
The list of accelerators to attach to the VM.VirtualMachine.Builder
addAccelerators(Accelerator.Builder builderForValue)
The list of accelerators to attach to the VM.Accelerator.Builder
addAcceleratorsBuilder()
The list of accelerators to attach to the VM.Accelerator.Builder
addAcceleratorsBuilder(int index)
The list of accelerators to attach to the VM.VirtualMachine.Builder
addAllAccelerators(Iterable<? extends Accelerator> values)
The list of accelerators to attach to the VM.VirtualMachine.Builder
addAllDisks(Iterable<? extends Disk> values)
The list of disks to create and attach to the VM.VirtualMachine.Builder
addAllDockerCacheImages(Iterable<String> values)
The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.Builder
addAllVolumes(Iterable<? extends Volume> values)
The list of disks and other storage to create or attach to the VM.VirtualMachine.Builder
addDisks(int index, Disk value)
The list of disks to create and attach to the VM.VirtualMachine.Builder
addDisks(int index, Disk.Builder builderForValue)
The list of disks to create and attach to the VM.VirtualMachine.Builder
addDisks(Disk value)
The list of disks to create and attach to the VM.VirtualMachine.Builder
addDisks(Disk.Builder builderForValue)
The list of disks to create and attach to the VM.Disk.Builder
addDisksBuilder()
The list of disks to create and attach to the VM.Disk.Builder
addDisksBuilder(int index)
The list of disks to create and attach to the VM.VirtualMachine.Builder
addDockerCacheImages(String value)
The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.Builder
addDockerCacheImagesBytes(com.google.protobuf.ByteString value)
The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VirtualMachine.Builder
addVolumes(int index, Volume value)
The list of disks and other storage to create or attach to the VM.VirtualMachine.Builder
addVolumes(int index, Volume.Builder builderForValue)
The list of disks and other storage to create or attach to the VM.VirtualMachine.Builder
addVolumes(Volume value)
The list of disks and other storage to create or attach to the VM.VirtualMachine.Builder
addVolumes(Volume.Builder builderForValue)
The list of disks and other storage to create or attach to the VM.Volume.Builder
addVolumesBuilder()
The list of disks and other storage to create or attach to the VM.Volume.Builder
addVolumesBuilder(int index)
The list of disks and other storage to create or attach to the VM.VirtualMachine
build()
VirtualMachine
buildPartial()
VirtualMachine.Builder
clear()
VirtualMachine.Builder
clearAccelerators()
The list of accelerators to attach to the VM.VirtualMachine.Builder
clearBootDiskSizeGb()
The size of the boot disk, in GB.VirtualMachine.Builder
clearBootImage()
The host operating system image to use.VirtualMachine.Builder
clearCpuPlatform()
The CPU platform to request.VirtualMachine.Builder
clearDisks()
The list of disks to create and attach to the VM.VirtualMachine.Builder
clearDockerCacheImages()
The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.Builder
clearEnableStackdriverMonitoring()
Whether Stackdriver monitoring should be enabled on the VM.VirtualMachine.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
VirtualMachine.Builder
clearLabels()
VirtualMachine.Builder
clearMachineType()
Required.VirtualMachine.Builder
clearNetwork()
The VM network configuration.VirtualMachine.Builder
clearNvidiaDriverVersion()
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.VirtualMachine.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
VirtualMachine.Builder
clearPreemptible()
If true, allocate a preemptible VM.VirtualMachine.Builder
clearReservation()
If specified, the VM will only be allocated inside the matching reservation.VirtualMachine.Builder
clearServiceAccount()
The service account to install on the VM.VirtualMachine.Builder
clearVolumes()
The list of disks and other storage to create or attach to the VM.VirtualMachine.Builder
clone()
boolean
containsLabels(String key)
Optional set of labels to apply to the VM and any attached disk resources.Accelerator
getAccelerators(int index)
The list of accelerators to attach to the VM.Accelerator.Builder
getAcceleratorsBuilder(int index)
The list of accelerators to attach to the VM.List<Accelerator.Builder>
getAcceleratorsBuilderList()
The list of accelerators to attach to the VM.int
getAcceleratorsCount()
The list of accelerators to attach to the VM.List<Accelerator>
getAcceleratorsList()
The list of accelerators to attach to the VM.AcceleratorOrBuilder
getAcceleratorsOrBuilder(int index)
The list of accelerators to attach to the VM.List<? extends AcceleratorOrBuilder>
getAcceleratorsOrBuilderList()
The list of accelerators to attach to the VM.int
getBootDiskSizeGb()
The size of the boot disk, in GB.String
getBootImage()
The host operating system image to use.com.google.protobuf.ByteString
getBootImageBytes()
The host operating system image to use.String
getCpuPlatform()
The CPU platform to request.com.google.protobuf.ByteString
getCpuPlatformBytes()
The CPU platform to request.VirtualMachine
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Disk
getDisks(int index)
The list of disks to create and attach to the VM.Disk.Builder
getDisksBuilder(int index)
The list of disks to create and attach to the VM.List<Disk.Builder>
getDisksBuilderList()
The list of disks to create and attach to the VM.int
getDisksCount()
The list of disks to create and attach to the VM.List<Disk>
getDisksList()
The list of disks to create and attach to the VM.DiskOrBuilder
getDisksOrBuilder(int index)
The list of disks to create and attach to the VM.List<? extends DiskOrBuilder>
getDisksOrBuilderList()
The list of disks to create and attach to the VM.String
getDockerCacheImages(int index)
The Compute Engine Disk Images to use as a Docker cache.com.google.protobuf.ByteString
getDockerCacheImagesBytes(int index)
The Compute Engine Disk Images to use as a Docker cache.int
getDockerCacheImagesCount()
The Compute Engine Disk Images to use as a Docker cache.com.google.protobuf.ProtocolStringList
getDockerCacheImagesList()
The Compute Engine Disk Images to use as a Docker cache.boolean
getEnableStackdriverMonitoring()
Whether Stackdriver monitoring should be enabled on the VM.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Optional set of labels to apply to the VM and any attached disk resources.Map<String,String>
getLabelsMap()
Optional set of labels to apply to the VM and any attached disk resources.String
getLabelsOrDefault(String key, String defaultValue)
Optional set of labels to apply to the VM and any attached disk resources.String
getLabelsOrThrow(String key)
Optional set of labels to apply to the VM and any attached disk resources.String
getMachineType()
Required.com.google.protobuf.ByteString
getMachineTypeBytes()
Required.Map<String,String>
getMutableLabels()
Deprecated.Network
getNetwork()
The VM network configuration.Network.Builder
getNetworkBuilder()
The VM network configuration.NetworkOrBuilder
getNetworkOrBuilder()
The VM network configuration.String
getNvidiaDriverVersion()
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.com.google.protobuf.ByteString
getNvidiaDriverVersionBytes()
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.boolean
getPreemptible()
If true, allocate a preemptible VM.String
getReservation()
If specified, the VM will only be allocated inside the matching reservation.com.google.protobuf.ByteString
getReservationBytes()
If specified, the VM will only be allocated inside the matching reservation.ServiceAccount
getServiceAccount()
The service account to install on the VM.ServiceAccount.Builder
getServiceAccountBuilder()
The service account to install on the VM.ServiceAccountOrBuilder
getServiceAccountOrBuilder()
The service account to install on the VM.Volume
getVolumes(int index)
The list of disks and other storage to create or attach to the VM.Volume.Builder
getVolumesBuilder(int index)
The list of disks and other storage to create or attach to the VM.List<Volume.Builder>
getVolumesBuilderList()
The list of disks and other storage to create or attach to the VM.int
getVolumesCount()
The list of disks and other storage to create or attach to the VM.List<Volume>
getVolumesList()
The list of disks and other storage to create or attach to the VM.VolumeOrBuilder
getVolumesOrBuilder(int index)
The list of disks and other storage to create or attach to the VM.List<? extends VolumeOrBuilder>
getVolumesOrBuilderList()
The list of disks and other storage to create or attach to the VM.boolean
hasNetwork()
The VM network configuration.boolean
hasServiceAccount()
The service account to install on the VM.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
VirtualMachine.Builder
mergeFrom(VirtualMachine other)
VirtualMachine.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VirtualMachine.Builder
mergeFrom(com.google.protobuf.Message other)
VirtualMachine.Builder
mergeNetwork(Network value)
The VM network configuration.VirtualMachine.Builder
mergeServiceAccount(ServiceAccount value)
The service account to install on the VM.VirtualMachine.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VirtualMachine.Builder
putAllLabels(Map<String,String> values)
Optional set of labels to apply to the VM and any attached disk resources.VirtualMachine.Builder
putLabels(String key, String value)
Optional set of labels to apply to the VM and any attached disk resources.VirtualMachine.Builder
removeAccelerators(int index)
The list of accelerators to attach to the VM.VirtualMachine.Builder
removeDisks(int index)
The list of disks to create and attach to the VM.VirtualMachine.Builder
removeLabels(String key)
Optional set of labels to apply to the VM and any attached disk resources.VirtualMachine.Builder
removeVolumes(int index)
The list of disks and other storage to create or attach to the VM.VirtualMachine.Builder
setAccelerators(int index, Accelerator value)
The list of accelerators to attach to the VM.VirtualMachine.Builder
setAccelerators(int index, Accelerator.Builder builderForValue)
The list of accelerators to attach to the VM.VirtualMachine.Builder
setBootDiskSizeGb(int value)
The size of the boot disk, in GB.VirtualMachine.Builder
setBootImage(String value)
The host operating system image to use.VirtualMachine.Builder
setBootImageBytes(com.google.protobuf.ByteString value)
The host operating system image to use.VirtualMachine.Builder
setCpuPlatform(String value)
The CPU platform to request.VirtualMachine.Builder
setCpuPlatformBytes(com.google.protobuf.ByteString value)
The CPU platform to request.VirtualMachine.Builder
setDisks(int index, Disk value)
The list of disks to create and attach to the VM.VirtualMachine.Builder
setDisks(int index, Disk.Builder builderForValue)
The list of disks to create and attach to the VM.VirtualMachine.Builder
setDockerCacheImages(int index, String value)
The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.Builder
setEnableStackdriverMonitoring(boolean value)
Whether Stackdriver monitoring should be enabled on the VM.VirtualMachine.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VirtualMachine.Builder
setMachineType(String value)
Required.VirtualMachine.Builder
setMachineTypeBytes(com.google.protobuf.ByteString value)
Required.VirtualMachine.Builder
setNetwork(Network value)
The VM network configuration.VirtualMachine.Builder
setNetwork(Network.Builder builderForValue)
The VM network configuration.VirtualMachine.Builder
setNvidiaDriverVersion(String value)
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.VirtualMachine.Builder
setNvidiaDriverVersionBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.VirtualMachine.Builder
setPreemptible(boolean value)
If true, allocate a preemptible VM.VirtualMachine.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
VirtualMachine.Builder
setReservation(String value)
If specified, the VM will only be allocated inside the matching reservation.VirtualMachine.Builder
setReservationBytes(com.google.protobuf.ByteString value)
If specified, the VM will only be allocated inside the matching reservation.VirtualMachine.Builder
setServiceAccount(ServiceAccount value)
The service account to install on the VM.VirtualMachine.Builder
setServiceAccount(ServiceAccount.Builder builderForValue)
The service account to install on the VM.VirtualMachine.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VirtualMachine.Builder
setVolumes(int index, Volume value)
The list of disks and other storage to create or attach to the VM.VirtualMachine.Builder
setVolumes(int index, Volume.Builder builderForValue)
The list of disks and other storage to create or attach to the VM.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
clear
public VirtualMachine.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
getDefaultInstanceForType
public VirtualMachine getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VirtualMachine build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VirtualMachine buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VirtualMachine.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
setField
public VirtualMachine.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
clearField
public VirtualMachine.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
clearOneof
public VirtualMachine.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
setRepeatedField
public VirtualMachine.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
addRepeatedField
public VirtualMachine.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
mergeFrom
public VirtualMachine.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VirtualMachine.Builder>
-
mergeFrom
public VirtualMachine.Builder mergeFrom(VirtualMachine other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
mergeFrom
public VirtualMachine.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VirtualMachine.Builder>
- Throws:
IOException
-
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](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) for more specifications on creating a custom machine type.
string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMachineType
in interfaceVirtualMachineOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.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](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) for more specifications on creating a custom machine type.
string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMachineTypeBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for machineType.
-
setMachineType
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](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) for more specifications on creating a custom machine type.
string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The machineType to set.- Returns:
- This builder for chaining.
-
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](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) for more specifications on creating a custom machine type.
string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setMachineTypeBytes
public VirtualMachine.Builder setMachineTypeBytes(com.google.protobuf.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](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) for more specifications on creating a custom machine type.
string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for machineType to set.- Returns:
- This builder for chaining.
-
getPreemptible
public boolean getPreemptible()
If true, allocate a preemptible VM.
bool preemptible = 2;
- Specified by:
getPreemptible
in interfaceVirtualMachineOrBuilder
- Returns:
- The preemptible.
-
setPreemptible
public VirtualMachine.Builder setPreemptible(boolean value)
If true, allocate a preemptible VM.
bool preemptible = 2;
- Parameters:
value
- The preemptible to set.- Returns:
- This builder for chaining.
-
clearPreemptible
public VirtualMachine.Builder clearPreemptible()
If true, allocate a preemptible VM.
bool preemptible = 2;
- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:VirtualMachineOrBuilder
Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the [name and value restrictions](https://cloud.google.com/compute/docs/labeling-resources) 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;
- Specified by:
getLabelsCount
in interfaceVirtualMachineOrBuilder
-
containsLabels
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](https://cloud.google.com/compute/docs/labeling-resources) 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;
- Specified by:
containsLabels
in interfaceVirtualMachineOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceVirtualMachineOrBuilder
-
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](https://cloud.google.com/compute/docs/labeling-resources) 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;
- Specified by:
getLabelsMap
in interfaceVirtualMachineOrBuilder
-
getLabelsOrDefault
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](https://cloud.google.com/compute/docs/labeling-resources) 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;
- Specified by:
getLabelsOrDefault
in interfaceVirtualMachineOrBuilder
-
getLabelsOrThrow
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](https://cloud.google.com/compute/docs/labeling-resources) 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;
- Specified by:
getLabelsOrThrow
in interfaceVirtualMachineOrBuilder
-
clearLabels
public VirtualMachine.Builder clearLabels()
-
removeLabels
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](https://cloud.google.com/compute/docs/labeling-resources) 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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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](https://cloud.google.com/compute/docs/labeling-resources) 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;
-
putAllLabels
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](https://cloud.google.com/compute/docs/labeling-resources) 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;
-
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;
- Specified by:
getDisksList
in interfaceVirtualMachineOrBuilder
-
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;
- Specified by:
getDisksCount
in interfaceVirtualMachineOrBuilder
-
getDisks
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;
- Specified by:
getDisks
in interfaceVirtualMachineOrBuilder
-
setDisks
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;
-
setDisks
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;
-
addDisks
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;
-
addDisks
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;
-
addDisks
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;
-
addDisks
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;
-
addAllDisks
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;
-
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;
-
removeDisks
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;
-
getDisksBuilder
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;
-
getDisksOrBuilder
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;
- Specified by:
getDisksOrBuilder
in interfaceVirtualMachineOrBuilder
-
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;
- Specified by:
getDisksOrBuilderList
in interfaceVirtualMachineOrBuilder
-
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;
-
addDisksBuilder
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;
-
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;
-
hasNetwork
public boolean hasNetwork()
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
- Specified by:
hasNetwork
in interfaceVirtualMachineOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
public Network getNetwork()
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
- Specified by:
getNetwork
in interfaceVirtualMachineOrBuilder
- Returns:
- The network.
-
setNetwork
public VirtualMachine.Builder setNetwork(Network value)
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
-
setNetwork
public VirtualMachine.Builder setNetwork(Network.Builder builderForValue)
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
-
mergeNetwork
public VirtualMachine.Builder mergeNetwork(Network value)
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
-
clearNetwork
public VirtualMachine.Builder clearNetwork()
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
-
getNetworkBuilder
public Network.Builder getNetworkBuilder()
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
-
getNetworkOrBuilder
public NetworkOrBuilder getNetworkOrBuilder()
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
- Specified by:
getNetworkOrBuilder
in interfaceVirtualMachineOrBuilder
-
getAcceleratorsList
public List<Accelerator> getAcceleratorsList()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAcceleratorsList
in interfaceVirtualMachineOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAcceleratorsCount
in interfaceVirtualMachineOrBuilder
-
getAccelerators
public Accelerator getAccelerators(int index)
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAccelerators
in interfaceVirtualMachineOrBuilder
-
setAccelerators
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;
-
setAccelerators
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;
-
addAccelerators
public VirtualMachine.Builder addAccelerators(Accelerator value)
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
-
addAccelerators
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;
-
addAccelerators
public VirtualMachine.Builder addAccelerators(Accelerator.Builder builderForValue)
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
-
addAccelerators
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;
-
addAllAccelerators
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;
-
clearAccelerators
public VirtualMachine.Builder clearAccelerators()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
-
removeAccelerators
public VirtualMachine.Builder removeAccelerators(int index)
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
-
getAcceleratorsBuilder
public Accelerator.Builder getAcceleratorsBuilder(int index)
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
-
getAcceleratorsOrBuilder
public AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAcceleratorsOrBuilder
in interfaceVirtualMachineOrBuilder
-
getAcceleratorsOrBuilderList
public List<? extends AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAcceleratorsOrBuilderList
in interfaceVirtualMachineOrBuilder
-
addAcceleratorsBuilder
public Accelerator.Builder addAcceleratorsBuilder()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
-
addAcceleratorsBuilder
public Accelerator.Builder addAcceleratorsBuilder(int index)
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
-
getAcceleratorsBuilderList
public List<Accelerator.Builder> getAcceleratorsBuilderList()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
-
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;
- Specified by:
hasServiceAccount
in interfaceVirtualMachineOrBuilder
- Returns:
- Whether the serviceAccount field is set.
-
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;
- Specified by:
getServiceAccount
in interfaceVirtualMachineOrBuilder
- Returns:
- The serviceAccount.
-
setServiceAccount
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;
-
setServiceAccount
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;
-
mergeServiceAccount
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;
-
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;
-
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;
-
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;
- Specified by:
getServiceAccountOrBuilder
in interfaceVirtualMachineOrBuilder
-
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;
- Specified by:
getBootDiskSizeGb
in interfaceVirtualMachineOrBuilder
- Returns:
- The bootDiskSizeGb.
-
setBootDiskSizeGb
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;
- Parameters:
value
- The bootDiskSizeGb to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;
- Specified by:
getCpuPlatform
in interfaceVirtualMachineOrBuilder
- Returns:
- The cpuPlatform.
-
getCpuPlatformBytes
public com.google.protobuf.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;
- Specified by:
getCpuPlatformBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for cpuPlatform.
-
setCpuPlatform
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;
- Parameters:
value
- The cpuPlatform to set.- Returns:
- 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:
- This builder for chaining.
-
setCpuPlatformBytes
public VirtualMachine.Builder setCpuPlatformBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for cpuPlatform to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getBootImage
in interfaceVirtualMachineOrBuilder
- Returns:
- The bootImage.
-
getBootImageBytes
public com.google.protobuf.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;
- Specified by:
getBootImageBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for bootImage.
-
setBootImage
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;
- Parameters:
value
- The bootImage to set.- Returns:
- 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:
- This builder for chaining.
-
setBootImageBytes
public VirtualMachine.Builder setBootImageBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for bootImage to set.- Returns:
- This builder for chaining.
-
getNvidiaDriverVersion
@Deprecated public String getNvidiaDriverVersion()
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411The 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];
- Specified by:
getNvidiaDriverVersion
in interfaceVirtualMachineOrBuilder
- Returns:
- The nvidiaDriverVersion.
-
getNvidiaDriverVersionBytes
@Deprecated public com.google.protobuf.ByteString getNvidiaDriverVersionBytes()
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411The 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];
- Specified by:
getNvidiaDriverVersionBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for nvidiaDriverVersion.
-
setNvidiaDriverVersion
@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=411The 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];
- Parameters:
value
- The nvidiaDriverVersion to set.- Returns:
- This builder for chaining.
-
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=411The 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:
- This builder for chaining.
-
setNvidiaDriverVersionBytes
@Deprecated public VirtualMachine.Builder setNvidiaDriverVersionBytes(com.google.protobuf.ByteString value)
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411The 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];
- Parameters:
value
- The bytes for nvidiaDriverVersion to set.- Returns:
- This builder for chaining.
-
getEnableStackdriverMonitoring
public boolean getEnableStackdriverMonitoring()
Whether Stackdriver monitoring should be enabled on the VM.
bool enable_stackdriver_monitoring = 12;
- Specified by:
getEnableStackdriverMonitoring
in interfaceVirtualMachineOrBuilder
- Returns:
- The enableStackdriverMonitoring.
-
setEnableStackdriverMonitoring
public VirtualMachine.Builder setEnableStackdriverMonitoring(boolean value)
Whether Stackdriver monitoring should be enabled on the VM.
bool enable_stackdriver_monitoring = 12;
- Parameters:
value
- The enableStackdriverMonitoring to set.- Returns:
- This builder for chaining.
-
clearEnableStackdriverMonitoring
public VirtualMachine.Builder clearEnableStackdriverMonitoring()
Whether Stackdriver monitoring should be enabled on the VM.
bool enable_stackdriver_monitoring = 12;
- Returns:
- This builder for chaining.
-
getDockerCacheImagesList
public com.google.protobuf.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;
- Specified by:
getDockerCacheImagesList
in interfaceVirtualMachineOrBuilder
- Returns:
- A list containing the dockerCacheImages.
-
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;
- Specified by:
getDockerCacheImagesCount
in interfaceVirtualMachineOrBuilder
- Returns:
- The count of dockerCacheImages.
-
getDockerCacheImages
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;
- Specified by:
getDockerCacheImages
in interfaceVirtualMachineOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The dockerCacheImages at the given index.
-
getDockerCacheImagesBytes
public com.google.protobuf.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;
- Specified by:
getDockerCacheImagesBytes
in interfaceVirtualMachineOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the dockerCacheImages at the given index.
-
setDockerCacheImages
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:
index
- The index to set the value at.value
- The dockerCacheImages to set.- Returns:
- This builder for chaining.
-
addDockerCacheImages
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;
- Parameters:
value
- The dockerCacheImages to add.- Returns:
- This builder for chaining.
-
addAllDockerCacheImages
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;
- Parameters:
values
- The dockerCacheImages to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addDockerCacheImagesBytes
public VirtualMachine.Builder addDockerCacheImagesBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes of the dockerCacheImages to add.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getVolumesList
in interfaceVirtualMachineOrBuilder
-
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;
- Specified by:
getVolumesCount
in interfaceVirtualMachineOrBuilder
-
getVolumes
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;
- Specified by:
getVolumes
in interfaceVirtualMachineOrBuilder
-
setVolumes
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;
-
setVolumes
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;
-
addVolumes
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;
-
addVolumes
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;
-
addVolumes
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;
-
addVolumes
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;
-
addAllVolumes
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;
-
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;
-
removeVolumes
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;
-
getVolumesBuilder
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;
-
getVolumesOrBuilder
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;
- Specified by:
getVolumesOrBuilder
in interfaceVirtualMachineOrBuilder
-
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;
- Specified by:
getVolumesOrBuilderList
in interfaceVirtualMachineOrBuilder
-
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;
-
addVolumesBuilder
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;
-
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;
-
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;
- Specified by:
getReservation
in interfaceVirtualMachineOrBuilder
- Returns:
- The reservation.
-
getReservationBytes
public com.google.protobuf.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;
- Specified by:
getReservationBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for reservation.
-
setReservation
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;
- Parameters:
value
- The reservation to set.- Returns:
- 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:
- This builder for chaining.
-
setReservationBytes
public VirtualMachine.Builder setReservationBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for reservation to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final VirtualMachine.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
mergeUnknownFields
public final VirtualMachine.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
-