public static final class AllocationPolicy.InstancePolicy extends com.google.protobuf.GeneratedMessageV3 implements AllocationPolicy.InstancePolicyOrBuilder
InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.Protobuf type
google.cloud.batch.v1.AllocationPolicy.InstancePolicy| Modifier and Type | Class and Description |
|---|---|
static class |
AllocationPolicy.InstancePolicy.Builder
InstancePolicy describes an instance type and resources attached to each VM
created by this InstancePolicy.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
ACCELERATORS_FIELD_NUMBER |
static int |
BOOT_DISK_FIELD_NUMBER |
static int |
DISKS_FIELD_NUMBER |
static int |
MACHINE_TYPE_FIELD_NUMBER |
static int |
MIN_CPU_PLATFORM_FIELD_NUMBER |
static int |
PROVISIONING_MODEL_FIELD_NUMBER |
static int |
RESERVATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AllocationPolicy.Accelerator |
getAccelerators(int index)
The accelerators attached to each VM instance.
|
int |
getAcceleratorsCount()
The accelerators attached to each VM instance.
|
List<AllocationPolicy.Accelerator> |
getAcceleratorsList()
The accelerators attached to each VM instance.
|
AllocationPolicy.AcceleratorOrBuilder |
getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
|
List<? extends AllocationPolicy.AcceleratorOrBuilder> |
getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
|
AllocationPolicy.Disk |
getBootDisk()
Boot disk to be created and attached to each VM by this InstancePolicy.
|
AllocationPolicy.DiskOrBuilder |
getBootDiskOrBuilder()
Boot disk to be created and attached to each VM by this InstancePolicy.
|
static AllocationPolicy.InstancePolicy |
getDefaultInstance() |
AllocationPolicy.InstancePolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AllocationPolicy.AttachedDisk |
getDisks(int index)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
int |
getDisksCount()
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
List<AllocationPolicy.AttachedDisk> |
getDisksList()
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
AllocationPolicy.AttachedDiskOrBuilder |
getDisksOrBuilder(int index)
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
List<? extends AllocationPolicy.AttachedDiskOrBuilder> |
getDisksOrBuilderList()
Non-boot disks to be attached for each VM created by this InstancePolicy.
|
String |
getMachineType()
The Compute Engine machine type.
|
com.google.protobuf.ByteString |
getMachineTypeBytes()
The Compute Engine machine type.
|
String |
getMinCpuPlatform()
The minimum CPU platform.
|
com.google.protobuf.ByteString |
getMinCpuPlatformBytes()
The minimum CPU platform.
|
com.google.protobuf.Parser<AllocationPolicy.InstancePolicy> |
getParserForType() |
AllocationPolicy.ProvisioningModel |
getProvisioningModel()
The provisioning model.
|
int |
getProvisioningModelValue()
The provisioning model.
|
String |
getReservation()
Optional.
|
com.google.protobuf.ByteString |
getReservationBytes()
Optional.
|
int |
getSerializedSize() |
boolean |
hasBootDisk()
Boot disk to be created and attached to each VM by this InstancePolicy.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AllocationPolicy.InstancePolicy.Builder |
newBuilder() |
static AllocationPolicy.InstancePolicy.Builder |
newBuilder(AllocationPolicy.InstancePolicy prototype) |
AllocationPolicy.InstancePolicy.Builder |
newBuilderForType() |
protected AllocationPolicy.InstancePolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AllocationPolicy.InstancePolicy |
parseDelimitedFrom(InputStream input) |
static AllocationPolicy.InstancePolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AllocationPolicy.InstancePolicy |
parseFrom(byte[] data) |
static AllocationPolicy.InstancePolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AllocationPolicy.InstancePolicy |
parseFrom(ByteBuffer data) |
static AllocationPolicy.InstancePolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AllocationPolicy.InstancePolicy |
parseFrom(com.google.protobuf.ByteString data) |
static AllocationPolicy.InstancePolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AllocationPolicy.InstancePolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AllocationPolicy.InstancePolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AllocationPolicy.InstancePolicy |
parseFrom(InputStream input) |
static AllocationPolicy.InstancePolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AllocationPolicy.InstancePolicy> |
parser() |
AllocationPolicy.InstancePolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MACHINE_TYPE_FIELD_NUMBER
public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
public static final int PROVISIONING_MODEL_FIELD_NUMBER
public static final int ACCELERATORS_FIELD_NUMBER
public static final int BOOT_DISK_FIELD_NUMBER
public static final int DISKS_FIELD_NUMBER
public static final int RESERVATION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getMachineType()
The Compute Engine machine type.
string machine_type = 2;getMachineType in interface AllocationPolicy.InstancePolicyOrBuilderpublic com.google.protobuf.ByteString getMachineTypeBytes()
The Compute Engine machine type.
string machine_type = 2;getMachineTypeBytes in interface AllocationPolicy.InstancePolicyOrBuilderpublic String getMinCpuPlatform()
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;getMinCpuPlatform in interface AllocationPolicy.InstancePolicyOrBuilderpublic com.google.protobuf.ByteString getMinCpuPlatformBytes()
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
string min_cpu_platform = 3;getMinCpuPlatformBytes in interface AllocationPolicy.InstancePolicyOrBuilderpublic int getProvisioningModelValue()
The provisioning model.
.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
getProvisioningModelValue in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.ProvisioningModel getProvisioningModel()
The provisioning model.
.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
getProvisioningModel in interface AllocationPolicy.InstancePolicyOrBuilderpublic List<AllocationPolicy.Accelerator> getAcceleratorsList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAcceleratorsList in interface AllocationPolicy.InstancePolicyOrBuilderpublic List<? extends AllocationPolicy.AcceleratorOrBuilder> getAcceleratorsOrBuilderList()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAcceleratorsOrBuilderList in interface AllocationPolicy.InstancePolicyOrBuilderpublic int getAcceleratorsCount()
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAcceleratorsCount in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.Accelerator getAccelerators(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAccelerators in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(int index)
The accelerators attached to each VM instance.
repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;getAcceleratorsOrBuilder in interface AllocationPolicy.InstancePolicyOrBuilderpublic boolean hasBootDisk()
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;hasBootDisk in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.Disk getBootDisk()
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;getBootDisk in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder()
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
.google.cloud.batch.v1.AllocationPolicy.Disk boot_disk = 8;getBootDiskOrBuilder in interface AllocationPolicy.InstancePolicyOrBuilderpublic List<AllocationPolicy.AttachedDisk> getDisksList()
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;getDisksList in interface AllocationPolicy.InstancePolicyOrBuilderpublic List<? extends AllocationPolicy.AttachedDiskOrBuilder> getDisksOrBuilderList()
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;getDisksOrBuilderList in interface AllocationPolicy.InstancePolicyOrBuilderpublic int getDisksCount()
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;getDisksCount in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.AttachedDisk getDisks(int index)
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;getDisks in interface AllocationPolicy.InstancePolicyOrBuilderpublic AllocationPolicy.AttachedDiskOrBuilder getDisksOrBuilder(int index)
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;getDisksOrBuilder in interface AllocationPolicy.InstancePolicyOrBuilderpublic String getReservation()
Optional. If not specified (default), VMs will consume any applicable reservation. If "NO_RESERVATION" is specified, VMs will not consume any reservation. Otherwise, if specified, VMs will consume only the specified reservation.
string reservation = 7 [(.google.api.field_behavior) = OPTIONAL];getReservation in interface AllocationPolicy.InstancePolicyOrBuilderpublic com.google.protobuf.ByteString getReservationBytes()
Optional. If not specified (default), VMs will consume any applicable reservation. If "NO_RESERVATION" is specified, VMs will not consume any reservation. Otherwise, if specified, VMs will consume only the specified reservation.
string reservation = 7 [(.google.api.field_behavior) = OPTIONAL];getReservationBytes in interface AllocationPolicy.InstancePolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AllocationPolicy.InstancePolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocationPolicy.InstancePolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocationPolicy.InstancePolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocationPolicy.InstancePolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocationPolicy.InstancePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocationPolicy.InstancePolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AllocationPolicy.InstancePolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static AllocationPolicy.InstancePolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AllocationPolicy.InstancePolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AllocationPolicy.InstancePolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AllocationPolicy.InstancePolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AllocationPolicy.InstancePolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AllocationPolicy.InstancePolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AllocationPolicy.InstancePolicy.Builder newBuilder()
public static AllocationPolicy.InstancePolicy.Builder newBuilder(AllocationPolicy.InstancePolicy prototype)
public AllocationPolicy.InstancePolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AllocationPolicy.InstancePolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AllocationPolicy.InstancePolicy getDefaultInstance()
public static com.google.protobuf.Parser<AllocationPolicy.InstancePolicy> parser()
public com.google.protobuf.Parser<AllocationPolicy.InstancePolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AllocationPolicy.InstancePolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.