Class VirtualMachine
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.lifesciences.v2beta.VirtualMachine
-
- All Implemented Interfaces:
VirtualMachineOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class VirtualMachine extends com.google.protobuf.GeneratedMessageV3 implements VirtualMachineOrBuilder
Carries information about a Compute Engine VM resource.
Protobuf typegoogle.cloud.lifesciences.v2beta.VirtualMachine- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVirtualMachine.BuilderCarries information about a Compute Engine VM resource.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACCELERATORS_FIELD_NUMBERstatic intBOOT_DISK_SIZE_GB_FIELD_NUMBERstatic intBOOT_IMAGE_FIELD_NUMBERstatic intCPU_PLATFORM_FIELD_NUMBERstatic intDISKS_FIELD_NUMBERstatic intDOCKER_CACHE_IMAGES_FIELD_NUMBERstatic intENABLE_STACKDRIVER_MONITORING_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intMACHINE_TYPE_FIELD_NUMBERstatic intNETWORK_FIELD_NUMBERstatic intNVIDIA_DRIVER_VERSION_FIELD_NUMBERstatic intPREEMPTIBLE_FIELD_NUMBERstatic intRESERVATION_FIELD_NUMBERstatic intSERVICE_ACCOUNT_FIELD_NUMBERstatic intVOLUMES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Optional set of labels to apply to the VM and any attached disk resources.booleanequals(Object obj)AcceleratorgetAccelerators(int index)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.static VirtualMachinegetDefaultInstance()VirtualMachinegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DiskgetDisks(int index)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.NetworkgetNetwork()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.com.google.protobuf.Parser<VirtualMachine>getParserForType()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.intgetSerializedSize()ServiceAccountgetServiceAccount()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.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.inthashCode()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)booleanisInitialized()static VirtualMachine.BuildernewBuilder()static VirtualMachine.BuildernewBuilder(VirtualMachine prototype)VirtualMachine.BuildernewBuilderForType()protected VirtualMachine.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static VirtualMachineparseDelimitedFrom(InputStream input)static VirtualMachineparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineparseFrom(byte[] data)static VirtualMachineparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineparseFrom(com.google.protobuf.ByteString data)static VirtualMachineparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineparseFrom(com.google.protobuf.CodedInputStream input)static VirtualMachineparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineparseFrom(InputStream input)static VirtualMachineparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualMachineparseFrom(ByteBuffer data)static VirtualMachineparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<VirtualMachine>parser()VirtualMachine.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREEMPTIBLE_FIELD_NUMBER
public static final int PREEMPTIBLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISKS_FIELD_NUMBER
public static final int DISKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NETWORK_FIELD_NUMBER
public static final int NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACCELERATORS_FIELD_NUMBER
public static final int ACCELERATORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_DISK_SIZE_GB_FIELD_NUMBER
public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CPU_PLATFORM_FIELD_NUMBER
public static final int CPU_PLATFORM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOT_IMAGE_FIELD_NUMBER
public static final int BOOT_IMAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NVIDIA_DRIVER_VERSION_FIELD_NUMBER
public static final int NVIDIA_DRIVER_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_STACKDRIVER_MONITORING_FIELD_NUMBER
public static final int ENABLE_STACKDRIVER_MONITORING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCKER_CACHE_IMAGES_FIELD_NUMBER
public static final int DOCKER_CACHE_IMAGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOLUMES_FIELD_NUMBER
public static final int VOLUMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVATION_FIELD_NUMBER
public static final int RESERVATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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.
-
getPreemptible
public boolean getPreemptible()
If true, allocate a preemptible VM.
bool preemptible = 2;- Specified by:
getPreemptiblein interfaceVirtualMachineOrBuilder- Returns:
- The preemptible.
-
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
-
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
-
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
-
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
-
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
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VirtualMachine parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachine parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachine parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachine parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachine parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualMachine parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static VirtualMachine parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static VirtualMachine parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static VirtualMachine parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static VirtualMachine parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static VirtualMachine parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public VirtualMachine.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static VirtualMachine.Builder newBuilder()
-
newBuilder
public static VirtualMachine.Builder newBuilder(VirtualMachine prototype)
-
toBuilder
public VirtualMachine.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VirtualMachine.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static VirtualMachine getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<VirtualMachine> parser()
-
getParserForType
public com.google.protobuf.Parser<VirtualMachine> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public VirtualMachine getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-