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 class
VirtualMachine.Builder
Carries 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 int
ACCELERATORS_FIELD_NUMBER
static int
BOOT_DISK_SIZE_GB_FIELD_NUMBER
static int
BOOT_IMAGE_FIELD_NUMBER
static int
CPU_PLATFORM_FIELD_NUMBER
static int
DISKS_FIELD_NUMBER
static int
DOCKER_CACHE_IMAGES_FIELD_NUMBER
static int
ENABLE_STACKDRIVER_MONITORING_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
MACHINE_TYPE_FIELD_NUMBER
static int
NETWORK_FIELD_NUMBER
static int
NVIDIA_DRIVER_VERSION_FIELD_NUMBER
static int
PREEMPTIBLE_FIELD_NUMBER
static int
RESERVATION_FIELD_NUMBER
static int
SERVICE_ACCOUNT_FIELD_NUMBER
static int
VOLUMES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Optional set of labels to apply to the VM and any attached disk resources.boolean
equals(Object obj)
Accelerator
getAccelerators(int index)
The list of accelerators to attach to the VM.int
getAcceleratorsCount()
The list of accelerators to attach to the VM.List<Accelerator>
getAcceleratorsList()
The list of accelerators to attach to the VM.AcceleratorOrBuilder
getAcceleratorsOrBuilder(int index)
The list of accelerators to attach to the VM.List<? extends AcceleratorOrBuilder>
getAcceleratorsOrBuilderList()
The list of accelerators to attach to the VM.int
getBootDiskSizeGb()
The size of the boot disk, in GB.String
getBootImage()
The host operating system image to use.com.google.protobuf.ByteString
getBootImageBytes()
The host operating system image to use.String
getCpuPlatform()
The CPU platform to request.com.google.protobuf.ByteString
getCpuPlatformBytes()
The CPU platform to request.static VirtualMachine
getDefaultInstance()
VirtualMachine
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Disk
getDisks(int index)
The list of disks to create and attach to the VM.int
getDisksCount()
The list of disks to create and attach to the VM.List<Disk>
getDisksList()
The list of disks to create and attach to the VM.DiskOrBuilder
getDisksOrBuilder(int index)
The list of disks to create and attach to the VM.List<? extends DiskOrBuilder>
getDisksOrBuilderList()
The list of disks to create and attach to the VM.String
getDockerCacheImages(int index)
The Compute Engine Disk Images to use as a Docker cache.com.google.protobuf.ByteString
getDockerCacheImagesBytes(int index)
The Compute Engine Disk Images to use as a Docker cache.int
getDockerCacheImagesCount()
The Compute Engine Disk Images to use as a Docker cache.com.google.protobuf.ProtocolStringList
getDockerCacheImagesList()
The Compute Engine Disk Images to use as a Docker cache.boolean
getEnableStackdriverMonitoring()
Whether Stackdriver monitoring should be enabled on the VM.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Optional set of labels to apply to the VM and any attached disk resources.Map<String,String>
getLabelsMap()
Optional set of labels to apply to the VM and any attached disk resources.String
getLabelsOrDefault(String key, String defaultValue)
Optional set of labels to apply to the VM and any attached disk resources.String
getLabelsOrThrow(String key)
Optional set of labels to apply to the VM and any attached disk resources.String
getMachineType()
Required.com.google.protobuf.ByteString
getMachineTypeBytes()
Required.Network
getNetwork()
The VM network configuration.NetworkOrBuilder
getNetworkOrBuilder()
The VM network configuration.String
getNvidiaDriverVersion()
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.com.google.protobuf.ByteString
getNvidiaDriverVersionBytes()
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated.com.google.protobuf.Parser<VirtualMachine>
getParserForType()
boolean
getPreemptible()
If true, allocate a preemptible VM.String
getReservation()
If specified, the VM will only be allocated inside the matching reservation.com.google.protobuf.ByteString
getReservationBytes()
If specified, the VM will only be allocated inside the matching reservation.int
getSerializedSize()
ServiceAccount
getServiceAccount()
The service account to install on the VM.ServiceAccountOrBuilder
getServiceAccountOrBuilder()
The service account to install on the VM.Volume
getVolumes(int index)
The list of disks and other storage to create or attach to the VM.int
getVolumesCount()
The list of disks and other storage to create or attach to the VM.List<Volume>
getVolumesList()
The list of disks and other storage to create or attach to the VM.VolumeOrBuilder
getVolumesOrBuilder(int index)
The list of disks and other storage to create or attach to the VM.List<? extends VolumeOrBuilder>
getVolumesOrBuilderList()
The list of disks and other storage to create or attach to the VM.int
hashCode()
boolean
hasNetwork()
The VM network configuration.boolean
hasServiceAccount()
The service account to install on the VM.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static VirtualMachine.Builder
newBuilder()
static VirtualMachine.Builder
newBuilder(VirtualMachine prototype)
VirtualMachine.Builder
newBuilderForType()
protected VirtualMachine.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static VirtualMachine
parseDelimitedFrom(InputStream input)
static VirtualMachine
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachine
parseFrom(byte[] data)
static VirtualMachine
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachine
parseFrom(com.google.protobuf.ByteString data)
static VirtualMachine
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachine
parseFrom(com.google.protobuf.CodedInputStream input)
static VirtualMachine
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachine
parseFrom(InputStream input)
static VirtualMachine
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static VirtualMachine
parseFrom(ByteBuffer data)
static VirtualMachine
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<VirtualMachine>
parser()
VirtualMachine.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getMachineType
in interfaceVirtualMachineOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
Required. The machine type of the virtual machine to create. Must be the short name of a standard machine type (such as "n1-standard-1") or a custom machine type (such as "custom-1-4096", where "1" indicates the number of vCPUs and "4096" indicates the memory in MB). See [Creating an instance with a custom machine type](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create) for more specifications on creating a custom machine type.
string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMachineTypeBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for machineType.
-
getPreemptible
public boolean getPreemptible()
If true, allocate a preemptible VM.
bool preemptible = 2;
- Specified by:
getPreemptible
in interfaceVirtualMachineOrBuilder
- Returns:
- The preemptible.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:VirtualMachineOrBuilder
Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the [name and value restrictions](https://cloud.google.com/compute/docs/labeling-resources) on VM labels imposed by Compute Engine. Labels keys with the prefix 'google-' are reserved for use by Google. Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.
map<string, string> labels = 3;
- Specified by:
getLabelsCount
in interfaceVirtualMachineOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the [name and value restrictions](https://cloud.google.com/compute/docs/labeling-resources) on VM labels imposed by Compute Engine. Labels keys with the prefix 'google-' are reserved for use by Google. Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.
map<string, string> labels = 3;
- Specified by:
containsLabels
in interfaceVirtualMachineOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceVirtualMachineOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the [name and value restrictions](https://cloud.google.com/compute/docs/labeling-resources) on VM labels imposed by Compute Engine. Labels keys with the prefix 'google-' are reserved for use by Google. Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.
map<string, string> labels = 3;
- Specified by:
getLabelsMap
in interfaceVirtualMachineOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the [name and value restrictions](https://cloud.google.com/compute/docs/labeling-resources) on VM labels imposed by Compute Engine. Labels keys with the prefix 'google-' are reserved for use by Google. Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.
map<string, string> labels = 3;
- Specified by:
getLabelsOrDefault
in interfaceVirtualMachineOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Optional set of labels to apply to the VM and any attached disk resources. These labels must adhere to the [name and value restrictions](https://cloud.google.com/compute/docs/labeling-resources) on VM labels imposed by Compute Engine. Labels keys with the prefix 'google-' are reserved for use by Google. Labels applied at creation time to the VM. Applied on a best-effort basis to attached disk resources shortly after VM creation.
map<string, string> labels = 3;
- Specified by:
getLabelsOrThrow
in interfaceVirtualMachineOrBuilder
-
getDisksList
public List<Disk> getDisksList()
The list of disks to create and attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
- Specified by:
getDisksList
in interfaceVirtualMachineOrBuilder
-
getDisksOrBuilderList
public List<? extends DiskOrBuilder> getDisksOrBuilderList()
The list of disks to create and attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
- Specified by:
getDisksOrBuilderList
in interfaceVirtualMachineOrBuilder
-
getDisksCount
public int getDisksCount()
The list of disks to create and attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
- Specified by:
getDisksCount
in interfaceVirtualMachineOrBuilder
-
getDisks
public Disk getDisks(int index)
The list of disks to create and attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
- Specified by:
getDisks
in interfaceVirtualMachineOrBuilder
-
getDisksOrBuilder
public DiskOrBuilder getDisksOrBuilder(int index)
The list of disks to create and attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
- Specified by:
getDisksOrBuilder
in interfaceVirtualMachineOrBuilder
-
hasNetwork
public boolean hasNetwork()
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
- Specified by:
hasNetwork
in interfaceVirtualMachineOrBuilder
- Returns:
- Whether the network field is set.
-
getNetwork
public Network getNetwork()
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
- Specified by:
getNetwork
in interfaceVirtualMachineOrBuilder
- Returns:
- The network.
-
getNetworkOrBuilder
public NetworkOrBuilder getNetworkOrBuilder()
The VM network configuration.
.google.cloud.lifesciences.v2beta.Network network = 5;
- Specified by:
getNetworkOrBuilder
in interfaceVirtualMachineOrBuilder
-
getAcceleratorsList
public List<Accelerator> getAcceleratorsList()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAcceleratorsList
in interfaceVirtualMachineOrBuilder
-
getAcceleratorsOrBuilderList
public List<? extends AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAcceleratorsOrBuilderList
in interfaceVirtualMachineOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAcceleratorsCount
in interfaceVirtualMachineOrBuilder
-
getAccelerators
public Accelerator getAccelerators(int index)
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAccelerators
in interfaceVirtualMachineOrBuilder
-
getAcceleratorsOrBuilder
public AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The list of accelerators to attach to the VM.
repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
- Specified by:
getAcceleratorsOrBuilder
in interfaceVirtualMachineOrBuilder
-
hasServiceAccount
public boolean hasServiceAccount()
The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.
.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
- Specified by:
hasServiceAccount
in interfaceVirtualMachineOrBuilder
- Returns:
- Whether the serviceAccount field is set.
-
getServiceAccount
public ServiceAccount getServiceAccount()
The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.
.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
- Specified by:
getServiceAccount
in interfaceVirtualMachineOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountOrBuilder
public ServiceAccountOrBuilder getServiceAccountOrBuilder()
The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.
.google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
- Specified by:
getServiceAccountOrBuilder
in interfaceVirtualMachineOrBuilder
-
getBootDiskSizeGb
public int getBootDiskSizeGb()
The size of the boot disk, in GB. The boot disk must be large enough to accommodate all of the Docker images from each action in the pipeline at the same time. If not specified, a small but reasonable default value is used.
int32 boot_disk_size_gb = 8;
- Specified by:
getBootDiskSizeGb
in interfaceVirtualMachineOrBuilder
- Returns:
- The bootDiskSizeGb.
-
getCpuPlatform
public String getCpuPlatform()
The CPU platform to request. An instance based on a newer platform can be allocated, but never one with fewer capabilities. The value of this parameter must be a valid Compute Engine CPU platform name (such as "Intel Skylake"). This parameter is only useful for carefully optimized work loads where the CPU platform has a significant impact. For more information about the effect of this parameter, see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string cpu_platform = 9;
- Specified by:
getCpuPlatform
in interfaceVirtualMachineOrBuilder
- Returns:
- The cpuPlatform.
-
getCpuPlatformBytes
public com.google.protobuf.ByteString getCpuPlatformBytes()
The CPU platform to request. An instance based on a newer platform can be allocated, but never one with fewer capabilities. The value of this parameter must be a valid Compute Engine CPU platform name (such as "Intel Skylake"). This parameter is only useful for carefully optimized work loads where the CPU platform has a significant impact. For more information about the effect of this parameter, see https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string cpu_platform = 9;
- Specified by:
getCpuPlatformBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for cpuPlatform.
-
getBootImage
public String getBootImage()
The host operating system image to use. Currently, only Container-Optimized OS images can be used. The default value is `projects/cos-cloud/global/images/family/cos-stable`, which selects the latest stable release of Container-Optimized OS. This option is provided to allow testing against the beta release of the operating system to ensure that the new version does not interact negatively with production pipelines. To test a pipeline against the beta release of Container-Optimized OS, use the value `projects/cos-cloud/global/images/family/cos-beta`.
string boot_image = 10;
- Specified by:
getBootImage
in interfaceVirtualMachineOrBuilder
- Returns:
- The bootImage.
-
getBootImageBytes
public com.google.protobuf.ByteString getBootImageBytes()
The host operating system image to use. Currently, only Container-Optimized OS images can be used. The default value is `projects/cos-cloud/global/images/family/cos-stable`, which selects the latest stable release of Container-Optimized OS. This option is provided to allow testing against the beta release of the operating system to ensure that the new version does not interact negatively with production pipelines. To test a pipeline against the beta release of Container-Optimized OS, use the value `projects/cos-cloud/global/images/family/cos-beta`.
string boot_image = 10;
- Specified by:
getBootImageBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for bootImage.
-
getNvidiaDriverVersion
@Deprecated public String getNvidiaDriverVersion()
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The version specified here must be compatible with the GPU libraries contained in the container being executed, and must be one of the drivers hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage.
string nvidia_driver_version = 11 [deprecated = true];
- Specified by:
getNvidiaDriverVersion
in interfaceVirtualMachineOrBuilder
- Returns:
- The nvidiaDriverVersion.
-
getNvidiaDriverVersionBytes
@Deprecated public com.google.protobuf.ByteString getNvidiaDriverVersionBytes()
Deprecated.google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator. The version specified here must be compatible with the GPU libraries contained in the container being executed, and must be one of the drivers hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage.
string nvidia_driver_version = 11 [deprecated = true];
- Specified by:
getNvidiaDriverVersionBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for nvidiaDriverVersion.
-
getEnableStackdriverMonitoring
public boolean getEnableStackdriverMonitoring()
Whether Stackdriver monitoring should be enabled on the VM.
bool enable_stackdriver_monitoring = 12;
- Specified by:
getEnableStackdriverMonitoring
in interfaceVirtualMachineOrBuilder
- Returns:
- The enableStackdriverMonitoring.
-
getDockerCacheImagesList
public com.google.protobuf.ProtocolStringList getDockerCacheImagesList()
The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain `image` and `overlay2` directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.
repeated string docker_cache_images = 13;
- Specified by:
getDockerCacheImagesList
in interfaceVirtualMachineOrBuilder
- Returns:
- A list containing the dockerCacheImages.
-
getDockerCacheImagesCount
public int getDockerCacheImagesCount()
The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain `image` and `overlay2` directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.
repeated string docker_cache_images = 13;
- Specified by:
getDockerCacheImagesCount
in interfaceVirtualMachineOrBuilder
- Returns:
- The count of dockerCacheImages.
-
getDockerCacheImages
public String getDockerCacheImages(int index)
The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain `image` and `overlay2` directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.
repeated string docker_cache_images = 13;
- Specified by:
getDockerCacheImages
in interfaceVirtualMachineOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The dockerCacheImages at the given index.
-
getDockerCacheImagesBytes
public com.google.protobuf.ByteString getDockerCacheImagesBytes(int index)
The Compute Engine Disk Images to use as a Docker cache. The disks will be mounted into the Docker folder in a way that the images present in the cache will not need to be pulled. The digests of the cached images must match those of the tags used or the latest version will still be pulled. The root directory of the ext4 image must contain `image` and `overlay2` directories copied from the Docker directory of a VM where the desired Docker images have already been pulled. Any images pulled that are not cached will be stored on the first cache disk instead of the boot disk. Only a single image is supported.
repeated string docker_cache_images = 13;
- Specified by:
getDockerCacheImagesBytes
in interfaceVirtualMachineOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the dockerCacheImages at the given index.
-
getVolumesList
public List<Volume> getVolumesList()
The list of disks and other storage to create or attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
- Specified by:
getVolumesList
in interfaceVirtualMachineOrBuilder
-
getVolumesOrBuilderList
public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
The list of disks and other storage to create or attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
- Specified by:
getVolumesOrBuilderList
in interfaceVirtualMachineOrBuilder
-
getVolumesCount
public int getVolumesCount()
The list of disks and other storage to create or attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
- Specified by:
getVolumesCount
in interfaceVirtualMachineOrBuilder
-
getVolumes
public Volume getVolumes(int index)
The list of disks and other storage to create or attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
- Specified by:
getVolumes
in interfaceVirtualMachineOrBuilder
-
getVolumesOrBuilder
public VolumeOrBuilder getVolumesOrBuilder(int index)
The list of disks and other storage to create or attach to the VM. Specify either the `volumes[]` field or the `disks[]` field, but not both.
repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
- Specified by:
getVolumesOrBuilder
in interfaceVirtualMachineOrBuilder
-
getReservation
public String getReservation()
If specified, the VM will only be allocated inside the matching reservation. It will fail if the VM parameters don't match the reservation.
string reservation = 15;
- Specified by:
getReservation
in interfaceVirtualMachineOrBuilder
- Returns:
- The reservation.
-
getReservationBytes
public com.google.protobuf.ByteString getReservationBytes()
If specified, the VM will only be allocated inside the matching reservation. It will fail if the VM parameters don't match the reservation.
string reservation = 15;
- Specified by:
getReservationBytes
in interfaceVirtualMachineOrBuilder
- Returns:
- The bytes for reservation.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VirtualMachine.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public VirtualMachine getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-