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.BuilderaddAccelerators(int index, Accelerator value)The list of accelerators to attach to the VM.VirtualMachine.BuilderaddAccelerators(int index, Accelerator.Builder builderForValue)The list of accelerators to attach to the VM.VirtualMachine.BuilderaddAccelerators(Accelerator value)The list of accelerators to attach to the VM.VirtualMachine.BuilderaddAccelerators(Accelerator.Builder builderForValue)The list of accelerators to attach to the VM.Accelerator.BuilderaddAcceleratorsBuilder()The list of accelerators to attach to the VM.Accelerator.BuilderaddAcceleratorsBuilder(int index)The list of accelerators to attach to the VM.VirtualMachine.BuilderaddAllAccelerators(Iterable<? extends Accelerator> values)The list of accelerators to attach to the VM.VirtualMachine.BuilderaddAllDisks(Iterable<? extends Disk> values)The list of disks to create and attach to the VM.VirtualMachine.BuilderaddAllDockerCacheImages(Iterable<String> values)The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.BuilderaddAllVolumes(Iterable<? extends Volume> values)The list of disks and other storage to create or attach to the VM.VirtualMachine.BuilderaddDisks(int index, Disk value)The list of disks to create and attach to the VM.VirtualMachine.BuilderaddDisks(int index, Disk.Builder builderForValue)The list of disks to create and attach to the VM.VirtualMachine.BuilderaddDisks(Disk value)The list of disks to create and attach to the VM.VirtualMachine.BuilderaddDisks(Disk.Builder builderForValue)The list of disks to create and attach to the VM.Disk.BuilderaddDisksBuilder()The list of disks to create and attach to the VM.Disk.BuilderaddDisksBuilder(int index)The list of disks to create and attach to the VM.VirtualMachine.BuilderaddDockerCacheImages(String value)The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.BuilderaddDockerCacheImagesBytes(com.google.protobuf.ByteString value)The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VirtualMachine.BuilderaddVolumes(int index, Volume value)The list of disks and other storage to create or attach to the VM.VirtualMachine.BuilderaddVolumes(int index, Volume.Builder builderForValue)The list of disks and other storage to create or attach to the VM.VirtualMachine.BuilderaddVolumes(Volume value)The list of disks and other storage to create or attach to the VM.VirtualMachine.BuilderaddVolumes(Volume.Builder builderForValue)The list of disks and other storage to create or attach to the VM.Volume.BuilderaddVolumesBuilder()The list of disks and other storage to create or attach to the VM.Volume.BuilderaddVolumesBuilder(int index)The list of disks and other storage to create or attach to the VM.VirtualMachinebuild()VirtualMachinebuildPartial()VirtualMachine.Builderclear()VirtualMachine.BuilderclearAccelerators()The list of accelerators to attach to the VM.VirtualMachine.BuilderclearBootDiskSizeGb()The size of the boot disk, in GB.VirtualMachine.BuilderclearBootImage()The host operating system image to use.VirtualMachine.BuilderclearCpuPlatform()The CPU platform to request.VirtualMachine.BuilderclearDisks()The list of disks to create and attach to the VM.VirtualMachine.BuilderclearDockerCacheImages()The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.BuilderclearEnableStackdriverMonitoring()Whether Stackdriver monitoring should be enabled on the VM.VirtualMachine.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VirtualMachine.BuilderclearLabels()VirtualMachine.BuilderclearMachineType()Required.VirtualMachine.BuilderclearNetwork()The VM network configuration.VirtualMachine.BuilderclearNvidiaDriverVersion()Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.VirtualMachine.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VirtualMachine.BuilderclearPreemptible()If true, allocate a preemptible VM.VirtualMachine.BuilderclearReservation()If specified, the VM will only be allocated inside the matching reservation.VirtualMachine.BuilderclearServiceAccount()The service account to install on the VM.VirtualMachine.BuilderclearVolumes()The list of disks and other storage to create or attach to the VM.VirtualMachine.Builderclone()booleancontainsLabels(String key)Optional set of labels to apply to the VM and any attached disk resources.AcceleratorgetAccelerators(int index)The list of accelerators to attach to the VM.Accelerator.BuildergetAcceleratorsBuilder(int index)The list of accelerators to attach to the VM.List<Accelerator.Builder>getAcceleratorsBuilderList()The list of accelerators to attach to the VM.intgetAcceleratorsCount()The list of accelerators to attach to the VM.List<Accelerator>getAcceleratorsList()The list of accelerators to attach to the VM.AcceleratorOrBuildergetAcceleratorsOrBuilder(int index)The list of accelerators to attach to the VM.List<? extends AcceleratorOrBuilder>getAcceleratorsOrBuilderList()The list of accelerators to attach to the VM.intgetBootDiskSizeGb()The size of the boot disk, in GB.StringgetBootImage()The host operating system image to use.com.google.protobuf.ByteStringgetBootImageBytes()The host operating system image to use.StringgetCpuPlatform()The CPU platform to request.com.google.protobuf.ByteStringgetCpuPlatformBytes()The CPU platform to request.VirtualMachinegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DiskgetDisks(int index)The list of disks to create and attach to the VM.Disk.BuildergetDisksBuilder(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.intgetDisksCount()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.DiskOrBuildergetDisksOrBuilder(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.StringgetDockerCacheImages(int index)The Compute Engine Disk Images to use as a Docker cache.com.google.protobuf.ByteStringgetDockerCacheImagesBytes(int index)The Compute Engine Disk Images to use as a Docker cache.intgetDockerCacheImagesCount()The Compute Engine Disk Images to use as a Docker cache.com.google.protobuf.ProtocolStringListgetDockerCacheImagesList()The Compute Engine Disk Images to use as a Docker cache.booleangetEnableStackdriverMonitoring()Whether Stackdriver monitoring should be enabled on the VM.Map<String,String>getLabels()Deprecated.intgetLabelsCount()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.StringgetLabelsOrDefault(String key, String defaultValue)Optional set of labels to apply to the VM and any attached disk resources.StringgetLabelsOrThrow(String key)Optional set of labels to apply to the VM and any attached disk resources.StringgetMachineType()Required.com.google.protobuf.ByteStringgetMachineTypeBytes()Required.Map<String,String>getMutableLabels()Deprecated.NetworkgetNetwork()The VM network configuration.Network.BuildergetNetworkBuilder()The VM network configuration.NetworkOrBuildergetNetworkOrBuilder()The VM network configuration.StringgetNvidiaDriverVersion()Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.com.google.protobuf.ByteStringgetNvidiaDriverVersionBytes()Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.booleangetPreemptible()If true, allocate a preemptible VM.StringgetReservation()If specified, the VM will only be allocated inside the matching reservation.com.google.protobuf.ByteStringgetReservationBytes()If specified, the VM will only be allocated inside the matching reservation.ServiceAccountgetServiceAccount()The service account to install on the VM.ServiceAccount.BuildergetServiceAccountBuilder()The service account to install on the VM.ServiceAccountOrBuildergetServiceAccountOrBuilder()The service account to install on the VM.VolumegetVolumes(int index)The list of disks and other storage to create or attach to the VM.Volume.BuildergetVolumesBuilder(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.intgetVolumesCount()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.VolumeOrBuildergetVolumesOrBuilder(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.booleanhasNetwork()The VM network configuration.booleanhasServiceAccount()The service account to install on the VM.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()VirtualMachine.BuildermergeFrom(VirtualMachine other)VirtualMachine.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VirtualMachine.BuildermergeFrom(com.google.protobuf.Message other)VirtualMachine.BuildermergeNetwork(Network value)The VM network configuration.VirtualMachine.BuildermergeServiceAccount(ServiceAccount value)The service account to install on the VM.VirtualMachine.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VirtualMachine.BuilderputAllLabels(Map<String,String> values)Optional set of labels to apply to the VM and any attached disk resources.VirtualMachine.BuilderputLabels(String key, String value)Optional set of labels to apply to the VM and any attached disk resources.VirtualMachine.BuilderremoveAccelerators(int index)The list of accelerators to attach to the VM.VirtualMachine.BuilderremoveDisks(int index)The list of disks to create and attach to the VM.VirtualMachine.BuilderremoveLabels(String key)Optional set of labels to apply to the VM and any attached disk resources.VirtualMachine.BuilderremoveVolumes(int index)The list of disks and other storage to create or attach to the VM.VirtualMachine.BuildersetAccelerators(int index, Accelerator value)The list of accelerators to attach to the VM.VirtualMachine.BuildersetAccelerators(int index, Accelerator.Builder builderForValue)The list of accelerators to attach to the VM.VirtualMachine.BuildersetBootDiskSizeGb(int value)The size of the boot disk, in GB.VirtualMachine.BuildersetBootImage(String value)The host operating system image to use.VirtualMachine.BuildersetBootImageBytes(com.google.protobuf.ByteString value)The host operating system image to use.VirtualMachine.BuildersetCpuPlatform(String value)The CPU platform to request.VirtualMachine.BuildersetCpuPlatformBytes(com.google.protobuf.ByteString value)The CPU platform to request.VirtualMachine.BuildersetDisks(int index, Disk value)The list of disks to create and attach to the VM.VirtualMachine.BuildersetDisks(int index, Disk.Builder builderForValue)The list of disks to create and attach to the VM.VirtualMachine.BuildersetDockerCacheImages(int index, String value)The Compute Engine Disk Images to use as a Docker cache.VirtualMachine.BuildersetEnableStackdriverMonitoring(boolean value)Whether Stackdriver monitoring should be enabled on the VM.VirtualMachine.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)VirtualMachine.BuildersetMachineType(String value)Required.VirtualMachine.BuildersetMachineTypeBytes(com.google.protobuf.ByteString value)Required.VirtualMachine.BuildersetNetwork(Network value)The VM network configuration.VirtualMachine.BuildersetNetwork(Network.Builder builderForValue)The VM network configuration.VirtualMachine.BuildersetNvidiaDriverVersion(String value)Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.VirtualMachine.BuildersetNvidiaDriverVersionBytes(com.google.protobuf.ByteString value)Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.VirtualMachine.BuildersetPreemptible(boolean value)If true, allocate a preemptible VM.VirtualMachine.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)VirtualMachine.BuildersetReservation(String value)If specified, the VM will only be allocated inside the matching reservation.VirtualMachine.BuildersetReservationBytes(com.google.protobuf.ByteString value)If specified, the VM will only be allocated inside the matching reservation.VirtualMachine.BuildersetServiceAccount(ServiceAccount value)The service account to install on the VM.VirtualMachine.BuildersetServiceAccount(ServiceAccount.Builder builderForValue)The service account to install on the VM.VirtualMachine.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VirtualMachine.BuildersetVolumes(int index, Volume value)The list of disks and other storage to create or attach to the VM.VirtualMachine.BuildersetVolumes(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:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
clear
public VirtualMachine.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
getDefaultInstanceForType
public VirtualMachine getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VirtualMachine build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VirtualMachine buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VirtualMachine.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
setField
public VirtualMachine.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
clearField
public VirtualMachine.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
clearOneof
public VirtualMachine.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
setRepeatedField
public VirtualMachine.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
addRepeatedField
public VirtualMachine.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
mergeFrom
public VirtualMachine.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VirtualMachine.Builder>
-
mergeFrom
public VirtualMachine.Builder mergeFrom(VirtualMachine other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getMachineTypein 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:
getMachineTypeBytesin 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:
getPreemptiblein 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:VirtualMachineOrBuilderOptional 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:
getLabelsCountin 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:
containsLabelsin interfaceVirtualMachineOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin 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:
getLabelsMapin 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:
getLabelsOrDefaultin 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:
getLabelsOrThrowin 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:
getDisksListin 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:
getDisksCountin 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:
getDisksin 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:
getDisksOrBuilderin 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:
getDisksOrBuilderListin 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:
hasNetworkin 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:
getNetworkin 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:
getNetworkOrBuilderin 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:
getAcceleratorsListin interfaceVirtualMachineOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;- Specified by:
getAcceleratorsCountin 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:
getAcceleratorsin 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:
getAcceleratorsOrBuilderin 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:
getAcceleratorsOrBuilderListin 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:
hasServiceAccountin 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:
getServiceAccountin 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:
getServiceAccountOrBuilderin 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:
getBootDiskSizeGbin 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:
getCpuPlatformin 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:
getCpuPlatformBytesin 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:
getBootImagein 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:
getBootImageBytesin 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:
getNvidiaDriverVersionin 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:
getNvidiaDriverVersionBytesin 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:
getEnableStackdriverMonitoringin 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:
getDockerCacheImagesListin 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:
getDockerCacheImagesCountin 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:
getDockerCacheImagesin 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:
getDockerCacheImagesBytesin 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:
getVolumesListin 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:
getVolumesCountin 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:
getVolumesin 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:
getVolumesOrBuilderin 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:
getVolumesOrBuilderListin 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:
getReservationin 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:
getReservationBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
mergeUnknownFields
public final VirtualMachine.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
-
-